Skip to content
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

Tables should parse XML #31

Open
keflavich opened this issue Nov 13, 2021 · 1 comment
Open

Tables should parse XML #31

keflavich opened this issue Nov 13, 2021 · 1 comment

Comments

@keflavich
Copy link
Contributor

>>> tbl = Table.read('/orange/adamginsburg/ALMA_IMF/2017.1.01355.L/G353.41_B6_uid___A001_X1296_X1c9_continuum_merged_12M_selfcal.ms/ASDM_SBSUMMARY')
>>> tbl.as_astropy_tables()

[<Table length=1>
 sBSummaryId                                                   sbSummaryUID                                                                                                     projectUID                                                    ... centerDirectionCode centerDirectionEquinox
   bytes11                                                       bytes111                                                                                                        bytes112                                                     ...        bytes4              float64
 ----------- --------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------- ... ------------------- ----------------------
 SBSummary_0 <EntityRef entityId="uid://A001/X1296/Xe4" partId="X00000000" entityTypeName="SchedBlock" documentVersion="1"/> <EntityRef entityId="uid://A001/X1220/Xdd9" partId="X00000000" entityTypeName="ObsProject" documentVersion="1"/> ...                ICRS         4453444735.816]

Those individual entries under, e.g., sbSummaryUID should be parsed into something more human-readable. I'm not actually sure what they're supposed to return, though - we probably have to do some research into the spec to figure this out.

For example:

>>> tbl.as_astropy_tables()[0]['obsUnitSetUID'][0]
'<EntityRef entityId="uid://A001/X1220/Xdd9" partId="X00000000" entityTypeName="ObsProject" documentVersion="1"/>'

I'd likely expect that to return instead just "uid://A001/X1220/Xdd9"

@astrofrog
Copy link
Member

What does the CASA table browser show?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants