skymask¶
-
pydl.pydlspec2d.spec1d.
skymask
(invvar, andmask, ormask=None, ngrow=2)[source]¶ Mask regions where sky-subtraction errors are expected to dominate.
Parameters: invvar :
numpy.ndarray
Inverse variance.
andmask :
numpy.ndarray
An “and” mask. For historical reasons, this input is ignored.
ormask :
numpy.ndarray
, optionalAn “or” mask. Although technically this is optional, if it is not supplied, this function will have no effect.
ngrow :
int
, optionalExpand bad areas by this number of pixels.
Returns: The
invvar
multiplied by the bad areas.