jwst_snowblind_mask¶
- grizli.utils.jwst_snowblind_mask(rate_file, require_prefix='jw', max_fraction=0.3, new_jump_flag=1024, min_radius=4, growth_factor=1.5, unset_first=True, verbose=True, skip_after_cal_version='1.14', **kwargs)[source]¶
Update JWST DQ mask with
snowblind
. See https://github.com/mpi-astronomy/snowblind.Requires
snowblind > 0.1.2
, which currently is just in the fork at https://github.com/gbrammer/snowblind.- Parameters
- rate_filestr
Filename of a
rate.fits
exposure- require_prefixstr
Only run if
rate_file.startswith(require_prefix)
- max_fractionfloat
Maximum allowed fraction of flagged pixels relative to the total
- new_jump_flagint
Integer DQ flag of identified snowballs
- min_radiusint
Minimum radius of
JUMP_DET
flagged groups of pixels- growth_factorfloat
Scale factor of the DQ mask
- unset_firstbool
Unset the
new_jump_flag
bit of the DQ array before processing- verbosebool
Whether to print verbose output
- kwargsdict
Additional keyword arguments to be passed to
snowblind.SnowblindStep.call()
- Returns
- dqarray-like
Image array with values
new_jump_flag
with identified snowballs- mask_fracfloat
Fraction of masked pixels