Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrects and tests inclusion of spacecraft location metadata #132

Merged
merged 1 commit into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion punchbowl/data/omniheader.csv
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ SECTION,TYPE,KEYWORD,VALUE,COMMENT,DATATYPE,NULLABLE,MUTABLE,DEFAULT
10,keyword,RSUN_REF,695700000,[m] assumed physical solar radius,float,TRUE,TRUE,
10,keyword,SOLAR_EP,,[deg] S/C ecliptic North to solar North angle,float,TRUE,TRUE,
10,keyword,CAR_ROT,0.0,Carrington Rotation number,float,TRUE,TRUE,
11,section,COMMENT, Spacecraft Location & Environment,,str,TRUE,TRUE, Spacecraft Location & Environment
11,section,COMMENT,Spacecraft Location & Environment,,str,TRUE,TRUE, Spacecraft Location & Environment
11,keyword,GEOD_LAT,,[deg] S/C sub-point geodetic latitude,float,TRUE,TRUE,
11,keyword,GEOD_LON,,[deg] S/C sub-point longitude,float,TRUE,TRUE,
11,keyword,GEOD_ALT,,[m] S/C WGS84 altitude,float,TRUE,TRUE,
Expand Down
7 changes: 7 additions & 0 deletions punchbowl/tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,13 @@ def test_create_level0_normalized_metadata():
assert "OBSRVTRY" in m


def test_create_level3_normalized_metadata():
m = NormalizedMetadata.load_template("PTM", "3")
assert "GEOD_LAT" in m
assert "HGLN_OBS" in m
assert "HEEX_OBS" in m


def test_normalized_metadata_to_fits_writes_history():
m = NormalizedMetadata.load_template("PM1", "0")
m.history.add_now("Test", "does it write?")
Expand Down
Loading