cngi.vis.join_dataset

join_dataset(mxds1, mxds2)[source]

Join together two visibility zarr directories.

Creates a new mxds with all the visibilities “xds*” of mxds1/mxds2 and all the subtables of mxds1 and mxds2. Visibilities are renamed so as not to collide where necessary. Subtable values are preserved where they are equal, and updated to have new dimensional coordinate values where they are not equal.

The order of the visibilities in the two mxds is preserved. If mxds1 and mxds2 have visibilits [“xds0”, “xds2”] and [“xds1”, “xds2”], respectively, then the new mxds will have visibilities [“xds0”, “xds2”, “xds3”, “xds4”], where the visibilities from mxds2 got renamed xds1->xds3 and xds2->xds4.

Parameters
  • mxds1 (xarray.core.dataset.Dataset) – First multi-xarray Dataset with global data to join.

  • mxds2 (xarray.core.dataset.Dataset) – Second multi-xarray Dataset with global data to join.

Returns

New output multi-xarray Dataset with global data.

Return type

xarray.core.dataset.Dataset