For filters without color term in hscpipe¶
Color term for NB391, NB395, NB430, and NB497 are not set in hscpipe 8.4 (they are set in the case you use hscpipe 8.4 in the Large-scale data analysis system (LSC) ). You can set these filters by using config file or editing some scripts in hscpipe.
Config files are generated under rerun/[rerun name]/config once hscpipe commands had been run. Copy and edit it to make your own config file. In case you want to reduce NB391, NB395, NB430, and NB497 with singleFrameDriver.py, add the following colorterms in your configfile following Color terms.
# newly added
config.processCcd.calibrate.photoCal.colorterms.data['ps1*'].data['N497']=lsst.pipe.tasks.colorterms.Colorterm()
# name of primary filter
config.processCcd.calibrate.photoCal.colorterms.data['ps1*'].data['N497'].primary='g'
# name of secondary filter
config.processCcd.calibrate.photoCal.colorterms.data['ps1*'].data['N497'].secondary='r'
# Constant parameter
config.processCcd.calibrate.photoCal.colorterms.data['ps1*'].data['N497'].c0=-0.044134
# First-order parameter
config.processCcd.calibrate.photoCal.colorterms.data['ps1*'].data['N497'].c1=-0.168663
# Second-order parameter
config.processCcd.calibrate.photoCal.colorterms.data['ps1*'].data['N497'].c2=0.052961
Then run SingleFrameDriver.py with option –configfile [config file name]. Please see also hscPipe command.
If you can edit hscpipe script, edit the follows based on Color terms.
$OBS_SUBARU_DIR/python/lsst/obs/hsc/hscFilters.py
$OBS_SUBARU_DIR/hsc/transmission/
$OBS_SUBARU_DIR/config/hsc/colorterms.py
$OBS_SUBARU_DIR/config/hsc/extinctionCoeffs.py
$OBS_SUBARU_DIR/config/hsc/mergeCoaddDetections.py
$OBS_SUBARU_DIR/config/hsc/mergeCoaddMeasurements.py
$OBS_SUBARU_DIR/config/hsc/fgcmCalibrateTract.py
$OBS_SUBARU_DIR/config/hsc/fgcmMakeLut.py
$OBS_SUBARU_DIR/config/hsc/fgcmBuildStars.py
$OBS_SUBARU_DIR/config/hsc/fgcmFitCycle.py
Note that $OBS_SUBARU_DIR is a link available once you activate hscpipe.
Please ask to helpdesk if there are unknown values.
We also provides a “patch file” to replace the hscPipe scripts with the rewritten ones. Please consider running “patch file” to increase NB filters following the instruction in Increase used filters .