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

makeWcs() chokes on decam images in 10.1

    XMLWordPrintable

Details

    • Story
    • Status: Done
    • Resolution: Done
    • None
    • afw, obs_decam
    • None

    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

          Activity

            yusra Yusra AlSayyad created issue -
            yusra Yusra AlSayyad made changes -
            Field Original Value New Value
            Link This issue relates to DM-2883 [ DM-2883 ]
            yusra Yusra AlSayyad made changes -
            Link This issue relates to DM-2967 [ DM-2967 ]
            tjenness Tim Jenness made changes -
            Link This issue relates to DM-3351 [ DM-3351 ]
            tjenness Tim Jenness made changes -
            Link This issue blocks DM-3419 [ DM-3419 ]
            tjenness Tim Jenness made changes -
            Component/s obs_decam [ 12851 ]
            tjenness Tim Jenness made changes -
            Link This issue blocks DM-357 [ DM-357 ]
            rhl Robert Lupton made changes -
            Attachment signature.asc [ 27066 ]
            rhl Robert Lupton made changes -
            Assignee Robert Lupton [ rhl ]
            rhl Robert Lupton made changes -
            Reviewers Yusra AlSayyad [ yusra ]
            Status To Do [ 10001 ] In Review [ 10004 ]
            rhl Robert Lupton made changes -
            Status In Review [ 10004 ] In Progress [ 3 ]
            rhl Robert Lupton made changes -
            Status In Progress [ 3 ] In Review [ 10004 ]
            swinbank John Swinbank made changes -
            Epic Link DM-3586 [ 19683 ]
            swinbank John Swinbank made changes -
            Story Points 2
            Team Data Release Production [ 10301 ]
            hchiang2 Hsin-Fang Chiang made changes -
            Link This issue blocks DM-3462 [ DM-3462 ]
            rhl Robert Lupton made changes -
            Resolution Done [ 10000 ]
            Status In Review [ 10004 ] Done [ 10002 ]

            People

              rhl Robert Lupton
              yusra Yusra AlSayyad
              Yusra AlSayyad
              Colin Slater, David Nidever [X] (Inactive), Hsin-Fang Chiang, John Swinbank, Kian-Tat Lim, Robert Lupton, Russell Owen, Simon Krughoff (Inactive), Tim Jenness, Yusra AlSayyad
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Jenkins

                  No builds found.