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
, optional If set, use these x values, otherwise use an array.
- const
bool
, optional If 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.
- yval
- Returns:
numpy.ndarray
The
yval
array with masked values replaced by interpolated values.