Module for 1D interpolation
This module:
See interpolation2d.py for documentation of the mathematical derivation used.
Check inputs for interpolate1d function
Fundamental 2D interpolation routine
x: 1D array of x-coordinates on which to interpolate
z: 1D array of values for each x
points: 1D array of coordinates where interpolated values are sought
‘constant’ - piecewise constant nearest neighbour interpolation ‘linear’ - bilinear interpolation using the two
nearest neighbours (default)
be raised when interpolated values are requested outside the domain of the input data. If False, nan is returned for those values
Input coordinates x are assumed to be monotonically increasing, but need not be equidistantly spaced.
z is assumed to have dimension M where M = len(x).
This module forms part of the InaSAFE tool.