pyinterp.core.quadrivariate_float32

pyinterp.core.quadrivariate_float32(*args, **kwargs)

Overloaded function.

  1. quadrivariate_float32(grid: pyinterp.core.Grid4DFloat32, x: numpy.ndarray[numpy.float64], y: numpy.ndarray[numpy.float64], z: numpy.ndarray[numpy.float64], u: numpy.ndarray[numpy.float64], interpolator: pyinterp.core.BivariateInterpolator3D, z_method: Optional[str] = None, u_method: Optional[str] = None, bounds_error: bool = False, num_threads: int = 0) -> numpy.ndarray[numpy.float64]

Interpolate the values provided on the defined trivariate function.

Parameters
  • grid (pyinterp.core.Grid4DFloat32) – Grid containing the values to be interpolated.

  • x (numpy.ndarray) – X-values.

  • y (numpy.ndarray) – Y-values.

  • z (numpy.ndarray) – Z-values.

  • u (numpy.ndarray) – U-values.

  • interpolator (pyinterp.core.BivariateInterpolator3D) – 3D interpolator used to interpolate values on the surface (x, y, z). A linear interpolation is used to evaluate the surface (x, y, z, u).

  • z_method (str, optional) – The method of interpolation to perform on Z-axis. Supported are linear and nearest. Default to linear.

  • u_method (str, optional) – The method of interpolation to perform on U-axis. Supported are linear and nearest. Default to linear.

  • bounds_error (bool, optional) – If True, when interpolated values are requested outside of the domain of the input axes (x, y, z, u), a ValueError is raised. If False, then value is set to NaN.

  • num_threads (int, optional) – The number of threads to use for the computation. If 0 all CPUs are used. If 1 is given, no parallel computing code is used at all, which is useful for debugging. Defaults to 0.

Returns

Values interpolated.

Return type

numpy.ndarray

  1. quadrivariate_float32(grid: pyinterp.core.TemporalGrid4DFloat32, x: numpy.ndarray[numpy.float64], y: numpy.ndarray[numpy.float64], z: numpy.ndarray[numpy.int64], u: numpy.ndarray[numpy.float64], interpolator: pyinterp.core.TemporalBivariateInterpolator3D, z_method: Optional[str] = None, u_method: Optional[str] = None, bounds_error: bool = False, num_threads: int = 0) -> numpy.ndarray[numpy.float64]

Interpolate the values provided on the defined trivariate function.

Parameters
  • grid (pyinterp.core.TemporalGrid4DFloat32) – Grid containing the values to be interpolated.

  • x (numpy.ndarray) – X-values.

  • y (numpy.ndarray) – Y-values.

  • z (numpy.ndarray) – Z-values.

  • u (numpy.ndarray) – U-values.

  • interpolator (pyinterp.core.TemporalBivariateInterpolator3D) – 3D interpolator used to interpolate values on the surface (x, y, z). A linear interpolation is used to evaluate the surface (x, y, z, u).

  • z_method (str, optional) – The method of interpolation to perform on Z-axis. Supported are linear and nearest. Default to linear.

  • u_method (str, optional) – The method of interpolation to perform on U-axis. Supported are linear and nearest. Default to linear.

  • bounds_error (bool, optional) – If True, when interpolated values are requested outside of the domain of the input axes (x, y, z, u), a ValueError is raised. If False, then value is set to NaN.

  • num_threads (int, optional) – The number of threads to use for the computation. If 0 all CPUs are used. If 1 is given, no parallel computing code is used at all, which is useful for debugging. Defaults to 0.

Returns

Values interpolated.

Return type

numpy.ndarray