Details
-
Type:
Bug
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: meas_photocal
-
Labels:None
-
Story Points:1
-
Epic Link:
-
Sprint:Science Pipelines DM-S15-5, Science Pipelines DM-S15-6
-
Team:Data Release Production
Description
Dominique points out that the zero point calibration uses errors not inverse errors to calculate the zero point. git annotate reveals:
24c9149f python/lsst/meas/photocal/PhotoCal.py (Robert Lupton the Good 2010-12-13 05:03:12 +0000 353) return np.average(dmag, weights=dmagErr), np.std(dmag, ddof=1), len(dmag)
Please fix this. At the same time, we should add a config parameter to soften the errors.
Attachments
Issue Links
- is contained by
-
DM-2308 Improve hacks in PhotoCalTask for dealing with reference flux uncertainties
- To Do
I think that the error is also incorrect (np.std(dmag)) I think that it should be something like :
zp, sum = np.average(dmag, weights=1/dmagErr**2,returned=True)
sigma = np.sqrt(1.0/sum)
Assuming that the dmagErr values are correct