Project: datamanagement
Issue DM-5797: Using 'CONSTANT' for background subtraction fails
Running processCcd (on a DECam file) with the following in the config file: {code} 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' {code} fails, and throws the following: {code} Traceback (most recent call last): File "/home/mfisherlevine/lsst/pipe_tasks/bin/processCcd.py", line 25, in 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 > lsst::afw::math::{anonymous}::recenter(const std::vector&, const std::vector&) 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&) const setting _gridcolumns {1} lsst::pex::exceptions::InvalidParameterError: 'You must provide at least 1 point {0}; setting _gridcolumns {1} {code}
Story points: 2