LSSTDESC / Monitor

Extract light curves for time-variable cosmological objects
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

zero points in desc.monitor.LightCurve.build_lightcurve* need to be set correctly #42

Open jchiang87 opened 8 years ago

jchiang87 commented 8 years ago

The fluxes extracted from the forced source FITS catalogs using this code https://github.com/DarkEnergyScienceCollaboration/Monitor/blob/master/python/desc/monitor/monitor.py#L114 need to have the zero points set for each visit from the calexp data. See https://github.com/DarkEnergyScienceCollaboration/pserv/blob/master/python/desc/pserv/utils.py#L73

For the lightcurves built from the Level 2 ForcedSource table, since the units of fluxes in that table are nmgy, this line https://github.com/DarkEnergyScienceCollaboration/Monitor/blob/master/python/desc/monitor/monitor.py#L167 should be

lightcurve['zp'].append(22.5)