Hi,
When I try to get the date for an exposure with
import lsst.daf.persistence
butler = lsst.daf.persistence.Butler('./data/')
exp = butler.get('raw', dataId={'filter': 'VISTA-Ks', 'visit': 658653, 'dateObs':'2012-11-23', 'hdu':1})
from lsst.daf.base import DateTime
exp.getInfo().getVisitInfo().getDate().get(system=DateTime.MJD,scale=DateTime.TAI)
It throws an error:
File "include/lsst/daf/base/DateTime.h", line 231, in void lsst::daf::base::DateTime::_assertValid() const
DateTime not valid {0}
lsst::pex::exceptions::RuntimeError: 'DateTime not valid'
Is this a problem with the format I am using for dateObs or dateTai during ingestion? I have experimented with various different formats and can’t remove the error. Looking at the cpp code in DateTime.h it may be because I am using ‘values that overlap DateSystem’ but I am not sure how to fix that.
Any help would be very welcome as it prevents me running processCcd with calibration presumably because it needs the date to correct for proper motions in the reference catalogue.
Many thanks,
Raphael.