pyinterp.backends.xarray.Grid4D.quadrivariate#
- Grid4D.quadrivariate(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.quadrivariate()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