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

Class DataArrayWeighted

xarray/computation/weighted.py:541–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539
540
541class DataArrayWeighted(Weighted["DataArray"]):
542 def _implementation(self, func, dim, **kwargs) -> DataArray:
543 self._check_dim(dim)
544
545 dataset = self.obj._to_temp_dataset()
546 dataset = dataset.map(func, dim=dim, **kwargs)
547 return self.obj._from_temp_dataset(dataset)
548
549
550class DatasetWeighted(Weighted["Dataset"]):

Callers 1

weightedMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…