-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Snowball" masking with snowblind
#183
Conversation
With this PR, this algorithm is preferred in the initial data preprocessing in To refine the masks in existing exposures when making mosaics call from grizli.aws import visit_processor
snowblind_kws = dict(new_jump_flag=1024, min_radius=4, growth_factor=1.5, unset_first=True)
mos = visit_processor.cutout_mosaic('gds-snow', ra=53.0917130, dec=-27.7425336,
size=120,
filters=['F210M-CLEAR'],
clean_flt=False, s3output=None,
ir_scale=0.04,
half_optical=False,
weight_type='jwst',
kernel='square', pixfrac=0.8,
make_exptime_map=False,
skip_existing=False,
snowblind_kwargs=snowblind_kws, # set to something other than `None`
) |
h/t @jdavies-st |
Note that snowblind requires scikit-image>=0.20.0, where 'skimage.morphology.isotropic_dilation' was introduced. |
Added in 93deb61. Thanks! |
Thanks for noting this @pascaloesch. I'll update the requirements for |
|
Awesome, thanks! |
Implement DQ masking with the snowblind module, which has better mask shapes that vary in size depending on the snowball intensity.
As of 5 Dec 2023, the functionality to run the masking on
rate
products has not yet been merged into the mainsnowblind
repository, so it has to be installed from the fork: