An interpolating function of n variables with m-dimensional values is defined by an (n+m)-dimensional array of values and n one-dimensional arrays that define the variables values corresponding to the grid points. The grid does not have to be equidistant.
Constructor: InterpolatingFunction(axes, values, default=None)
a sequence of one-dimensional arrays, one for each variable, specifying the values of the variables at the grid points
an array containing the function values on the grid
the value of the function outside the grid. A value of None means that the function is undefined outside the grid and that any attempt to evaluate it there yields an exception.
Evaluation: function(x1, x2, ...) yields the function value obtained by linear interpolation.
Indexing: all array indexing operations except for the NexAxis operator are supported.
Methods:Returns a new InterpolatingFunction whose grid is restricted to the interval from first to last along the variable whose number is variable.
Returns a new InterpolatingFunction describing the derivative with respect to variable (an integer).
Returns a new InterpolatingFunction describing the integral with respect to variable (an integer). The integration constant is defined in such a way that the value of the integral at the first grid point along variable is zero.
Returns a new InterpolatingFunction describing the definite integral with respect to variable (an integer). The integration constant is defined in such a way that the value of the integral at the first grid point along variable is zero. In the case of a function of one variable, the definite integral is a number.
Returns a polynomial of order with parameters obtained from a least-squares fit to the grid values.
A subclass of InterpolatingFunction.
Constructor: NetCDFInterpolatingFunction(filename, axesnames, variablename, default=None)
the name of the netCDF file
the names of the netCDF variables that contain the axes information
the name of the netCDF variable that contains the data values
the value of the function outside the grid. A value of None means that the function is undefined outside the grid and that any attempt to evaluate it there yields an exception.
Evaluation: function(x1, x2, ...) yields the function value obtained by linear interpolation.