interp_error_1d¶
- sofia_redux.toolkit.interpolate.interpolate.interp_error_1d(x, error, xout, cval=nan)[source]¶
Perform linear interpolation of errors
- Parameters:
- xarray_like of float
(N,) array of independent values.
- errorarray_like of float
(N,) array of errors in dependent values.
- xoutint or float or (array_like of (int or float))
New independent values. Either a scalar or array of shape (M,)
- cvalfloat, optional
Value to fill in requested interpolation points outside the data range.
- Returns:
- float or numpy.ndarray
The new dependent error values at
xout
. Will be either a float or array of shape (M,) and numpy.float64 type depending on the suppliedxout
.