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 can be scalars or array-like; they are broadcast against each other.
method (InterpolationMethods) – Interpolation method. See
pyinterp.bivariate()for more details.**kwargs (Any) – Additional keyword arguments provided to the interpolation method.
- Returns:
The interpolated values, with the broadcast shape of the coordinates.
- Raises:
IndexError – If coordinate dimensions don’t match grid dimensions
- Return type:
np.ndarray