From 084f2efa193ffbad35fc8561a8ba74d39ad752ec 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 8ce64fa2a..427922e05 100644 --- a/python/lsst/pipe/tasks/multiBand.py +++ b/python/lsst/pipe/tasks/multiBand.py @@ -565,6 +565,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 3250fcc15068cb3eb9729803f222571bf3998490 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 7e7ee6c29..a83a7f282 100644 --- a/schemas/Object.yaml +++ b/schemas/Object.yaml @@ -603,6 +603,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)] @@ -619,6 +623,7 @@ refFlags: - merge_peak_sky - deblend_nChild - deblend_skipped + - deblend_incompleteData - slot_Shape_flag - slot_Shape_xx - slot_Shape_xy