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, optional An “or” mask. Although technically this is optional, if it is not supplied, this function will have no effect.
- ngrow
int, optional Expand bad areas by this number of pixels.
- invvar
- Returns:
numpy.ndarrayThe
invvarmultiplied by the bad areas.