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

Unable to construct CoaddBoundedFieldElement without a validPolygon

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Templates:
    • Story Points:
      1
    • Sprint:
      DRP F17-1
    • Team:
      Data Release Production

      Description

      On Slack, Nicolas Chotard reports the following error:

      makeCoaddTempExp INFO: directWarp has 3644518 good pixels (20.7%)
      Traceback (most recent call last):
        File "/sps/lsst/software/lsst_distrib/w_2017_24/stack/miniconda2-4.2.12-7c8e67/Linux64/jointcal/master-gc935ebf72c+3/bin/jointcalCoadd.py", line 5, in 
          JointcalCoaddTask.parseAndRun()
        File "/sps/lsst/software/lsst_distrib/w_2017_24/stack/miniconda2-4.2.12-7c8e67/Linux64/pipe_base/13.0-9-g1c7d9c5+3/python/lsst/pipe/base/cmdLineTask.py", line 514, in parseAndRun
          resultList = taskRunner.run(parsedCmd)
        File "/sps/lsst/software/lsst_distrib/w_2017_24/stack/miniconda2-4.2.12-7c8e67/Linux64/pipe_base/13.0-9-g1c7d9c5+3/python/lsst/pipe/base/cmdLineTask.py", line 223, in run
          resultList = list(mapFunc(self, targetList))
        File "/sps/lsst/software/lsst_distrib/w_2017_24/stack/miniconda2-4.2.12-7c8e67/Linux64/pipe_base/13.0-9-g1c7d9c5+3/python/lsst/pipe/base/cmdLineTask.py", line 373, in __call__
          result = task.run(dataRef, **kwargs)
        File "/sps/lsst/software/lsst_distrib/w_2017_24/stack/miniconda2-4.2.12-7c8e67/Linux64/pipe_base/13.0-9-g1c7d9c5+3/python/lsst/pipe/base/timer.py", line 121, in wrapper
          res = func(self, *args, **keyArgs)
        File "/sps/lsst/software/lsst_distrib/w_2017_24/stack/miniconda2-4.2.12-7c8e67/Linux64/pipe_tasks/13.0-37-g58c8d4e+3/python/lsst/pipe/tasks/makeCoaddTempExp.py", line 282, in run
          exps = self.createTempExp(calexpRefList, skyInfo, visitId).exposures
        File "/sps/lsst/software/lsst_distrib/w_2017_24/stack/miniconda2-4.2.12-7c8e67/Linux64/pipe_tasks/13.0-37-g58c8d4e+3/python/lsst/pipe/tasks/makeCoaddTempExp.py", line 390, in createTempExp
          inputRecorder[warpType].finish(coaddTempExps[warpType], totGoodPix[warpType])
        File "/sps/lsst/software/lsst_distrib/w_2017_24/stack/miniconda2-4.2.12-7c8e67/Linux64/pipe_tasks/13.0-37-g58c8d4e+3/python/lsst/pipe/tasks/coaddInputRecorder.py", line 134, in finish
          apCorrMap = makeCoaddApCorrMap(self.coaddInputs.ccds, coaddTempExp.getBBox(afwImage.PARENT), wcs)
        File "/sps/lsst/software/lsst_distrib/w_2017_24/stack/miniconda2-4.2.12-7c8e67/Linux64/meas_algorithms/13.0-13-gf5c99ad+3/python/lsst/meas/algorithms/makeCoaddApCorrMap.py", line 52, in makeCoaddApCorrMap
          everything[name].append(CoaddBoundedFieldElement(bf, wcs, validPolygon, weight))
      TypeError: __init__(): incompatible constructor arguments. The following argument types are supported:
          1. lsst.meas.algorithms.coaddBoundedField.CoaddBoundedFieldElement(field: lsst.afw.math._boundedField.BoundedField, wcs: lsst.afw.image.wcs.wcs.Wcs, validPolygon: lsst::afw::geom::polygon::Polygon, weight: float=1.0)
       
      Invoked with: BoundedField(ChebyshevBoundedField ((3,3,) coefficients in y,x) on Box2I(Point2I(0, 0), Extent2I(2048, 4612))), , None, 1.0
      

      This is because we don't define validPolygon​s for CFHT, and that makes the CoaddBoundedFieldElement constructor unhappy.

        Attachments

          Container Issues

            Activity

              People

              • Assignee:
                swinbank John Swinbank
                Reporter:
                swinbank John Swinbank
                Reviewers:
                Bob Armstrong
                Watchers:
                Bob Armstrong, John Swinbank
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel