Skip to main content

resample_linear

Function resample_linear 

Source
pub fn resample_linear(
    arr: &XarrayDataArray,
    new_shape: Vec<usize>,
) -> XarrayDataArray
Expand description

Resample an array to a new shape using nearest-neighbour / linear interpolation.

Uses trilinear interpolation for up to 3-D; falls back to nearest-neighbour for higher dimensions.