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) on DM-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!).
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!).