From e689bab55ba4553a35440504c0317e190ba6eea4 Mon Sep 17 00:00:00 2001 From: Greg Lucas Date: Fri, 9 Aug 2024 14:54:15 -0600 Subject: [PATCH] MNT: Update global CDF attribute metadata (#747) Per discussions at the Science Team Meeting and looking at previous data releases from past missions. --- .../config/imap_default_global_cdf_attrs.yaml | 19 ++++++++++++++----- .../tests/cdf/test_imap_cdf_manager.py | 4 ++-- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/imap_processing/cdf/config/imap_default_global_cdf_attrs.yaml b/imap_processing/cdf/config/imap_default_global_cdf_attrs.yaml index 259f7b70e..71c5dd65d 100644 --- a/imap_processing/cdf/config/imap_default_global_cdf_attrs.yaml +++ b/imap_processing/cdf/config/imap_default_global_cdf_attrs.yaml @@ -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/ diff --git a/imap_processing/tests/cdf/test_imap_cdf_manager.py b/imap_processing/tests/cdf/test_imap_cdf_manager.py index a73610001..c5d6db8df 100644 --- a/imap_processing/tests/cdf/test_imap_cdf_manager.py +++ b/imap_processing/tests/cdf/test_imap_cdf_manager.py @@ -14,7 +14,7 @@ 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") @@ -22,7 +22,7 @@ def test_add_instrument_global_attrs(): # 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(