Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: obs_lsst
-
Labels:None
-
Story Points:1
-
Epic Link:
-
Team:Data Release Production
-
Urgent?:No
Description
While doing integration tests at the summit with the Main Telescope components and ComCam we noticed that the visitInfo metadata returns a series of nan values for fields that are apparently in the header.
To reproduce the error you can do:
import lsst.daf.butler as dafButler
|
|
butler = dafButler.Butler("/repo/LSSTComCam/")
|
|
data_id = {'instrument': 'LSSTComCam', 'detector': 0, 'exposure': 2021102100008}
|
|
raw = butler.get('raw', dataId=data_id, collections=["LSSTComCam/raw/all"])
|
print(raw.getMetadata())
|
Then
metadata = butler.get('raw.visitInfo', dataId=data_id, collections=["LSSTComCam/raw/all"])
|
print(metadata)
|
Which yields:
VisitInfo(exposureId=2021102100008000, exposureTime=15, darkTime=15.5254, date=2021-10-21T15:44:59.077083175, UT1=nan, ERA=4.64471 rad, boresightRaDec=(nan, +nan), boresightAzAlt=(nan, +nan), boresightAirmass=nan, boresightRotAngle=0 rad, rotType=0, observatory=nanW, nanN nan, weather=Weather(nan, nan, nan), instrumentLabel='LSSTComCam', id=2021102100008)
|
Output of astrometadata
$ astrometadata -p lsst.obs.lsst.translators translate /data/lsstdata/base/comcam/oods/gen3butler/raw/2021-10-21/CC_O_20211021_000008-R22S00.fits
Analyzing /data/lsstdata/base/comcam/oods/gen3butler/raw/2021-10-21/CC_O_20211021_000008-R22S00.fits...
instrument: LSSTComCam
telescope: Simonyi Survey Telescope
datetime_begin: 2021-10-21T15:44:51.361
altaz_begin: None
boresight_airmass: None
boresight_rotation_angle: 0.0 deg
boresight_rotation_coord: unknown
dark_time: 15.5253660678864 s
datetime_end: 2021-10-21T15:45:06.793
detector_exposure_id: 2021102100008000
detector_group: R22
detector_name: S00
detector_num: 0
detector_serial: ITL-3800C-229
detector_unique_name: R22_S00
exposure_group: 2021-10-21T15:44:51.123
exposure_id: 2021102100008
exposure_time: 15.0 s
location: None
object: UNKNOWN
observation_counter: 8
observation_id: CC_O_20211021_000008
observation_reason: object
observation_type: science
observing_day: 20211021
physical_filter: i_06
pressure: None
relative_humidity: None
science_program: unknown
temperature: None
tracking_radec: None
visit_id: 2147606911230000