-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MS writer improvements #1363
MS writer improvements #1363
Conversation
…ndexing handling via utils.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1363 +/- ##
=======================================
Coverage 99.92% 99.92%
=======================================
Files 36 36
Lines 20202 20228 +26
=======================================
+ Hits 20186 20212 +26
Misses 16 16
Continue to review full report in Codecov by Sentry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @kartographer ! Just a few comments.
@rlbyrne we'd be happy to hear any feedback from you on this if you have time to look at it or test it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks!
@kartographer Apologies that I'm only getting around to testing this now. I am getting an error with the new ms writer. When I read an .uvfits file and then immediately write to an .ms file, I get this message:
If I run |
Description
Adds some functionality to the
write_ms
method, which enforces that CASA-preferred polarization ordering is used on write, and allows the user to specify whether to flip the baseline conjugation scheme used.Motivation and Context
This addresses some issues that LWA users were running into when passing data through puvdata. Two issues in particular were identified in #1355. First, some CASA tasks clearly want the polarization order to be set up in a particular way, so the writer now always writes out in "CASA order". Second, there's an open question as to if some methods and functions (both internal and external to the CASA package) require different baseline conventions, which would be understandable given the conflicting documentation. Though I believe the pyuvdata standard is correct for most applications, I've added a switch that users can use to flip the convention.
In the course of addressing the above, I did make a few small tweaks to the writer and added/modified a couple of functions in
utils
to help with polarization ordering and to make indexing faster under most circumstances via use of slices.Closes #1355.
Types of changes
Checklist:
Bug fix checklist: