How do I use color terms when calibrating fluxes?
Do you mean in standard astronomical way with linear terms, or using
LSST approach? If the latter, see eqs. in Sec. 4.1 from LSE-180.
This post describes how to apply color term corrections using the LSST DM software stack as of 2015-08-28.
Color term corrections are applied by the PhotoCalTask, which is called by ProcessCcdTask. Applying color term corrections requires two things:
-
You must enable colorterm corrections by setting config parameter
calibrate.photocal.applyColorTerms=True. You may also setcalibrate.photocal.photoCatNameto to the name of the reference catalog, but the default value ofNoneuses the name of theastrometry_net_dataproduct you have setup, and that will usually work. -
You must have color term correction data available for the camera and reference catalog in question. Color term correction data is contained in
obs_*packages in the directoryconfig/[camera/]colorterms.py. For an example seeobs_subaru. Color term data is stored in aColortermLibrary, a dictionary of reference catalog name: (dictionary of science filter name:Colorterm).Colortermcontains color term correction coefficients for one science filter.
For more information see PhotoCalTask, Colorterm and ColortermLibrary, all presently in pipe_tasks.
Many improvements are planned, including:
- Improve the way color term data is stored and retrieved. We want to add a temporal component and manage it the same way we manage other calibration data. This awaits the so-called “butler 2”.
- Move the classes out of
pipe_tasks, possibly intomeas_photometry. - Improve our color term correction model.