Skip to content

Commit

Permalink
Merge pull request #45 from lsst-dm/tickets/DM-46945
Browse files Browse the repository at this point in the history
DM-46945 Switch altitude and zenith distance
  • Loading branch information
bbrondel authored Feb 24, 2025
2 parents 7995112 + 0731f49 commit 6c3bf46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions python/lsst/consdb/hinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,12 @@ def fp_region(
"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")),
"zenith_distance_start": "ELSTART",
"zenith_distance_end": "ELEND",
"zenith_distance": (mean, "ELSTART", "ELEND"),
"altitude_start": "ELSTART",
"altitude_end": "ELEND",
"altitude": (mean, "ELSTART", "ELEND"),
"zenith_distance_start": (ninety_minus, "ELSTART"),
"zenith_distance_end": (ninety_minus, "ELEND"),
"zenith_distance": (mean, (ninety_minus, "ELSTART"), (ninety_minus, "ELEND")),
"exp_midpt": (tai_mean, "DATE-BEG", "DATE-END"),
"exp_midpt_mjd": (mean, "MJD-BEG", "MJD-END"),
"obs_start": (tai_convert, "DATE-BEG"),
Expand Down
2 changes: 1 addition & 1 deletion tests/test_hinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ def test_process_resource(pg_engine):

elstart = _header_lookup(header, "ELSTART")
elend = _header_lookup(header, "ELEND")
assert 0.5 * (elstart + elend) == row.zenith_distance
assert 0.5 * (elstart + elend) == row.altitude

0 comments on commit 6c3bf46

Please sign in to comment.