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

Method _from_temp_dataset

xarray/core/dataarray.py:589–595  ·  view source on GitHub ↗
(
        self, dataset: Dataset, name: Hashable | Default | None = _default
    )

Source from the content-addressed store, hash-verified

587 return self._to_dataset_whole(name=_THIS_ARRAY, shallow_copy=False)
588
589 def _from_temp_dataset(
590 self, dataset: Dataset, name: Hashable | Default | None = _default
591 ) -> Self:
592 variable = dataset._variables.pop(_THIS_ARRAY)
593 coords = dataset._variables
594 indexes = dataset._indexes
595 return self._replace(variable, coords, name, indexes=indexes)
596
597 def _to_dataset_split(self, dim: Hashable) -> Dataset:
598 """splits dataarray along dimension 'dim'"""

Callers 15

from_irisFunction · 0.95
drop_encodingMethod · 0.95
loadMethod · 0.95
load_asyncMethod · 0.95
persistMethod · 0.95
chunkMethod · 0.95
iselMethod · 0.95
selMethod · 0.95
_shuffleMethod · 0.95
headMethod · 0.95
tailMethod · 0.95
thinMethod · 0.95

Calls 1

_replaceMethod · 0.95