Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Labels:None
-
Story Points:2
-
Epic Link:
-
Team:Data Release Production
Description
In 10.0, processCcdDecam.py could process decam images to completion (whether the WCS was read correctly is a different question). Now it fails on makeWcs() (see traceback below), and I suspect this change in behavior is related to DM-2883 and DM-2967.
Repository with both data and code to reproduce:
http://www.astro.washington.edu/users/yusra/reproduce/reproduceMakeWcsErr.tar.gz
(apologies for the size)
The attachment is a document describing the WCS representation in the images from the community pipeline, courtesy of Francisco Forster.
Please advise. This ticket captures any changes made to afw.
D-108-179-166-118:decam yusra$ processCcdDecam.py newTestRepo/ --id visit=0232847 ccdnum=10 --config calibrate.doPhotoCal=False calibrate.doAstrometry=False calibrate.measurePsf.starSelector.name="secondMoment" doWriteCalibrateMatches=False --clobber-config
|
: Loading config overrride file '/Users/yusra/lsst_devel/LSST/repos/obs_decam_ya/config/processCcdDecam.py'
|
: Config override file does not exist: '/Users/yusra/lsst_devel/LSST/repos/obs_decam_ya/config/decam/processCcdDecam.py'
|
: input=/Users/yusra/decam/newTestRepo
|
: calib=None
|
: output=None
|
CameraMapper: Loading registry registry from /Users/yusra/decam/newTestRepo/registry.sqlite3
|
processCcdDecam: Processing {'visit': 232847, 'ccdnum': 10}
|
makeWcs WARNING: Stripping PVi_j keys from projection RA---TPV/DEC--TPV
|
processCcdDecam FATAL: Failed on dataId={'visit': 232847, 'ccdnum': 10}:
|
File "src/image/Wcs.cc", line 130, in void lsst::afw::image::Wcs::_initWcs()
|
Failed to setup wcs structure with wcsset. Status 5: Invalid parameter value {0}
|
lsst::pex::exceptions::RuntimeError: 'Failed to setup wcs structure with wcsset. Status 5: Invalid parameter value'
|
|
Traceback (most recent call last):
|
File "/Users/yusra/lsst_devel/LSST/DMS5/DarwinX86/pipe_base/10.1-3-g18c2ba7+49/python/lsst/pipe/base/cmdLineTask.py", line 320, in __call__
|
result = task.run(dataRef, **kwargs)
|
File "/Users/yusra/lsst_devel/LSST/DMS5/DarwinX86/pipe_base/10.1-3-g18c2ba7+49/python/lsst/pipe/base/timer.py", line 118, in wrapper
|
res = func(self, *args, **keyArgs)
|
File "/Users/yusra/lsst_devel/LSST/repos/obs_decam_ya/python/lsst/obs/decam/processCcdDecam.py", line 77, in run
|
mi = exp.getMaskedImage()
|
File "/Users/yusra/lsst_devel/LSST/DMS5/DarwinX86/daf_persistence/10.1-1-g6edbc00+28/python/lsst/daf/persistence/readProxy.py", line 41, in __getattribute__
|
subject = oga(self, '__subject__')
|
File "/Users/yusra/lsst_devel/LSST/DMS5/DarwinX86/daf_persistence/10.1-1-g6edbc00+28/python/lsst/daf/persistence/readProxy.py", line 136, in __subject__
|
set_cache(self, get_callback(self)())
|
File "/Users/yusra/lsst_devel/LSST/DMS5/DarwinX86/daf_persistence/10.1-1-g6edbc00+28/python/lsst/daf/persistence/butler.py", line 242, in <lambda>
|
innerCallback(), dataId)
|
File "/Users/yusra/lsst_devel/LSST/DMS5/DarwinX86/daf_persistence/10.1-1-g6edbc00+28/python/lsst/daf/persistence/butler.py", line 236, in <lambda>
|
location, dataId)
|
File "/Users/yusra/lsst_devel/LSST/repos/obs_decam_ya/python/lsst/obs/decam/decamMapper.py", line 118, in bypass_instcal
|
wcs = afwImage.makeWcs(md)
|
File "/Users/yusra/lsst_devel/LSST/DMS5/DarwinX86/afw/10.1-26-g9124caf+1/python/lsst/afw/image/imageLib.py", line 8706, in makeWcs
|
return _imageLib.makeWcs(*args)
|
RuntimeError:
|
File "src/image/Wcs.cc", line 130, in void lsst::afw::image::Wcs::_initWcs()
|
Failed to setup wcs structure with wcsset. Status 5: Invalid parameter value {0}
|
lsst::pex::exceptions::RuntimeError: 'Failed to setup wcs structure with wcsset. Status 5: Invalid parameter value'
|
Attachments
Issue Links
- blocks
-
DM-357 Include obs_decam into official LSST repositories
- Done
-
DM-3419 obs_decam unit test for reading data
- Done
-
DM-3462 Make obs_decam handle raw data
- Done
- relates to
-
DM-2883 wcslib is unable to read PTF headers with PV1_{1..16} cards
- Done
-
DM-2967 Fix to DM-2883 isn't quite right
- Done
-
DM-3351 Reproducing errors of the current obs_decam package
- Done