Coverage for python/lsst/obs/lsst/translators/lsstCam.py : 61%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# This file is currently part of obs_lsst but is written to allow it # to be migrated to the astro_metadata_translator package at a later date. # # This product includes software developed by the LSST Project # (http://www.lsst.org). # See the LICENSE file in this directory for details of code ownership. # # Use of this source code is governed by a 3-clause BSD-style # license that can be found in the LICENSE file.
# from astro_metadata_translator import cache_translation
"""Pseudo method to determine whether this is a lab or non-science header.
Raises ------ KeyError If this is a science observation and on the mountain. """ if is_non_science(self): return if not self._is_on_mountain(): return raise KeyError("Required key is missing and this is a mountain science observation")
"""Metadata translation for the main LSST Camera."""
"""Name of this translation class"""
"""Supports the lsstCam instrument."""
"telescope": "LSST", # Migrate these to full translations once test data appears that # includes them "boresight_rotation_coord": "unknown", "boresight_rotation_angle": None, "boresight_airmass": None, "tracking_radec": None, "altaz_begin": None, "object": "UNKNOWN", "relative_humidity": None, "temperature": None, "pressure": None, "science_program": "unknown", }
"detector_group": "RAFTBAY", "detector_name": "CCDSLOT", "observation_id": "OBSID", "physical_filter": ("FILTER", dict(default="NONE")), "exposure_time": ("EXPTIME", dict(unit=u.s)), "detector_serial": "LSST_NUM", }
# Use Imsim raft definitions until a true lsstCam definition exists |