RCAIDE.Framework.Core.Utilities.interp2d#
- interp2d(x, y, xp, yp, zp, fill_value=None)[source]#
Bilinear interpolation on a grid.
CartesianGrid
is much faster if the data lies on a regular grid. :param x: 1D arrays of point at which to interpolate. Any out-of-boundscoordinates will be clamped to lie in-bounds.
- Parameters:
y – 1D arrays of point at which to interpolate. Any out-of-bounds coordinates will be clamped to lie in-bounds.
xp – 1D arrays of points specifying grid points where function values are provided.
yp – 1D arrays of points specifying grid points where function values are provided.
zp – 2D array of function values. For a function f(x, y) this must satisfy zp[i, j] = f(xp[i], yp[j])
- Returns:
1D array z satisfying z[i] = f(x[i], y[i]).