scipy.interpolate.RegularGridInterpolator.__call__

RegularGridInterpolator.__call__(xi, method=None, compute_gradients=True)[source]

Interpolation at coordinates

Parameters:

xi : ndarray of shape (…, ndim)

The coordinates to sample the gridded data at

method : str, optional

The method of interpolation to perform. Supported are ‘nearest’, ‘linear’, ‘slinear’, ‘cubic’, and ‘quintic’. Default is None, which will use the method defined at the construction of the interpolation object instance.

computer_gradients : bool, optional

If a spline interpolation method is chosen, this determines whether gradient calculations should be made and cached. Default is True.