From 4f18c85146bf9ef258a986e877e785cf175c1f8a Mon Sep 17 00:00:00 2001 From: fred3m Date: Wed, 13 Sep 2023 06:50:18 -0700 Subject: [PATCH 1/2] Update multiband measurement task for deblending with partial coverage Now that meas_extensions_scarlet will deblend footprints that only have partial coverage (eg. in one or more band there is missing data that prevents building a PSF), new columns were added to the catalog to mark sources that were not deblended in a given band. --- python/lsst/pipe/tasks/multiBand.py | 1 + tests/test_isPrimaryFlag.py | 1 + 2 files changed, 2 insertions(+) diff --git a/python/lsst/pipe/tasks/multiBand.py b/python/lsst/pipe/tasks/multiBand.py index 892170c56..88775c317 100644 --- a/python/lsst/pipe/tasks/multiBand.py +++ b/python/lsst/pipe/tasks/multiBand.py @@ -566,6 +566,7 @@ def runQuantum(self, butlerQC, inputRefs, outputRefs): catalog=sources, band=inputRefs.exposure.dataId["band"], psfModel=inputs['exposure'].getPsf(), + maskImage=inputs['exposure'].mask, redistributeImage=redistributeImage, removeScarletData=True, ) diff --git a/tests/test_isPrimaryFlag.py b/tests/test_isPrimaryFlag.py index 2473ceb3e..b4b643801 100755 --- a/tests/test_isPrimaryFlag.py +++ b/tests/test_isPrimaryFlag.py @@ -255,6 +255,7 @@ def testIsScarletPrimaryFlag(self): catalog=catalog, band="test", psfModel=coadds["test"].getPsf(), + maskImage=coadds["test"].mask, redistributeImage=None, ) # measure From 13392465190269668893c905f6033001044e0d5f Mon Sep 17 00:00:00 2001 From: fred3m Date: Fri, 22 Sep 2023 12:10:41 -0700 Subject: [PATCH 2/2] Add coverage columns to Object.yaml --- schemas/Object.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/schemas/Object.yaml b/schemas/Object.yaml index b7f4f4d20..a98ecf436 100644 --- a/schemas/Object.yaml +++ b/schemas/Object.yaml @@ -625,6 +625,10 @@ funcs: dataset: ref ebv: functor: Ebv + dataCoverage: + functor: Column + args: deblend_dataCoverage + dataset: meas # DM-22247: Add Star/Galaxy sep columns # - Morphological Star Galaxy Classifier (Names? float 0-1)] # - Morphological + Color (SED-based) Star Galaxy Classifier (Names? float 0-1)] @@ -641,6 +645,7 @@ refFlags: - merge_peak_sky - deblend_nChild - deblend_skipped + - deblend_incompleteData - slot_Shape_flag - slot_Shape_xx - slot_Shape_xy