From 8c69a28444cc4d067debcfa3e05b2138bfbd6cf8 Mon Sep 17 00:00:00 2001 From: John Parejko Date: Wed, 10 Jan 2024 15:27:52 -0800 Subject: [PATCH] Use 12 pixel aperture for psfex See DM-40843 about propagating this up to meas_extensions_psfex. --- python/lsst/pipe/tasks/calibrateImage.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/python/lsst/pipe/tasks/calibrateImage.py b/python/lsst/pipe/tasks/calibrateImage.py index c147592cc..86a7b4538 100644 --- a/python/lsst/pipe/tasks/calibrateImage.py +++ b/python/lsst/pipe/tasks/calibrateImage.py @@ -278,11 +278,10 @@ def setDefaults(self): ] self.psf_source_measurement.slots.shape = "ext_shapeHSM_HsmSourceMoments" # Only measure apertures we need for PSF measurement. - # TODO DM-40064: psfex has a hard-coded value of 9 in a psfex-config - # file: make that configurable and/or change it to 12 to be consistent - # with our other uses? - # https://github.com/lsst/meas_extensions_psfex/blob/main/config/default-lsst.psfex#L14 - self.psf_source_measurement.plugins["base_CircularApertureFlux"].radii = [9.0, 12.0] + self.psf_source_measurement.plugins["base_CircularApertureFlux"].radii = [12.0] + # TODO DM-40843: Remove this line once this is the psfex default. + self.psf_measure_psf.psfDeterminer["psfex"].photometricFluxField = \ + "base_CircularApertureFlux_12_0_instFlux" # No extendeness information available: we need the aperture # corrections to determine that.