Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-13504

Enable running coadds on arbitrary list of tempExps

    XMLWordPrintable

    Details

    • Story Points:
      1
    • 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

            Activity

            yusra Yusra AlSayyad created issue -
            yusra Yusra AlSayyad made changes -
            Field Original Value New Value
            Epic Link DM-12729 [ 36328 ]
            yusra Yusra AlSayyad made changes -
            Sprint DRP S18-3 [ 687 ] DRP S18-3, DRP S18-4 [ 687, 696 ]
            yusra Yusra AlSayyad made changes -
            Sprint DRP S18-3, DRP S18-4 [ 687, 696 ] DRP S18-3, DRP S18-4, DRP S18-5 [ 687, 696, 707 ]
            yusra Yusra AlSayyad made changes -
            Sprint DRP S18-3, DRP S18-4, DRP S18-5 [ 687, 696, 707 ] DRP S18-3, DRP S18-4, DRP S18-5, DRP S18-6 [ 687, 696, 707, 727 ]
            yusra Yusra AlSayyad made changes -
            Risk Score 0
            yusra Yusra AlSayyad made changes -
            Sprint DRP S18-3, DRP S18-4, DRP S18-5, DRP S18-6 [ 687, 696, 707, 727 ] DRP S18-3, DRP S18-4, DRP S18-5, DRP S18-6, DRP F18-1 [ 687, 696, 707, 727, 742 ]
            yusra Yusra AlSayyad made changes -
            Epic Link DM-12729 [ 36328 ] DM-14405 [ 79812 ]
            yusra Yusra AlSayyad made changes -
            Sprint DRP S18-3, DRP S18-4, DRP S18-5, DRP S18-6, DRP F18-1 [ 687, 696, 707, 727, 742 ] DRP S18-3, DRP S18-4, DRP S18-5, DRP S18-6, DRP F18-1, DRP F18-2 [ 687, 696, 707, 727, 742, 756 ]
            yusra Yusra AlSayyad made changes -
            Sprint DRP S18-3, DRP S18-4, DRP S18-5, DRP S18-6, DRP F18-1, DRP F18-2 [ 687, 696, 707, 727, 742, 756 ] DRP S18-3, DRP S18-4, DRP S18-5, DRP S18-6, DRP F18-1, DRP F18-2, DRP F18-3 [ 687, 696, 707, 727, 742, 756, 768 ]
            yusra Yusra AlSayyad made changes -
            Sprint DRP S18-3, DRP S18-4, DRP S18-5, DRP S18-6, DRP F18-1, DRP F18-2, DRP F18-3 [ 687, 696, 707, 727, 742, 756, 768 ] DRP S18-3, DRP S18-4, DRP S18-5, DRP S18-6, DRP F18-1, DRP F18-2, DRP F18-3, DRP F18-4 [ 687, 696, 707, 727, 742, 756, 768, 774 ]
            yusra Yusra AlSayyad made changes -
            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 [ 687, 696, 707, 727, 742, 756, 768, 774 ] 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 [ 687, 696, 707, 727, 742, 756, 768, 774, 790 ]
            yusra Yusra AlSayyad made changes -
            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 [ 687, 696, 707, 727, 742, 756, 768, 774, 790 ] 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 [ 687, 696, 707, 727, 742, 756, 768, 774, 790, 811 ]
            yusra Yusra AlSayyad made changes -
            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 [ 687, 696, 707, 727, 742, 756, 768, 774, 790, 811 ] 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 [ 687, 696, 707, 727, 742, 756, 768, 774, 790, 811, 822 ]
            yusra Yusra AlSayyad made changes -
            Epic Link DM-14405 [ 79812 ] DM-16678 [ 235238 ]
            yusra Yusra AlSayyad made changes -
            Link This issue is duplicated by DM-17045 [ DM-17045 ]
            yusra Yusra AlSayyad made changes -
            Resolution Done [ 10000 ]
            Status To Do [ 10001 ] Won't Fix [ 10405 ]

              People

              Assignee:
              yusra Yusra AlSayyad
              Reporter:
              yusra Yusra AlSayyad
              Watchers:
              Ian Sullivan, Yusra AlSayyad
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.