Skip to content

Commit

Permalink
Set CLIPPED bit in CompareWarp coadd masks
Browse files Browse the repository at this point in the history
  • Loading branch information
yalsayyad committed Nov 15, 2017
1 parent 53cb5e1 commit 48db595
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions python/lsst/pipe/tasks/assembleCoadd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1672,6 +1672,14 @@ def assemble(self, skyInfo, tempExpRefList, imageScalerList, weightList, bgModel

retStruct = AssembleCoaddTask.assemble(self, skyInfo, tempExpRefList, imageScalerList, weightList,
bgModelList, maskList, mask=badPixelMask)

# Set the coadd CLIPPED mask from the footprints since currently pixels that are masked
# do not get propagated
mask = retStruct.coaddExposure.maskedImage.mask
for maskClip in maskList:
maskClip &= mask.getPlaneBitMask("CLIPPED")
mask |= maskClip

return retStruct

def findArtifacts(self, templateCoadd, tempExpRefList, imageScalerList):
Expand Down

0 comments on commit 48db595

Please sign in to comment.