Details
-
Type:
Bug
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: afw, meas_base, meas_extensions_shapeHSM, pipe_drivers, pipe_tasks
-
Labels:None
-
Story Points:2
-
Epic Link:
-
Sprint:DRP S18-2
-
Team:Data Release Production
Description
DM-9953 created the SENSOR_EDGE mask to mark coadd pixels that were on or near the boundary of an input CCD (and hence should have INEXACT_PSF set as well). It also started the propagation of those EDGE regions to the coadd.
Propagating the EDGE regions to the coadd caused problems, however, because many of them were affected by otherwise-unmasked bad pixels (leaks from amps or somesuch), so that was disabled on DM-12931. Contrary to comments on that ticket, this seems to have broken the propagation of SENSOR_EDGE, or perhaps something more recent broke it.
We should also consider whether to split the current CLIPPED flag into both CLIPPED and REJECTED, with the latter being used for pixels rejected due to mask values from the calexps rather than an explicit smart-clip algorithm (e.g. SafeClip or CompareWarps).
Attachments
Issue Links
- relates to
-
DM-13256 Reprocess RC with w_2018_04
- Done
The error in coaddDriver is my fault from not adapting it to the new API following
DM-12995. I've fixed this on a ticket branch:price@pap-laptop:~/LSST/pipe_drivers (tickets/DM-13396=) $ git sub-patch
commit f99c95d48896431c128506e3890c3ac9b1ca84f3 (HEAD -> tickets/DM-13396, origin/tickets/DM-13396)
Author: Paul Price <price@astro.princeton.edu>
Date: Tue Jan 30 09:13:13 2018 -0500
coaddDriver: adapt to API change in detection
DetectCoaddSourcesTask.runDetection now requires an exposure ID as a
RNG seed.
diff --git a/python/lsst/pipe/drivers/coaddDriver.py b/python/lsst/pipe/drivers/coaddDriver.py
index b9c8d4d..c7d8bd0 100644
--- a/python/lsst/pipe/drivers/coaddDriver.py
+++ b/python/lsst/pipe/drivers/coaddDriver.py
@@ -310,9 +310,10 @@ class CoaddDriverTask(BatchPoolTask):
with self.logOperation("detection on {}".format(patchRef.dataId),
catch=True):
idFactory = self.detectCoaddSources.makeIdFactory(patchRef)
+ expId = int(patchRef.get(self.config.coaddName + "CoaddId"))
# This includes background subtraction, so do it before writing
# the coadd
- detResults = self.detectCoaddSources.runDetection(coadd, idFactory)
+ detResults = self.detectCoaddSources.runDetection(coadd, idFactory, expId=expId)
self.detectCoaddSources.write(coadd, detResults, patchRef)
else:
patchRef.put(coadd, self.assembleCoadd.config.coaddName+"Coadd")