interpolate_nans¶
- sofia_redux.toolkit.interpolate.interpolate.interpolate_nans(x, y, xout, missing=nan, order=3, width=1, tck=False)[source]¶
Interpolate values containing NaNs
- Parameters:
- xnp.array
independent variable
- ynp.array
dependent variable
- xoutnp.array
output locations
- missingint or float, optional
value to fill when a value cannot be determined
- widthspacing between x values. Used to determine minimum order
- tckbool, optional
if True, returns an array containing the vector limits of knots, B-spline coefficients, and the degree of the spline.
- orderint
spline order
- Returns:
- np.array or tuple
y interpolated onto xout or tck