Add a global variable BKG_CLIP used in grizli.utils.drizzle_from_visit to mask outlier pixels in the BKG extension of grizli-processed JWST exposures. There are a few examples where there are excessively negative pixels in the BKG maps that then show up as stripes of bad pixels in the combined mosaic.
The three elements of the BKG_CLIP array are interpreted as
Add a global variable
BKG_CLIP
used ingrizli.utils.drizzle_from_visit
to mask outlier pixels in theBKG
extension of grizli-processed JWST exposures. There are a few examples where there are excessively negative pixels in the BKG maps that then show up as stripes of bad pixels in the combined mosaic.The three elements of the
BKG_CLIP
array are interpreted aswhere the
_badpix
mask is added to the DQ mask for that exposure.To turn off the masking, set
grizli.utils.BKG_CLIP = None
(it's not currently implemented as a keyword argument ongrizli.utils.drizzle_from_visit
).