Details
-
Type:
Story
-
Status: Won't Fix
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: pipe_tasks
-
Labels:
-
Story Points:1
-
Epic Link:
-
Sprint:DRP S18-3, DRP S18-4, DRP S18-5, DRP S18-6, DRP F18-1, DRP F18-2, DRP F18-3, DRP F18-4, DRP F18-5, DRP F18-6, DRP S19-1
-
Team:Data Release Production
Description
While debugging coaddition, I have an alternate API for AssembleCoadd.run() that I use in my local copy of pipe_tasks so that I can quickly coadd any list of tempExp DataRefs in a notebook without going through the long "selectExposures" task which converts a list of calexp data refs to a list of temp exp dataRefs. Would this be useful to anyone else?
@pipeBase.timeMethod
|
- def run(self, dataRef, selectDataList=[]):
|
+ def run(self, dataRef, selectDataList=[], tempExpRefList=None):
|
"""!
|
\brief Assemble a coadd from a set of Warps
|
|
@@ -327,13 +327,14 @@ discussed in \ref pipeTasks_multiBand (but note that normally, one would use the
|
- nImage: exposure count image
|
"""
|
skyInfo = self.getSkyInfo(dataRef)
|
- calExpRefList = self.selectExposures(dataRef, skyInfo, selectDataList=selectDataList)
|
- if len(calExpRefList) == 0:
|
- self.log.warn("No exposures to coadd")
|
- return
|
- self.log.info("Coadding %d exposures", len(calExpRefList))
|
-
|
- tempExpRefList = self.getTempExpRefList(dataRef, calExpRefList)
|
+ if tempExpRefList is None:
|
+ calExpRefList = self.selectExposures(dataRef, skyInfo, selectDataList=selectDataList)
|
+ if len(calExpRefList) == 0:
|
+ self.log.warn("No exposures to coadd")
|
+ return
|
+ self.log.info("Coadding %d exposures", len(calExpRefList))
|
+
|
+ tempExpRefList = self.getTempExpRefList(dataRef, calExpRefList)
|
Attachments
Issue Links
- is duplicated by
-
DM-17045 Convert AssembleCoaddTasks to PipelineTasks with Shims
- Done