Skip to content

Commit

Permalink
Add flux columns to reprocessVisitImage schema init-output.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallJimbo committed Nov 27, 2024
1 parent db50336 commit d19b63d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/lsst/drp/tasks/reprocess_visit_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

import lsst.afw.image as afwImage
import lsst.afw.table as afwTable
import lsst.geom
import lsst.meas.algorithms
import lsst.meas.deblender
import lsst.meas.extensions.photometryKron
Expand Down Expand Up @@ -314,8 +315,11 @@ def __init__(self, sources_schema=None, **kwargs):
type="Flag",
doc="Unused; placeholder for SDM schemas.",
)

self.sources_schema = afwTable.SourceCatalog(sources_schema)
# The final catalog will have calibrated flux columns, which we add to
# the init-output schema by calibrating our zero-length catalog with an
# arbitrary dummy PhotoCalib.
dummy_photo_calib = afwImage.PhotoCalib(1.0, 0, bbox=lsst.geom.Box2I())
self.sources_schema = dummy_photo_calib.calibrateCatalog(afwTable.SourceCatalog(sources_schema))

def runQuantum(self, butlerQC, inputRefs, outputRefs):
inputs = butlerQC.get(inputRefs)
Expand Down

0 comments on commit d19b63d

Please sign in to comment.