image_to_zarr(infile, outfile=None, artifacts=None)[source]

Convert legacy format Image or FITS format image to xarray Image Dataset compatible zarr format

This function requires CASA6 casatools module.

  • infile (str) – Input image filename (.image or .fits format)

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

  • artifacts (list of str) – List of other image artifacts to include if present with infile. Default None uses ['mask','model','pb','psf','residual','sumwt','weight']