Writing xarray.Datasets to casa images currently fails (in an unfriendly way) when at least one of the data variables is a numpy array. The code is expecting dask arrays. However, this is unnecessarily constraining and since it is easy to create xr.Datasets using the xradio.image.make* methods and to attach numpy arrays as data variables to them, xradio.image.write_image() should support writing xarray.Datasets to CASA images even if they contain numpy arrays rather than dask arrays.
Writing xarray.Datasets to casa images currently fails (in an unfriendly way) when at least one of the data variables is a numpy array. The code is expecting dask arrays. However, this is unnecessarily constraining and since it is easy to create xr.Datasets using the xradio.image.make* methods and to attach numpy arrays as data variables to them, xradio.image.write_image() should support writing xarray.Datasets to CASA images even if they contain numpy arrays rather than dask arrays.