From f1832f6b75e7a070e66f79e99fde83c076d0b4b1 Mon Sep 17 00:00:00 2001 From: Hsin-Fang Chiang Date: Wed, 14 Feb 2024 14:17:28 -0800 Subject: [PATCH] Move ComCamSim isr and calibrate config from drp_pipe to here --- config/comCamSim/calibrate.py | 33 +++++++++++++++++++++++++++++++++ config/comCamSim/filterMap.py | 23 +++++++++++++++++++++++ config/comCamSim/isr.py | 29 +++++++++++++++++++++++++++++ 3 files changed, 85 insertions(+) create mode 100644 config/comCamSim/calibrate.py create mode 100644 config/comCamSim/filterMap.py create mode 100644 config/comCamSim/isr.py diff --git a/config/comCamSim/calibrate.py b/config/comCamSim/calibrate.py new file mode 100644 index 000000000..7e5796685 --- /dev/null +++ b/config/comCamSim/calibrate.py @@ -0,0 +1,33 @@ +# This file is part of obs_lsst. +# +# Developed for the LSST Data Management System. +# This product includes software developed by the LSST Project +# (http://www.lsst.org). +# See the COPYRIGHT file at the top-level directory of this distribution +# for details of code ownership. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the LSST License Statement and +# the GNU General Public License along with this program. If not, +# see . + +import os.path + +configDir = os.path.dirname(__file__) + +config.connections.astromRefCat = "uw_stars_20240130" +config.connections.photoRefCat = "uw_stars_20240130" + +config.astromRefObjLoader.load(os.path.join(configDir, "filterMap.py")) +config.photoRefObjLoader.load(os.path.join(configDir, "filterMap.py")) +config.astromRefObjLoader.anyFilterMapsToThis = None +config.photoRefObjLoader.anyFilterMapsToThis = None diff --git a/config/comCamSim/filterMap.py b/config/comCamSim/filterMap.py new file mode 100644 index 000000000..d23668d92 --- /dev/null +++ b/config/comCamSim/filterMap.py @@ -0,0 +1,23 @@ +# This file is part of obs_lsst. +# +# Developed for the LSST Data Management System. +# This product includes software developed by the LSST Project +# (http://www.lsst.org). +# See the COPYRIGHT file at the top-level directory of this distribution +# for details of code ownership. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the LSST License Statement and +# the GNU General Public License along with this program. If not, +# see . + +config.filterMap = {band: "lsst_%s" % (band) for band in "gri"} diff --git a/config/comCamSim/isr.py b/config/comCamSim/isr.py new file mode 100644 index 000000000..a81bea468 --- /dev/null +++ b/config/comCamSim/isr.py @@ -0,0 +1,29 @@ +# This file is part of obs_lsst. +# +# Developed for the LSST Data Management System. +# This product includes software developed by the LSST Project +# (http://www.lsst.org). +# See the COPYRIGHT file at the top-level directory of this distribution +# for details of code ownership. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the LSST License Statement and +# the GNU General Public License along with this program. If not, +# see . +""" +comCamSim-specific overrides for IsrTask +""" +config.doDefect = False +# TODO: Evaluate doBrighterFatter after initial DRP +config.doBrighterFatter = False +config.doCrosstalk = False +config.doFringe = False