Skip to content

Commit

Permalink
Add additional field definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ktlim committed Mar 21, 2024
1 parent d9e9cc9 commit 8e27206
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/lsst/consdb/hinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def logical_or(*bools: int | str | None) -> bool:

# Non-instrument-specific mapping to column name from Header Service keyword
KW_MAPPING: dict[str, str | Sequence] = {
"exposure_name": "OBSID",
"controller": "CONTRLLR",
"seq_num": "SEQNUM",
"band": "FILTBAND",
Expand All @@ -60,10 +61,13 @@ def logical_or(*bools: int | str | None) -> bool:
"skyrotation": "ROTPA",
"azimuth_start": "AZSTART",
"azimuth_end": "AZEND",
"azimuth": (mean, "AZSTART", "AZEND"),
"altitude_start": (ninety_minus, "ELSTART"),
"altitude_end": (ninety_minus, "ELEND"),
"altitude": (mean, (ninety_minus, "ELSTART"), (ninety_minus, "ELEND")),
"zenithdistance_start": "ELSTART",
"zenithdistance_end": "ELEND",
"zenithdistance": (mean, "ELSTART", "ELEND"),
"expmidpt": (tai_mean, "DATE-BEG", "DATE-END"),
"expmidptmjd": (mean, "MJD-BEG", "MJD-END"),
"obsstart": (tai_convert, "DATE-BEG"),
Expand Down

0 comments on commit 8e27206

Please sign in to comment.