Change CDF output variables to UTC string, matching algorithm document#2827
Merged
maxinelasp merged 2 commits intoMar 10, 2026
Merged
Conversation
sdhoyt
approved these changes
Mar 9, 2026
Contributor
Author
|
.pre-commit autofix |
c48556e
into
IMAP-Science-Operations-Center:dev
14 checks passed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Summary
Overview
Converts
start_timeandend_timein the GLOWS L2 CDF output from raw J2000nanoseconds to UTC strings, matching the format specified in the algorithm
document. Fixes a CDF writing error caused by mismatched attribute types.
File changes
imap_processing/glows/l2/glows_l2.py: Addedutc_time_variableslist(
start_time,end_time) and a conversion step increate_l2_datasetthatcalls
met_to_utc(ttj2000ns_to_met(value))before writing these fields tothe output dataset.
imap_processing/cdf/config/imap_glows_l2_variable_attrs.yaml: Updatedtime_data_defaultsto use string-compatible CDF attributes (FILLVAL: ' ',FORMAT: A30,VALIDMIN/VALIDMAX: ' '). The previousFILLVAL: 0andFORMAT: I1000caused a cdflibValueErrorwhen writing string data becausecdflib infers CDF_CHAR type from the string data but then fails to convert an
integer FILLVAL to that type.