Skip to content

Update glows_l1b_data.py, replace glows_time_offset with imap_time_of…#2945

Merged
maxinelasp merged 4 commits into
IMAP-Science-Operations-Center:devfrom
mstrumik:patch-2
Apr 25, 2026
Merged

Update glows_l1b_data.py, replace glows_time_offset with imap_time_of…#2945
maxinelasp merged 4 commits into
IMAP-Science-Operations-Center:devfrom
mstrumik:patch-2

Conversation

@mstrumik
Copy link
Copy Markdown
Contributor

@mstrumik mstrumik commented Apr 9, 2026

glows_time_offset should be replaced here with imap_time_offset here. Both IMAP and GLOWS clock readings are included in GLOWS histogram packets, but the two clocks are separate instances and their readings should not be mixed.

Change Summary

Overview

One line changed to replace glows_time_offset with imap_time_offset

File changes

This part of code sets time bounds for computations of SPICE-related variables. Two clocks readings should not be mixed here.

Testing

…fset

glows_time_offset should be replaced here with imap_time_offset here. Both IMAP and GLOWS clock readings are included in GLOWS histogram packets, but the two clocks are separate instances and their readings should not be mixed.
@tmplummer tmplummer requested a review from maxinelasp April 9, 2026 15:01
@jtniehof jtniehof added the Ins: GLOWS Related to the GLOWS instrument label Apr 10, 2026
@@ -899,7 +899,7 @@ def update_spice_parameters(self) -> None:
data_start_met = self.imap_start_time
# use of imap_start_time and glows_time_offset is correct.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update or remove this comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Comment on glows_time_offset removed as suggested by @maxinelasp
@maxinelasp
Copy link
Copy Markdown
Contributor

I think this line in the tests needs to be updated to point to imap_time_offset instead of glows_time_offset

Modified tests after replacing glows_time_offset by imap_time_offset
@maxinelasp maxinelasp merged commit 0f40ec5 into IMAP-Science-Operations-Center:dev Apr 25, 2026
14 checks passed
lacoak21 pushed a commit to lacoak21/imap_processing that referenced this pull request May 4, 2026
IMAP-Science-Operations-Center#2945)

* Update glows_l1b_data.py, replace glows_time_offset with imap_time_offset

glows_time_offset should be replaced here with imap_time_offset here. Both IMAP and GLOWS clock readings are included in GLOWS histogram packets, but the two clocks are separate instances and their readings should not be mixed.

* Update glows_l1b_data.py

Comment on glows_time_offset removed as suggested by @maxinelasp

* Update test_glows_l1b_data.py

Modified tests after replacing glows_time_offset by imap_time_offset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ins: GLOWS Related to the GLOWS instrument

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants