xarray.core.resample.DataArrayResample.interpolate#
- DataArrayResample.interpolate(kind='linear')[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, theorder
keyword argument must also be provided.- Returns:
See also
DataArray.interp
,Dataset.interp
,scipy.interpolate.interp1d