Skip to main content

interp

Function interp 

Source
pub fn interp(
    a: &NdArrowArray,
    dim: &str,
    x: &NdArrowArray,
    new_x: &NdArrowArray,
) -> Result<NdArrowArray>
Expand description

Interpolate a linearly along dim from coordinates x to new_x, like xarray.DataArray.interp with method="linear".

x is 1-D, strictly increasing and as long as dim. new_x is 1-D. The result keeps the axis order and has new_x.len() elements along dim. Points outside [x[0], x[-1]], null points and points next to a null value give null. The result is Float64 (Float32 for Float32 input).