casangi / xradio

Xarray Radio Astronomy Data IO
https://xradio.readthedocs.io/en/latest/
Other
9 stars 5 forks source link

Create Phased Array Dataset. #69

Open Jan-Willem opened 10 months ago

Jan-Willem commented 10 months ago

Create a function that will convert a MS v2 phased array table to a MS v4 phased array dataset (https://docs.google.com/spreadsheets/d/14a6qMap9M5r_vjpLnaBKxsR9TF4azN5LVdOxLacOX-s/edit?usp=sharing).

The function should appear in xradio/vis/_vis_utils/_ms/msv4_sub_xdss.py (see create_ant_xds as an example) and be called in the convert_and_write_partition function (xradio/vis/_vis_utils/_ms/conversion.py) after ant_xds = create_ant_xds(in_file) and then saved to zarr under if storage_backend == "zarr":. The function read_processing_set (src/xradio/vis/read_processing_set.py) should also be updated so to that the datatset can be read.