-
Notifications
You must be signed in to change notification settings - Fork 16
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
Various CoDICE L1 Updates #711
Changes from all commits
c7ecb63
0155067
f5ca632
a78ddb6
adffee2
391fcc6
3fe12ed
42e347b
ff00df8
91da446
37f7ab9
ec810a0
cbe0b0a
3811061
b799411
89d3bbd
18962a2
89574db
33d9f3a
1788bef
72b28dc
553c220
3cb7736
e7f44c9
d8e057b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -1,14 +1,24 @@ | ||||
# TODO: Some currently blank attributes may be removed once | ||||
# cdf_attribute_manager.py is updated to only check required attributes. | ||||
# See comment here: | ||||
# https://github.com/IMAP-Science-Operations-Center/imap_processing/pull/711#discussion_r1690212527 | ||||
# <=== Defaults ===> | ||||
default_attrs: &default | ||||
# Assumed values for all variable attrs unless overwritten | ||||
DISPLAY_TYPE: no_plot | ||||
FILLVAL: -9223372036854775808 | ||||
FORMAT: I12 | ||||
UNITS: dN | ||||
VALIDMIN: -9223372036854775808 | ||||
VALIDMAX: 9223372036854775807 | ||||
VAR_TYPE: data | ||||
SCALETYP: linear | ||||
CATDESC: "" | ||||
DISPLAY_TYPE: no_plot | ||||
FIELDNAM: "" | ||||
FILLVAL: -9223372036854775808 | ||||
FORMAT: I12 | ||||
LABLAXIS: "" | ||||
REFERENCE_POSITION: "" | ||||
RESOLUTION: "" | ||||
SCALETYP: linear | ||||
TIME_BASE: "" | ||||
TIME_SCALE: "" | ||||
UNITS: dN | ||||
VALIDMIN: -9223372036854775808 | ||||
VALIDMAX: 9223372036854775807 | ||||
VAR_TYPE: data | ||||
|
||||
codice_support_attrs: &support_default | ||||
<<: *default | ||||
|
@@ -29,23 +39,32 @@ energy_attrs: | |||
# <=== Labels ===> | ||||
energy_label: | ||||
CATDESC: Energy per charge (E/q) sweeping step | ||||
DISPLAY_TYPE: "" | ||||
FIELDNAM: Energy step | ||||
FILLVAL: "" | ||||
FORMAT: A3 | ||||
LABLAXIS: "" | ||||
REFERENCE_POSITION: "" | ||||
RESOLUTION: "" | ||||
TIME_BASE: "" | ||||
TIME_SCALE: "" | ||||
UNITS: "" | ||||
VALIDMAX: "" | ||||
VALIDMIN: "" | ||||
Comment on lines
+42
to
+53
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I found that I needed to add these in order to pass the new check here:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, is that a bug in the validation code? Based on the schema YAML here, I wouldn't expect all of these additions to be necessary. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I am understanding correctly, this is checking against whatever is defined as "required" in the attribute_key:
# ===== EPOCH-ONLY VARIABLE ATTRIBUTES =====
TIME_BASE:
description: >
fixed (0AD, 1900, 1970 (POSIX), J2000 (used by CDF_TIME_TT2000),
4714 BC (Julian)) or flexible (provider-defined)
required: true # NOT Required in ISTP Guide There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right. I am wondering if it should only be checking what is required and is present in the list of attributes defined for the datatype. Not important to this PR though. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Based on slack convos, sounds like Maxine will fix this eventually. I will hang tight on merging this PR and update accordingly when the fix is in. |
||||
VAR_TYPE: metadata | ||||
|
||||
# <=== Dataset Attributes ===> | ||||
# TODO: resolve ISTP warning: Width of F10 FORMAT may be insufficient for | ||||
# values. Adjust FORMAT or VALIDMIN/VALIDMAX value to resolve. | ||||
acquisition_times_attrs: | ||||
<<: *default | ||||
CATDESC: Time of acquisition for the energy step | ||||
DEPEND_1: energy | ||||
FIELDNAM: Acquisition Time | ||||
FILLVAL: 1.7976931348623157e+308 | ||||
FILLVAL: .NAN | ||||
FORMAT: F10.3 | ||||
LABLAXIS: Acq Time | ||||
UNITS: ms | ||||
VALIDMIN: 0 | ||||
VALIDMAX: 1.7976931348623157e+308 | ||||
VALIDMAX: 1000 | ||||
VAR_TYPE: support_data | ||||
|
||||
counters_attrs: &counters | ||||
|
@@ -63,6 +82,7 @@ counters_attrs: &counters | |||
esa_sweep_attrs: | ||||
<<: *default | ||||
CATDESC: ElectroStatic Analyzer Energy Values | ||||
DEPEND_1: energy | ||||
FIELDNAM: ESA Voltage | ||||
FORMAT: I19 | ||||
LABLAXIS: ESA V | ||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was just to have consistent indenting across the file.