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

Method asfreq

xarray/core/resample.py:512–521  ·  view source on GitHub ↗

Return values of original object at the new up-sampling frequency; essentially a re-index with new times set to NaN. Returns ------- resampled : Dataset

(self)

Source from the content-addressed store, hash-verified

510 )
511
512 def asfreq(self) -> Dataset:
513 """Return values of original object at the new up-sampling frequency;
514 essentially a re-index with new times set to NaN.
515
516 Returns
517 -------
518 resampled : Dataset
519 """
520 self._obj = self._drop_coords()
521 return self.mean(None if self._dim is None else [self._dim])

Callers 4

test_upsampleMethod · 0.45
test_upsample_ndMethod · 0.45

Calls 2

_drop_coordsMethod · 0.45
meanMethod · 0.45

Tested by 4

test_upsampleMethod · 0.36
test_upsample_ndMethod · 0.36