djs_maskinterp1¶
-
pydl.pydlutils.image.
djs_maskinterp1
(yval, mask, xval=None, const=False)[source]¶ Interpolate over a masked, 1-d array.
Parameters: yval :
numpy.ndarray
The input values.
mask :
numpy.ndarray
The 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: The
yval
array with masked values replaced by interpolated values.