Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: obs_subaru
-
Labels:
-
Story Points:4
-
Epic Link:
-
Sprint:DRP S21a (Dec Jan)
-
Team:Data Release Production
-
Urgent?:No
Description
The Gen2 obs_subaru policy file policy/HscMapper.yaml defines bias and dark calibrations to be of type ImageF, which, by definition, does not have mask or variance planes. On read, these are passed through a standardization step that converts ImageF to an ExposureF by adding empty mask and variance planes. However, when running a comparison test using Gen3 middleware (on DM-28936), it was revealed that these files do have variance and masks planes, it turns out these calibration files do have mask and variance planes and uses them when updating the variance planes throughout the processing. So, as it stands, Gen2 and Gen3 are behaving slightly differently leading to small (and very likely scientifically insignificant) differences, putting a dent in our efforts towards acheiving Gen2/Gen3 parity through Single Frame Processing. The fix is to update the bias and dark formats in the policy file from ImageF to MaskedImageF, which will be done here.
As a validation of this fix, I ran two Gen2 processCcd processing of a single HSC visit (1228 which is HSC-I and in the COSMOS 9813 tract) with the latest w_2021_09 master stack, and against this change. I also ran the same visit with Gen3. The latter Gen2 and Gen3 visits now compare bitwise identical for all image planes (image, variance, mask) in both the icExp and calexp outputs for all 103 CCDs. The src catalogs also compare almost identically, but for the minor differences noted in
DM-28858(based on ci_hsc_gen2 vs. ci_hsc_gen3 comparisons) and currently under investigation (but blocked by this ticket) onDM-28936.I also compared the two Gen2 runs. While there are very small differences in the data products due to the minor differences in the variance planes (resulting in slight thresholding differences --> slightly different numbers of CRs detected and source footprint sizes --> slight differences in centroids for deblended sources, etc...), these were discussed during Princeton's regular Monday Meeting on Mar 1, 2021, and it was agreed they were indeed at too small a level to cause any concern and that this change should be made. Direct comparison plots can be perused (for the time being!) here and I've attached a few examples to the ticket for posterity (make particular note of the scales/units on these comparison plots...differences are tiny!).