Skip to content

Commit

Permalink
Add rotator angle definition for megaprime
Browse files Browse the repository at this point in the history
  • Loading branch information
parejkoj committed Jun 24, 2019
1 parent 2dda32d commit 19a9e9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions python/astro_metadata_translator/translators/megaprime.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ class MegaPrimeTranslator(FitsTranslator):
default_search_path = os.path.join(CORRECTIONS_DIR, "CFHT")
"""Default search path to use to locate header correction files."""

_const_map = {"boresight_rotation_angle": Angle(float("nan")*u.deg),
"boresight_rotation_coord": "unknown",
# CFHT Megacam has no rotator, and the instrument angle on sky is set to
# +Y=N, +X=W which we define as a 0 degree rotation.
_const_map = {"boresight_rotation_angle": Angle(0*u.deg),
"boresight_rotation_coord": "sky",
"detector_group": None}

_trivial_map = {"physical_filter": "FILTER",
Expand Down
6 changes: 4 additions & 2 deletions tests/test_cfht.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ def test_megaprime_translator(self):
test_data = (("fitsheader-megaprime.yaml",
dict(telescope="CFHT 3.6m",
instrument="MegaPrime",
boresight_rotation_coord="unknown",
boresight_rotation_coord="sky",
boresight_rotation_angle=0*u.degree,
dark_time=615.0*u.s,
detector_exposure_id=37398350,
detector_name="ccd02",
Expand All @@ -48,7 +49,8 @@ def test_megaprime_translator(self):
("fitsheader-megaprime-calexp-849375-14.yaml",
dict(telescope="CFHT 3.6m",
instrument="MegaPrime",
boresight_rotation_coord="unknown",
boresight_rotation_coord="sky",
boresight_rotation_angle=0*u.degree,
dark_time=300.0*u.s,
detector_exposure_id=30577599,
detector_name="ccd99",
Expand Down

0 comments on commit 19a9e9c

Please sign in to comment.