Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Story Points:1
-
Epic Link:
-
Team:Data Release Production
-
Urgent?:No
Description
Erik Dennihy noticed that the local_PhotoCalib columns don't match the calexp.photoCalib. Colin Slater noticed that photoCal runs after measurement.
Symptom example:
butler = dafButler.Butler('/repo/main', collections=['HSC/runs/RC2/w_2022_04/DM-33402'])
|
|
calexp = butler.get('calexp', visit=30504, detector=54)
|
src = butler.get('src', visit=30504, detector=54)
|
print(calexp.getPhotoCalib().getLocalCalibration(calexp.getBBox().getCenter()))
|
print(np.median(src['base_LocalPhotoCalib']))
|
# >>>0.18701489832531293
|
# >>>0.04394189128521331
|
Easy solution (without thinking about it too hard) would be to add a second round of measurement after photocal.
For DP0.2. we can run the RecalibrateSourceTable task I'm working on right now under DM-33959, with calexp.photoCalib as input, as an afterburner.
I'll note that this is more serious than just the local photoCalib columns being wrong: all calibrated nJy fluxes in our sourceTable and consolidated visit table files are wrong!