Skip to content

Commit

Permalink
Add streak mask propagation to DRP tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
mrawls committed Oct 25, 2023
1 parent dee613c commit 24d3ab6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/lsst/pipe/tasks/finalizeCharacterization.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,11 @@ def setDefaults(self):
self.measurement.slots.shape = 'ext_shapeHSM_HsmSourceMoments'
self.measurement.slots.psfShape = 'ext_shapeHSM_HsmPsfMoments'
self.measurement.plugins['ext_shapeHSM_HsmShapeRegauss'].deblendNChild = ""

# Keep track of which footprints contain streaks
self.measurement.plugins['base_PixelFlags'].masksFpAnywhere = ['STREAK']
self.measurement.plugins['base_PixelFlags'].masksFpCenter = ['STREAK']

# Turn off slot setting for measurement for centroid and shape
# (for which we use the input src catalog measurements)
self.measurement.slots.centroid = None
Expand Down
3 changes: 3 additions & 0 deletions python/lsst/pipe/tasks/multiBand.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,9 @@ def setDefaults(self):
'INEXACT_PSF']
self.measurement.plugins['base_PixelFlags'].masksFpCenter = ['CLIPPED', 'SENSOR_EDGE',
'INEXACT_PSF']
# Keep track of which footprints contain streaks
self.measurement.plugins['base_PixelFlags'].masksFpAnywhere = ['STREAK']
self.measurement.plugins['base_PixelFlags'].masksFpCenter = ['STREAK']


class MeasureMergedCoaddSourcesTask(PipelineTask):
Expand Down

0 comments on commit 24d3ab6

Please sign in to comment.