djs_maskinterp1¶
-
pydl.pydlutils.image.djs_maskinterp1(yval, mask, xval=None, const=False)[source]¶ Interpolate over a masked, 1-d array.
Parameters: yval :
numpy.ndarrayThe input values.
mask :
numpy.ndarrayThe mask.
xval :
numpy.ndarray, optionalIf set, use these x values, otherwise use an array.
const :
bool, optionalIf set to
True, bad values around the edges of the array will be set to a constant value. Because of the default behavior ofnumpy.interp(), this value actually makes no difference in the output.Returns: numpy.ndarrayThe
yvalarray with masked values replaced by interpolated values.