djs_maskinterp

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

Interpolate over masked pixels in a vector, image or 3-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

axisint, optional

Must be set if yval has more than one dimension. If set to zero, interpolate along the first axis of the array, if set to one, interpolate along the second axis of the array, and so on.

constbool, optional

This value is passed to a helper function, djs_maskinterp1.

Returns:
numpy.ndarray

The interpolated array.