IDEX Update event time calculation#2664
Open
lacoak21 wants to merge 1 commit intoIMAP-Science-Operations-Center:devfrom
Open
IDEX Update event time calculation#2664lacoak21 wants to merge 1 commit intoIMAP-Science-Operations-Center:devfrom
lacoak21 wants to merge 1 commit intoIMAP-Science-Operations-Center:devfrom
Conversation
tech3371
reviewed
Feb 5, 2026
| return met_to_ttj2000ns(met) | ||
| if coarse_time_sec2 is not None: | ||
| # Reconstruct the total seconds from the two 16-bit words | ||
| coarse_event_time = 65536 * coarse_time_sec1 + coarse_time_sec2 |
Contributor
There was a problem hiding this comment.
I am little curious why they want to multiply coarse second time with 65536. I have seen this number is CoDICE and they are doing this:
center_times_seconds = (
acq_start_seconds + acq_start_subseconds / 65536 + (delta_times / 1e9)
)
Can you check with them if 65536 should be applied to fine_time_subs instead?
tech3371
reviewed
Feb 5, 2026
Contributor
tech3371
left a comment
There was a problem hiding this comment.
I had one minor question to IDEX team but what you had is good.
p.s. yes, I remember that discussion and I thought I was way off based on response I got. I should have push back more :)
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
The IDEX team realized they were using shcoarse for event time calculation. This was actually the time of the packet calculation and not the time when IDEX triggered.
I think @tech3371 you had this concern in the science team meeting a long time ago but I thought they said we were doing it right! Anyway this is the correct way to do it.
Updated Files
-imap_processing/idex/idex_l1a.py