radio-astro-tools / casa-formats-io

Code to handle I/O from/to data in CASA format
Other
10 stars 7 forks source link

Load an MS into glue #27

Open keflavich opened 3 years ago

keflavich commented 3 years ago

Since casa-formats-io can now make astropy tables, we need documentation on how to use casa-formats-io to load an MS into glue

astrofrog commented 3 years ago

We should think about how we want to deal with the vector columns from a glue perspective

keflavich commented 3 years ago

Can glue deal with vector columns at all? The Hyperion RT grid also uses vector columns for a lot of things, it would be nice to load those into glue too (this is somewhat off-topic)

astrofrog commented 3 years ago

Well it could if we broadcasted all scalar columns to the same shape. Otherwise for now the shapes have to match. But this could be changed.

keflavich commented 3 years ago

I don't know what the interface should look like, but the most logical thing to do with vector columns from CASA data is to plot summary statistics: mean, median, sum, etc. Or, optionally, all of the data, flattened. I think that's what plotms allows.

astrofrog commented 3 years ago

What is the meaning of the extra dimensions? Polarisations?

keflavich commented 3 years ago

Not sure in general; they might be polarization in some cases, time in other cases, depending on the table. If it's length 2 or 4, I'd say polarization.