cngi.vis.split_dataset

split_dataset(mxds: xarray.Dataset, xds_names: Union[str, List[str]])xarray.Dataset[source]

Pull the xds visibilites out with the mxds, preserving only that information in the subtables that is related to the given visibilities.

Creates a new mxds to return based off the input mxds. Only the visibilites mentioned in xds_names are included. Subtable data is reduced to only include related information, based on the relational keys in the visibility tables. Finally, the coordinate values of the new mxds are updated to reflect the limited coordinate values in the included visibilities.

Parameters
  • mxds (xarray.Dataset) – The multi-xds dataset to pull data out of.

  • xds_names (str or list) – Name(s) of the visibilities dataset. Each name should be of the form “xds*”

Returns

A new mxds, which includes just the xds_names visibility Dataset(s) and the related information from the mxds subtables.

Return type

xarray.Dataset