ms_to_zarr(infile, outfile=None, ddi=None, compressor=None, chunk_shape=(100, 400, 20, 1))[source]

Convert legacy format MS to xarray Visibility Dataset compatible zarr format

This function requires CASA6 casatools module.

  • infile (str) – Input MS filename

  • outfile (str) – Output zarr filename. If None, will use infile name with .vis.zarr extension

  • ddi (int) – Specific ddi to convert. Leave as None to convert entire MS

  • compressor (numcodecs.blosc.Blosc) – The blosc compressor to use when saving the converted data to disk using zarr. If None the zstd compression algorithm used with compression level 2.

  • chunk_shape (4-D tuple of ints) – Shape of desired chunking in the form of (time, baseline, channel, polarization). Default is (100, 400, 20, 1) Note: chunk size is the product of the four numbers, and data is batch processed by time axis, so that will drive memory needed for conversion.