-
Notifications
You must be signed in to change notification settings - Fork 9
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
Reference frames (GEO => gcrs, ICRS and ITRF realizations, etc.) #371
base: main
Are you sure you want to change the base?
Conversation
|
Hi @FedeMPouzols, I agree the "GEO" -> "gcrs" translation is correct. The Kaplan 2006 paper referenced by the astropy docs explicitly states that
As for adding optional ICRS/ITRS frame realizations, this may be "nice to have" but it will be difficult to properly populate this information since I don't think VLBI correlators keep track of the relevant metadata in a systematic way. Note that ITRF relates to ITRS as ICRF relates to ICRS, and astropy uses "itrs" in its API. Doesn't that mean that MSv4 should use "itrs" instead of "ITRF"? Somewhat related to this discussion, we recently discovered that VLBI datasets in MSv2 format are mislabeled as "J2000" in CASA, resulting in FITS images that are incorrectly labelled as using the "fk5/J2000" reference frame. In reality modern VLBI is all done in ICRS and we're fixing that on the CASA side. @Jan-Willem, that may mean we need to tweak the reference VLBI data sets to reflect this. This also makes me question the use as "fk5" as the default reference frame in a lot of the MSv4 documentation and code. I realize that the difference between "fk5/J2000" and ICRS are small for most instruments that aren't VLBI arrays. But modern radio instruments really should be using a reference frame based on radio sources (even the IAU says so). The VLA is excused because it pre-dates the establishment of the ICRS, but that isn't true for ALMA. I certainly think that we as a communuty didn't do our job properly if we see datasets coming out of SKA that use the "fk5" reference frame. |
Are we using "fk5" as default in some places? At least in the schema the defaults seem "icrs" (although those only play a role if one uses those classes to construct an MSv4). One place where I can see a default value being assumed, when no metadata is found in the input MSv2 is here: https://github.com/casangi/xradio/blob/main/src/xradio/measurement_set/_utils/_msv2/create_field_and_source_xds.py#L205 and they assume "ICRS". Nobody is perfect. Apparently ALMA made a very similar mislabellng in cycles < 3. There is this ticket: https://jira.alma.cl/browse/SACM-2214 (within the "Archive correction and repair effort") about fixing that in the Archive:
As far as I know ALMA uses ICRS in the field/source tables. |
So perhaps we leave the About
But in practice we translate casacore |
In
into
doesn't that result in "fk5" as the default in the schema docs for Same for
Good that this was fixed. The ALMA data set in the ps_vis_full_dataset.ipynb tutorial does seem to have fk5 coordinates though. Maybe that uses an old Cycle 0-2 dataset? |
I think that is a sensible approach. I thing the "multuple realizations" thing came up in a discussion when we were trying to sort out the ellipsoid thing below. But I don't think we really thought of it as a requirement.
I'm pretty confident that mapping casacore The others ( |
Ok, thanks, then we'll leave the About But probably I'm confusing things and that's not the whole story, I'd wait for Jan-Willem to clarify. |
I suspect you meant to write ITRS here? And yes, it does seem that astropy's EarthLocation always is ITRS with geocentric cartesian coordinates. It is possible to convert to/from geodetic coordinates (lon, lat, height) by specifying an ellipsoid (WGS84 by default).
At this point I think calling 'WGS84', 'GRS80' or 'WGS72' a frame is just wrong. The ellipsoid to use to convert from geodetic to geocentric coordinates should be a separate attribute. And for locations on earth the only reasonable frame is 'itrs'. Not even sure it makes sense for the schema to cater of locations to be specified using geodetic coordinates. Can't we make sure those get converted to geocentric when the MSv4 gets created? Having 'planetodetic' coordinates might still be needed. But for those 'WGS84', 'GRS80' or 'WGS72' are not relevant. I suppose ALMA imposes some requirements here?
|
Fixes #339.
Note well: