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

Using 'CONSTANT' for background subtraction fails

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: meas_algorithms
    • Labels:
      None
    • Templates:
    • Story Points:
      2
    • Sprint:
      DRP X16-2
    • Team:
      Data Release Production

      Description

      Running processCcd (on a DECam file) with the following in the config file:

      config.charImage.repair.cosmicray.background.algorithm='AKIMA_SPLINE'
      config.charImage.background.algorithm='CONSTANT'
      config.charImage.detectAndMeasure.detection.tempLocalBackground.algorithm='CONSTANT'
      config.charImage.detectAndMeasure.detection.background.algorithm='CONSTANT'
      config.calibrate.detectAndMeasure.detection.tempLocalBackground.algorithm='CONSTANT'
      config.calibrate.detectAndMeasure.detection.background.algorithm='CONSTANT'
      

      fails, and throws the following:

      Traceback (most recent call last):
        File "/home/mfisherlevine/lsst/pipe_tasks/bin/processCcd.py", line 25, in <module>
          ProcessCcdTask.parseAndRun()
        File "/ssd/lsstsw/stack/Linux64/pipe_base/2016_01.0-6-g7751869+8/python/lsst/pipe/base/cmdLineTask.py", line 450, in parseAndRun
          resultList = taskRunner.run(parsedCmd)
        File "/ssd/lsstsw/stack/Linux64/pipe_base/2016_01.0-6-g7751869+8/python/lsst/pipe/base/cmdLineTask.py", line 199, in run
          resultList = mapFunc(self, targetList)
        File "/ssd/lsstsw/stack/Linux64/pipe_base/2016_01.0-6-g7751869+8/python/lsst/pipe/base/cmdLineTask.py", line 324, in __call__
          result = task.run(dataRef, **kwargs)
        File "/ssd/lsstsw/stack/Linux64/pipe_base/2016_01.0-6-g7751869+8/python/lsst/pipe/base/timer.py", line 118, in wrapper
          res = func(self, *args, **keyArgs)
        File "/home/mfisherlevine/lsst/pipe_tasks/python/lsst/pipe/tasks/processCcd.py", line 170, in run
          doUnpersist = False,
        File "/ssd/lsstsw/stack/Linux64/pipe_base/2016_01.0-6-g7751869+8/python/lsst/pipe/base/timer.py", line 118, in wrapper
          res = func(self, *args, **keyArgs)
        File "/home/mfisherlevine/lsst/pipe_tasks/python/lsst/pipe/tasks/characterizeImage.py", line 298, in run
          background = background,
        File "/ssd/lsstsw/stack/Linux64/pipe_base/2016_01.0-6-g7751869+8/python/lsst/pipe/base/timer.py", line 118, in wrapper
          res = func(self, *args, **keyArgs)
        File "/home/mfisherlevine/lsst/pipe_tasks/python/lsst/pipe/tasks/characterizeImage.py", line 356, in characterize
          image -= estBg.getImageF()
        File "/home/mfisherlevine/lsst/afw/python/lsst/afw/math/mathLib.py", line 5788, in getImageF
          return _mathLib.Background_getImageF(self, *args)
      lsst.pex.exceptions.wrappers.InvalidParameterError: 
        File "src/math/Interpolate.cc", line 61, in std::pair<std::vector<double>, std::vector<double> > lsst::afw::math::{anonymous}::recenter(const std::vector<double>&, const std::vector<double>&)
          You must provide at least 1 point {0}
        File "src/math/BackgroundMI.cc", line 196, in void lsst::afw::math::BackgroundMI::_setGridColumns(lsst::afw::math::Interpolate::Style, lsst::afw::math::UndersampleStyle, int, const std::vector<int>&) const
          setting _gridcolumns {1}
      lsst::pex::exceptions::InvalidParameterError: 'You must provide at least 1 point {0}; setting _gridcolumns {1}
      

        Attachments

          Container Issues

            Issue Links

              Activity

                People

                • Assignee:
                  swinbank John Swinbank
                  Reporter:
                  mfisherlevine Merlin Fisher-Levine
                  Reviewers:
                  Paul Price
                  Watchers:
                  John Swinbank, Lauren MacArthur, Merlin Fisher-Levine, Paul Price
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Summary Panel