MCPcopy Index your code
hub / github.com/pydata/xarray / open_groups_as_dict

Method open_groups_as_dict

xarray/backends/common.py:814–831  ·  view source on GitHub ↗

Opens a dictionary mapping from group names to Datasets. Called by :py:func:`~xarray.open_groups`. This function exists to provide a universal way to open all groups in a file, before applying any additional consistency checks or requirements necessary to cr

(
        self,
        filename_or_obj: T_PathFileOrDataStore,
        *,
        drop_variables: str | Iterable[str] | None = None,
    )

Source from the content-addressed store, hash-verified

812 raise NotImplementedError()
813
814 def open_groups_as_dict(
815 self,
816 filename_or_obj: T_PathFileOrDataStore,
817 *,
818 drop_variables: str | Iterable[str] | None = None,
819 ) -> dict[str, Dataset]:
820 """
821 Opens a dictionary mapping from group names to Datasets.
822
823 Called by :py:func:`~xarray.open_groups`.
824 This function exists to provide a universal way to open all groups in a file,
825 before applying any additional consistency checks or requirements necessary
826 to create a `DataTree` object (typically done using :py:meth:`~xarray.DataTree.from_dict`).
827
828 If implemented, set the class variable supports_groups to True.
829 """
830
831 raise NotImplementedError()
832
833
834# mapping of engine name to (module name, BackendEntrypoint Class)

Callers 1

open_groupsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected