Closed stscijgbot-hstdp closed 4 months ago
Comment by Steve Goldman on JIRA:
Jennifer Mack Hey Jenn, working on a PR for this. I just wanted to add more detail in the chagelog for the code change. Can you briefly describe what the new bit mask value now includes (i.e. what flag values)?
Comment by Jennifer Mack on JIRA:
Previously we treated all DQ flags as good pixels (final_bits=65535) with the idea that bad pixels typically do less harm than interpolating over those bad pixels (e.g. near the core of a star where the slope of the PSF is changing rapidly).
Single IR frames are more likely to be direct image counterparts of grism observations and are thus usually faint targets whose photometry would be more impacted by bad pixels.
Therefore we want to treat DQ flags as bad pixels and reject them from the drizzled output. The exception is DQ 512 (IR blobs) + DQ 16 (stable hot pixels), which are recommended to be okay by the WFC3 team, so we set final_bits= 528 to keep this pixels.
Comment by Steve Goldman on JIRA:
Perfect. I'll add this info to the code change request.
Comment by Steve Goldman on JIRA:
closed by PR-1783
Issue HLA-1243 was created on JIRA by Jennifer Mack:
To improve the quality of the HAP products and catalogs, the drizzle parameters for WFC3/IR single exposures need to be updated to exclude bad pixels.
To do so, this json file should have one change:
"final_bits": "65535" --> "final_bits": "528"
https://github.com/spacetelescope/drizzlepac/blob/main/drizzlepac/pars/hap_pars/svm_parameters/wfc3/ir/wfc3_ir_astrodrizzle_any_n1.json
From Rick White:
Here are links to the HAP and HLA versions of one test image:
hst_12568_38_wfc3_ir_f140w_ibtt38