Backward compatible implementation of ``map`` See Also -------- DataArrayResample.map
(self, func, args=(), shortcut=None, **kwargs)
| 366 | return combined |
| 367 | |
| 368 | def apply(self, func, args=(), shortcut=None, **kwargs): |
| 369 | """ |
| 370 | Backward compatible implementation of ``map`` |
| 371 | |
| 372 | See Also |
| 373 | -------- |
| 374 | DataArrayResample.map |
| 375 | """ |
| 376 | warnings.warn( |
| 377 | "Resample.apply may be deprecated in the future. Using Resample.map is encouraged", |
| 378 | PendingDeprecationWarning, |
| 379 | stacklevel=2, |
| 380 | ) |
| 381 | return self.map(func=func, shortcut=shortcut, args=args, **kwargs) |
| 382 | |
| 383 | def asfreq(self) -> DataArray: |
| 384 | """Return values of original object at the new up-sampling frequency; |