interp_error_nd¶
- sofia_redux.toolkit.interpolate.interpolate.interp_error_nd(points, error, xi, cval=nan)[source]¶
Propagate errors using Delaunay triangulation in N-dimensions
Uses
interp_error_1d
to propagate errors in 1-dimension following linear interpolation, or propagates errors in N-dimensions when Delaunay triangulation has been used for linear interpolation.This is not accurate for any other type of interpolation other than the types mentioned above.
- Parameters:
- pointsnumpy.ndarray (nsamples, ndim) or Delaunay triangulation
Coordinates of points or the pre-computed scipy.spatial.Delaunay triangulation.
- errorfloat or numpy.ndarray (nsamples,)
Error at each point.
- xinumpy.ndarray (npoints, ndim)
Points at which to interpolate data.
- cvalfloat, optional
Value to fill in requested interpolation points outside the data range.
- Returns:
- numpy.ndarray (npoints,)