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

coadd cannot be loaded directly as afw.image.ExposureF

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: afw

      Description

      Loading a deepCoadd as an afw Exposure gives the following error:

      >>> import lsst.afw.image as afwImage
      >>> coadd = afwImage.ExposureF("validation_data_hsc/DATA/rerun/20160805/deepCoadd/HSC-Y/0/7,7.fits")
      31424 [0x7fff74d45000] DEBUG afw.image.Mask null - Number of mask planes: 16
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "/opt/sw/lsstsw/stack/DarwinX86/afw/12.1-4-gaba3f16/python/lsst/afw/image/imageLib.py", line 11623, in __init__
          this = _imageLib.new_ExposureF(*args)
      lsst.pex.exceptions.wrappers.LogicError: 
        File "include/lsst/afw/table/BaseRecord.h", line 95, in const typename Field<T>::Element *lsst::afw::table::BaseRecord::getElement(const Key<T> &) const [T = int]
          Key is not valid (if this is a SourceRecord, make sure slot aliases have been setup). {0}
        File "src/table/io/InputArchive.cc", line 105, in std::shared_ptr<Persistable> lsst::afw::table::io::InputArchive::Impl::get(int, const lsst::afw::table::io::InputArchive &)
          loading object with id=132, name='CoaddPsf' {1}
      lsst::pex::exceptions::LogicError: 'Key is not valid (if this is a SourceRecord, make sure slot aliases have been setup). {0}; loading object with id=132, name='CoaddPsf' {1}'
      

      This used to work, or at least it worked with a stack from Sep 8.

        Attachments

          Container Issues

            Issue Links

              Activity

                People

                • Assignee:
                  rowen Russell Owen
                  Reporter:
                  hchiang2 Hsin-Fang Chiang
                  Reviewers:
                  Jim Bosch
                  Watchers:
                  Hsin-Fang Chiang, Jim Bosch, John Swinbank, Meredith Rawls, Paul Price, Russell Owen, Simon Krughoff
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Summary Panel