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

Method dataset

xarray/core/datatree.py:674–687  ·  view source on GitHub ↗

An immutable Dataset-like view onto the data in this node. Includes inherited coordinates and indexes from parent nodes. For a mutable Dataset containing the same data as in this node, use `.to_dataset()` instead. See Also -------- DataTree

(self)

Source from the content-addressed store, hash-verified

672
673 @property
674 def dataset(self) -> DatasetView:
675 """
676 An immutable Dataset-like view onto the data in this node.
677
678 Includes inherited coordinates and indexes from parent nodes.
679
680 For a mutable Dataset containing the same data as in this node, use
681 `.to_dataset()` instead.
682
683 See Also
684 --------
685 DataTree.to_dataset
686 """
687 return self._to_dataset_view(rebuild_dims=True, inherit=True)
688
689 @dataset.setter
690 def dataset(self, data: Dataset | None = None) -> None:

Callers

nothing calls this directly

Calls 3

_to_dataset_viewMethod · 0.95
_replace_nodeMethod · 0.95
_to_new_datasetFunction · 0.85

Tested by

no test coverage detected