Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-37497: Updates to LATISS's DRP.yaml pipeline through coadd processing #435

Merged
merged 1 commit into from
Jan 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions config/latiss/characterizeImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"base_PixelFlags_flag_bad",
"base_PixelFlags_flag_interpolated"]

# We are starved for PSF stars, so don't reserve any at this stage.
config.measurePsf.reserve.fraction = 0.0

# Use these to run the pca psf estimator
#config.measurePsf.psfDeterminer = 'pca'
#config.measurePsf.psfDeterminer['pca'].spatialOrder = 0
Expand Down
2 changes: 2 additions & 0 deletions config/latiss/finalize_characterization.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Reduce piff spatialOrder to 1, this helps ensure success with low numbers of psf candidates.
config.psf_determiner['piff'].spatialOrder = 1
32 changes: 32 additions & 0 deletions config/latiss/makeWarp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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 <http://www.lsstcorp.org/LegalNotices/>.

"""LATISS-specific overrides for MakeWarpTask"""

# These thresholds must be relaxed for AuxTel/LATISS compared to the task
# defaults (which were conditioned on HSC data). These have been chosen
# based on the data observed in the 2022-11B (PREOPS-1986) and 2022-12A
# (PREOPS-3135) runs (see figures on DM-37497) and are probably going to
# evolve as the commissioning of AuxTel procedes.
config.select.maxEllipResidual = 0.1
config.select.maxScaledSizeScatter = 0.015
config.select.maxPsfTraceRadiusDelta = 4.8
35 changes: 35 additions & 0 deletions config/latiss/measureCoaddSources.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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 <http://www.lsstcorp.org/LegalNotices/>.

"""LATISS-specific overrides for MeasureMergedCoaddSourcesTask"""

import os.path

config.measurement.load(os.path.join(os.path.dirname(__file__), "..", "apertures.py"))
config.measurement.load(os.path.join(os.path.dirname(__file__), "..", "kron.py"))
config.measurement.load(os.path.join(os.path.dirname(__file__), "..", "convolvedFluxes.py"))
config.measurement.load(os.path.join(os.path.dirname(__file__), "..", "hsm.py"))
config.load(os.path.join(os.path.dirname(__file__), "..", "cmodel.py"))

config.connections.refCat = "atlas_refcat2_20220201"

config.doWriteMatchesDenormalized = True