From e9b58d6a6a1e6850d0bb3fd9409d63d3457e8d49 Mon Sep 17 00:00:00 2001 From: Tim Plummer Date: Tue, 24 Sep 2024 14:46:57 -0600 Subject: [PATCH 1/2] Convert all hi instances of uint64 CDF variables to int64 --- imap_processing/cdf/config/imap_hi_variable_attrs.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/imap_processing/cdf/config/imap_hi_variable_attrs.yaml b/imap_processing/cdf/config/imap_hi_variable_attrs.yaml index f71c96e57..40fdfa989 100644 --- a/imap_processing/cdf/config/imap_hi_variable_attrs.yaml +++ b/imap_processing/cdf/config/imap_hi_variable_attrs.yaml @@ -31,13 +31,13 @@ default_uint32_attrs: &default_uint32 VALIDMAX: 4294967295 dtype: uint32 -default_uint64_attrs: &default_uint64 +default_int64_attrs: &default_int64 <<: *default FILLVAL: 18446744073709551615 FORMAT: I20 VALIDMIN: 0 VALIDMAX: 18446744073709551615 - dtype: uint64 + dtype: int64 default_int32_attrs: &default_int32 <<: *default @@ -91,7 +91,7 @@ hi_de_esa_stepping_num: <<: *hi_esa_stepping_num hi_de_event_met: - <<: *default_uint64 + <<: *default_int64 CATDESC: Mission Elapsed Time (MET) of Direct Event DISPLAY_TYPE: no_plot FIELDNAM: Time since (TODO - what is the def of MET?) @@ -101,7 +101,7 @@ hi_de_event_met: SCALE_TYP: linear hi_de_meta_event_met: - <<: *default_uint64 + <<: *default_int64 CATDESC: Mission elapsed time (MET) of last meta-event DISPLAY_TYPE: no_plot FIELDNAM: Meta-event Mission Elapsed Time @@ -111,7 +111,7 @@ hi_de_meta_event_met: VALIDMAX: 4294967295 VAR_TYPE: support_data SCALE_TYP: linear - dtype: uint64 + dtype: int64 hi_de_trigger_id: <<: *default_uint8 From 84481125e3463c103aae4213e7e6698a0acfb9c8 Mon Sep 17 00:00:00 2001 From: Tim Plummer Date: Wed, 25 Sep 2024 11:23:57 -0600 Subject: [PATCH 2/2] Fix fillval, validmin, and validmax for change from uint64 to int64 --- imap_processing/cdf/config/imap_hi_variable_attrs.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/imap_processing/cdf/config/imap_hi_variable_attrs.yaml b/imap_processing/cdf/config/imap_hi_variable_attrs.yaml index 40fdfa989..5d1f8e625 100644 --- a/imap_processing/cdf/config/imap_hi_variable_attrs.yaml +++ b/imap_processing/cdf/config/imap_hi_variable_attrs.yaml @@ -33,10 +33,10 @@ default_uint32_attrs: &default_uint32 default_int64_attrs: &default_int64 <<: *default - FILLVAL: 18446744073709551615 + FILLVAL: -9223372036854775808 FORMAT: I20 - VALIDMIN: 0 - VALIDMAX: 18446744073709551615 + VALIDMIN: -9223372036854775808 + VALIDMAX: 9223372036854775807 dtype: int64 default_int32_attrs: &default_int32