djs_maskinterp1

pydl.pydlutils.image.djs_maskinterp1(yval, mask, xval=None, const=False)[source]

Interpolate over a masked, 1-d array.

Parameters:
yvalnumpy.ndarray

The input values.

masknumpy.ndarray

The mask.

xvalnumpy.ndarray, optional

If set, use these x values, otherwise use an array.

constbool, 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 of numpy.interp(), this value actually makes no difference in the output.

Returns:
numpy.ndarray

The yval array with masked values replaced by interpolated values.