forked from IMAP-Science-Operations-Center/imap_processing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switched SWAPI CDF attrs to use YAML (IMAP-Science-Operations-Center#704
- Loading branch information
Showing
5 changed files
with
173 additions
and
178 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
imap_processing/cdf/config/imap_swapi_global_cdf_attrs.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
instrument_base: &instrument_base | ||
Descriptor: SWAPI>The Solar Wind and Pickup Ion | ||
TEXT: > | ||
The Solar Wind and Pickup Ion (SWAPI) instrument measures several different | ||
elements of the solar wind, including hydrogen (H) and helium (He) ions, | ||
and, on occasion, heavy ions produced by large events from the Sun. See | ||
https://imap.princeton.edu/instruments/swapi for more details. SWAPI level-1 | ||
data contains primary, secondary, coincidence counts per ESA voltage step and | ||
time. Level-2 data contains the same data as level-1 but counts are converted | ||
to rates by dividing counts by time. | ||
Instrument_type: Particles (space) | ||
|
||
imap_swapi_l1_sci: | ||
<<: *instrument_base | ||
# NOTE: Right now, this Data_level is required to produce valid CDF | ||
Data_level: 1 | ||
Data_type: L1_SCI>Level-1 Science data in 1 minute resolution | ||
Logical_source: imap_swapi_l1_sci-1min | ||
Logical_source_description: SWAPI Instrument Level-1 Science Data in 1 minute resolution | ||
|
||
imap_swapi_l1_hk: | ||
<<: *instrument_base | ||
Data_level: 1 | ||
Data_type: L1_HK>Level-1B Housekeeping data | ||
Logical_source: imap_swapi_l1_hk | ||
Logical_source_description: SWAPI Instrument Level-1 Housekeeping Data |
104 changes: 104 additions & 0 deletions
104
imap_processing/cdf/config/imap_swapi_variable_attrs.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
# <=== Coordinates ===> | ||
energy: | ||
CATDESC: Energy step id in lookup table | ||
FIELDNAM: Energy Step | ||
FILLVAL: -9223370000000000000 | ||
FORMAT: I2 | ||
LABLAXIS: Energy Step | ||
SCALE_TYP: linear | ||
UNITS: " " | ||
VALIDMAX: 71 | ||
VALIDMIN: 0 | ||
VAR_TYPE: support_data | ||
|
||
# <=== LABL_PTR_i Attributes ===> | ||
energy_label: | ||
CATDESC: Energy step id in lookup table | ||
FIELDNAM: Energy Step | ||
FORMAT: A2 | ||
VAR_TYPE: metadata | ||
|
||
# <=== Data Variables ===> | ||
counts_default: &counts_default | ||
DEPEND_0: epoch | ||
DEPEND_1: energy | ||
DISPLAY_TYPE: spectrogram | ||
LABL_PTR_1: energy_label | ||
FILLVAL: -9223372036854775808 | ||
FORMAT: I5 | ||
UNITS: counts | ||
VALIDMIN: 0 | ||
VALIDMAX: 65535 | ||
VAR_TYPE: data | ||
SCALETYP: linear | ||
|
||
compression_default: &compression_default | ||
DEPEND_0: epoch | ||
DEPEND_1: energy | ||
DISPLAY_TYPE: spectrogram | ||
LABL_PTR_1: energy_label | ||
FILLVAL: -9223372036854775808 | ||
FORMAT: I1 | ||
UNITS: ' ' | ||
VALIDMIN: 0 | ||
VALIDMAX: 1 | ||
VAR_TYPE: data | ||
SCALETYP: linear | ||
|
||
uncertainty_default: &uncertainty_default | ||
DEPEND_0: epoch | ||
DEPEND_1: energy | ||
DISPLAY_TYPE: spectrogram | ||
LABL_PTR_1: energy_label | ||
FILLVAL: -1.0000000E+31 | ||
FORMAT: E19.5 | ||
UNITS: counts | ||
VALIDMIN: 0.0 | ||
VALIDMAX: 1.7976931348623157e+308 # TODO: find actual value | ||
VAR_TYPE: data | ||
SCALETYP: linear | ||
|
||
pcem_counts: | ||
<<: *counts_default | ||
CATDESC: Primary Channel Electron Multiplier (CEM) Counts | ||
FIELDNAM: Primary CEM Counts | ||
|
||
scem_counts: | ||
<<: *counts_default | ||
CATDESC: Secondary Channel Electron Multiplier (CEM) Counts | ||
FIELDNAM: Secondary CEM Counts | ||
|
||
coin_counts: | ||
<<: *counts_default | ||
CATDESC: Coincidence Counts | ||
FIELDNAM: Coincidence CEM Counts | ||
|
||
pcem_flags: | ||
<<: *compression_default | ||
CATDESC: Primary Channel Electron Multiplier (CEM) compression flag | ||
FIELDNAM: Primary CEM Flag | ||
|
||
scem_flags: | ||
<<: *compression_default | ||
CATDESC: Secondary Channel Electron Multiplier (CEM) compression flag | ||
FIELDNAM: Secondary CEM Flag | ||
|
||
coin_flags: | ||
<<: *compression_default | ||
CATDESC: Coincidence compression flag | ||
FIELDNAM: Coincidence Flag | ||
|
||
pcem_uncertainty: | ||
<<: *uncertainty_default | ||
CATDESC: Primary Channel Electron Multiplier (CEM) uncertainty | ||
FIELDNAM: Primary CEM Uncertainty | ||
|
||
scem_uncertainty: | ||
<<: *uncertainty_default | ||
CATDESC: Secondary Channel Electron Multiplier (CEM) uncertainty | ||
FIELDNAM: Secondary CEM Uncertainty | ||
|
||
coin_uncertainty: | ||
<<: *uncertainty_default | ||
CATDESC: Coincidence uncertainty | ||
FIELDNAM: Coincidence Uncertainty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.