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.ndarrayInverse variance.
andmask :
numpy.ndarrayAn “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: numpy.ndarrayThe
invvarmultiplied by the bad areas.