mask_IR_psf_spikes¶
- grizli.pipeline.auto_script.mask_IR_psf_spikes(visit={}, mag_lim=17, cat=None, cols=['mag_auto', 'ra', 'dec'], minR=8, dy=5, selection=None, length_scale=1, dq_bit=2048)[source]¶
Mask 45-degree diffraction spikes around bright stars for WFC3/IR
- Parameters
- minRfloat
Mask spike pixels > minR from the star centers
- dyint
Mask spike pixels +/-
dy
pixels from the computed center of a spike.- selectionbool array
If None, then compute
mag < mag_auto
fromcat
. Otherwise if supplied, use as the selection mask.- length_scalefloat
Scale length of the spike mask by this factor. The default spike mask length in pixels is
>>> # m = star AB magnitude >>> mask_len = 4*np.sqrt(10**(-0.4*(np.minimum(m,17)-17)))/0.06
- Returns
- NoneNone
Updates exposure files in place