MCPcopy
hub / github.com/pydata/xarray / open_datatree

Method open_datatree

xarray/backends/zarr.py:1761–1801  ·  view source on GitHub ↗
(
        self,
        filename_or_obj: T_PathFileOrDataStore,
        *,
        mask_and_scale=True,
        decode_times=True,
        concat_characters=True,
        decode_coords=True,
        drop_variables: str | Iterable[str] | None = None,
        use_cftime=None,
        decode_timedelta=None,
        group: str | None = None,
        mode="r",
        synchronizer=None,
        consolidated=None,
        chunk_store=None,
        storage_options=None,
        zarr_version=None,
        zarr_format=None,
    )

Source from the content-addressed store, hash-verified

1759 return ds
1760
1761 def open_datatree(
1762 self,
1763 filename_or_obj: T_PathFileOrDataStore,
1764 *,
1765 mask_and_scale=True,
1766 decode_times=True,
1767 concat_characters=True,
1768 decode_coords=True,
1769 drop_variables: str | Iterable[str] | None = None,
1770 use_cftime=None,
1771 decode_timedelta=None,
1772 group: str | None = None,
1773 mode="r",
1774 synchronizer=None,
1775 consolidated=None,
1776 chunk_store=None,
1777 storage_options=None,
1778 zarr_version=None,
1779 zarr_format=None,
1780 ) -> DataTree:
1781 filename_or_obj = _normalize_path(filename_or_obj)
1782 groups_dict = self.open_groups_as_dict(
1783 filename_or_obj=filename_or_obj,
1784 mask_and_scale=mask_and_scale,
1785 decode_times=decode_times,
1786 concat_characters=concat_characters,
1787 decode_coords=decode_coords,
1788 drop_variables=drop_variables,
1789 use_cftime=use_cftime,
1790 decode_timedelta=decode_timedelta,
1791 group=group,
1792 mode=mode,
1793 synchronizer=synchronizer,
1794 consolidated=consolidated,
1795 chunk_store=chunk_store,
1796 storage_options=storage_options,
1797 zarr_version=zarr_version,
1798 zarr_format=zarr_format,
1799 )
1800
1801 return datatree_from_dict_with_io_cleanup(groups_dict)
1802
1803 def open_groups_as_dict(
1804 self,

Callers

nothing calls this directly

Calls 3

open_groups_as_dictMethod · 0.95
_normalize_pathFunction · 0.90

Tested by

no test coverage detected