pyinterp.backends.xarray.Grid2D.bivariate#
- Grid2D.bivariate(coords, method='bilinear', **kwargs)[source]#
Evaluate the interpolation defined for the given coordinates.
- Parameters:
coords (dict[Hashable, NDArray1DNumeric]) – Mapping from dimension names to the coordinates to interpolate. Coordinates must be array-like.
method (InterpolationMethods) – Interpolation method. See
pyinterp.bivariate()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