API === Opening Measurement Sets ------------------------ The standard :func:`xarray.backends.api.open_dataset` and :func:`xarray.backends.api.open_datatree` methods should be used to open either a :class:`~xarray.Dataset` or a :class:`~xarray.DataTree`. .. code-block:: python >>> dataset = xarray.open_dataset( "/data/data.ms", partition_schema=["DATA_DESC_ID", "FIELD_ID"]) >>> datatree = xarray.backends.api.open_datatree( "/data/data.ms", partition_schema=["DATA_DESC_ID", "FIELD_ID"]) These methods defer to the relevant methods on the `Entrypoint Class `_. Consult the method signatures for information on extra arguments that can be passed. .. _entrypoint-class: Entrypoint Class ---------------- Entrypoint class for the MSv2 backend. .. autoclass:: xarray_ms.backend.msv2.entrypoint.MSv2EntryPoint :members: open_dataset, open_datatree .. _partitioning-schema: Partioning Schema ----------------- The default partitioning schema contains the following columns: .. autodata:: xarray_ms.backend.msv2.structure.DEFAULT_PARTITION_COLUMNS Partitioning always uses these columns, but additional columns can be selected if finer grained partitioning is required: .. autodata:: xarray_ms.backend.msv2.structure.VALID_PARTITION_COLUMNS Note that ``OBS_MODE`` and ``SUB_SCAN_NUMBER`` are columns in the ``STATE`` subtable, while ``SOURCE_ID`` is a column of the ``FIELD`` subtable. Partitioning on these columns is achieved by joining on the ``STATE_ID`` and ``FIELD_ID`` columns, respectively.