Skip to content

Commit

Permalink
MNT: Update global CDF attribute metadata (#747)
Browse files Browse the repository at this point in the history
Per discussions at the Science Team Meeting and looking at previous
data releases from past missions.
  • Loading branch information
greglucas committed Aug 9, 2024
1 parent 97a46e8 commit e689bab
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
19 changes: 14 additions & 5 deletions imap_processing/cdf/config/imap_default_global_cdf_attrs.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
Project: STP>Solar-Terrestrial Physics
# Reference for sections: https://spdf.gsfc.nasa.gov/istp_guide/gattributes.html
# Reference from IBEX: https://spdf.gsfc.nasa.gov/pub/software/cdawlib/0SKELTABLES/ibex_h3_ena_lo_r08_omni_f3-gdf-maps_5yr_00000000_v01.skt
Project: STP>Solar Terrestrial Probes
Source_name: IMAP>Interstellar Mapping and Acceleration Probe
Discipline: Solar Physics>Heliospheric Physics
# TODO: CDF docs say this value should be IMAP
Mission_group: IMAP>Interstellar Mapping and Acceleration Probe
PI_name: Dr. David J. McComas
PI_affiliation: Princeton Plasma Physics Laboratory, 100 Stellarator Road, Princeton, NJ 08540
Mission_group: IMAP
PI_name: Prof. David J. McComas
PI_affiliation: Princeton University
File_naming_convention: source_descriptor_datatype_yyyyMMdd_vNNN
Acknowledgement: >
Please acknowledge the IMAP Mission Principal Investigator, Prof. David J. McComas of Princeton University.
Rules_of_use: >
All IMAP data products are publicly released and citable for use in publications.
Please consult the IMAP team publications and personnel for further details
on production, processing, and usage of these data.
LINK_TITLE: IMAP The Interstellar Mapping and Acceleration Probe
HTTP_LINK: https://imap.princeton.edu/
4 changes: 2 additions & 2 deletions imap_processing/tests/cdf/test_imap_cdf_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ def test_add_instrument_global_attrs():
# Testing data loaded in
imap_instrument = imap_cdf_manager.get_global_attributes("imap_test_T1_test")
assert imap_instrument["Data_type"] == "T1_test-one>Test-1 test one"
assert imap_instrument["Project"] == "STP>Solar-Terrestrial Physics"
assert imap_instrument["Project"] == "STP>Solar Terrestrial Probes"

# Testing reloading data
imap_cdf_manager.add_instrument_global_attrs("instrument2")

# Testing data carried over, and overwritten
instrument2_instrument = imap_cdf_manager.get_global_attributes("imap_swe_l1a_sci")
assert instrument2_instrument["Data_type"] == "L1A_SCI>Level-1A Science data"
assert instrument2_instrument["Project"] == "STP>Solar-Terrestrial Physics"
assert instrument2_instrument["Project"] == "STP>Solar Terrestrial Probes"


@mock.patch(
Expand Down

0 comments on commit e689bab

Please sign in to comment.