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

OutOfRangeError in mergeCoaddDetections

    Details

    • Type: Story
    • Status: Invalid
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: pipe_tasks
    • Labels:
      None
    • Team:
      External

      Description

      pprice@lsst-dev01:~ $ mergeCoaddDetections.py /scratch/jcarlin/madcash/DATA/rerun/20180305/IC1613 --calib /datasets/hsc/calib/20180117/ --output /scratch/pprice/test/ --id tract=0 filter=HSC-G^HSC-I^HSC-I2 patch=18,11
      [...]
      mergeCoaddDetections INFO: Read 1695 sources for filter HSC-G: DataId(initialdata={'tract': 0, 'filter': 'HSC-G', 'patch': '18,11'}, tag=set())
      mergeCoaddDetections FATAL: Failed on dataIds=[DataId(initialdata={'tract': 0, 'filter': 'HSC-G', 'patch': '18,11'}, tag=set())]: OutOfRangeError: 
        File "include/lsst/afw/geom/SpanSetFunctorGetters.h", line 176, in void lsst::afw::geom::details::ImageNdGetter<T, N, C>::checkExtents(const lsst::afw::geom::Box2I&, int) const [with T = int; int N = 2; int C = 1]
          SpanSet bounding box lands outside array {0}
      lsst::pex::exceptions::OutOfRangeError: 'SpanSet bounding box lands outside array'
       
      Traceback (most recent call last):
        File "/software/lsstsw/stack3_20171023/stack/miniconda3-4.3.21-10a4fa6/Linux64/pipe_base/14.0-7-gc1eb65a/python/lsst/pipe/base/cmdLineTask.py", line 413, in __call__
          result = task.run(dataRef, **kwargs)
        File "/software/lsstsw/stack3_20171023/stack/miniconda3-4.3.21-10a4fa6/Linux64/pipe_tasks/14.0-56-gcf273cdb+1/python/lsst/pipe/tasks/multiBand.py", line 476, in run
          mergedCatalog = self.mergeCatalogs(catalogs, patchRefList[0])
        File "/software/lsstsw/stack3_20171023/stack/miniconda3-4.3.21-10a4fa6/Linux64/pipe_tasks/14.0-56-gcf273cdb+1/python/lsst/pipe/tasks/multiBand.py", line 738, in mergeCatalogs
          skySourceFootprints = self.getSkySourceFootprints(mergedList, skyInfo, skySeed)
        File "/software/lsstsw/stack3_20171023/stack/miniconda3-4.3.21-10a4fa6/Linux64/pipe_tasks/14.0-56-gcf273cdb+1/python/lsst/pipe/tasks/multiBand.py", line 804, in getSkySourceFootprints
          s.getFootprint().spans.setMask(mask, detected)
      lsst.pex.exceptions.wrappers.OutOfRangeError: 
        File "include/lsst/afw/geom/SpanSetFunctorGetters.h", line 176, in void lsst::afw::geom::details::ImageNdGetter<T, N, C>::checkExtents(const lsst::afw::geom::Box2I&, int) const [with T = int; int N = 2; int C = 1]
          SpanSet bounding box lands outside array {0}
      lsst::pex::exceptions::OutOfRangeError: 'SpanSet bounding box lands outside array'
      

        Attachments

          Activity

          Hide
          price Paul Price added a comment -

          Somehow, we have a source that doesn't lie on the image at all:

          (Pdb) print(s.getFootprint().spans.getBBox())
          (minimum=(76072, 43951), maximum=(76096, 43976))
          (Pdb) mask.getBBox()
          Box2I(minimum=Point2I(71900, 43900), dimensions=Extent2I(4100, 4200))
          (Pdb) mask.getBBox().getMax()
          Point2I(75999, 48099)
          

          Show
          price Paul Price added a comment - Somehow, we have a source that doesn't lie on the image at all: (Pdb) print(s.getFootprint().spans.getBBox()) (minimum=(76072, 43951), maximum=(76096, 43976)) (Pdb) mask.getBBox() Box2I(minimum=Point2I(71900, 43900), dimensions=Extent2I(4100, 4200)) (Pdb) mask.getBBox().getMax() Point2I(75999, 48099)
          Hide
          price Paul Price added a comment -

          Looks like this was user error, from having run makeDiscreteSkyMap.py multiple times.

          Show
          price Paul Price added a comment - Looks like this was user error, from having run makeDiscreteSkyMap.py multiple times.

            People

            • Assignee:
              price Paul Price
              Reporter:
              price Paul Price
              Watchers:
              Jeffrey Carlin, Paul Price
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel