xarray.core.resample.DatasetResample.pad#
- DatasetResample.pad(tolerance=None)[source]#
Forward fill new values at up-sampled frequency.
- Parameters:
tolerance (
float | Iterable[float] | str | None, default:None) – Maximum distance between original and new labels to limit the up-sampling method. Up-sampled data with indices that satisfy the equationabs(index[indexer] - target) <= toleranceare filled by new values. Data with indices that are outside the given tolerance are filled withNaNs.- Returns: