xarray.core.resample.DatasetResample.interpolate#
- DatasetResample.interpolate(kind='linear', **kwargs)[source]#
Interpolate up-sampled data using the original data as knots.
- Parameters:
kind (
{"linear", "nearest", "zero", "slinear", "quadratic", "cubic", "polynomial"}, default:"linear") – The method used to interpolate. The method should be supported by the scipy interpolator:interp1d: {“linear”, “nearest”, “zero”, “slinear”, “quadratic”, “cubic”, “polynomial”}interpn: {“linear”, “nearest”}
If
"polynomial"is passed, theorderkeyword argument must also be provided.- Returns:
See also
DataArray.interp,Dataset.interp,scipy.interpolate.interp1d