pyinterp.core.bivariate_float64

pyinterp.core.bivariate_float64#

pyinterp.core.bivariate_float64(grid: pyinterp.core.Grid2DFloat64, x: Annotated[numpy.typing.ArrayLike, numpy.float64], y: Annotated[numpy.typing.ArrayLike, numpy.float64], interpolator: pyinterp.core.BivariateInterpolator2D, bounds_error: bool = False, num_threads: SupportsInt = 0) numpy.typing.NDArray[numpy.float64]#

Interpolate values on a bivariate function.

Performs bivariate interpolation of the values provided on a 2D grid using the specified interpolator.

Parameters:
  • grid – Grid containing the values to be interpolated.

  • x – X-coordinate values.

  • y – Y-coordinate values.

  • interpolator – 2D interpolator used to interpolate values on the grid.

  • bounds_error – If True, raises ValueError when interpolated values are requested outside the domain of the input axes (x, y). If False, sets values to NaN. Defaults to False.

  • num_threads – Number of threads to use for computation. If 0, all CPUs are used. If 1, no parallel computing is used (useful for debugging). Defaults to 0.

Returns:

Array of interpolated values.