pyinterp.backends.xarray.Grid3D.trivariate

pyinterp.backends.xarray.Grid3D.trivariate#

Grid3D.trivariate(coords, method='bilinear', **kwargs)[source]#

Evaluate the interpolation defined for the given coordinates.

Parameters:
  • coords (dict[Hashable, NDArray1DNumericWithTime]) – Mapping from dimension names to the coordinates to interpolate. Coordinates must be array-like. If the third axis is temporal, provide datetime64 array.

  • method (InterpolationMethods) – Interpolation method. See pyinterp.trivariate() for more details.

  • **kwargs (Any) – Additional keyword arguments provided to the interpolation method.

Returns:

The interpolated values.

Raises:

IndexError – If coordinate dimensions don’t match grid dimensions

Return type:

np.ndarray