Skip to content

Fix Lo L2 processing pointing set midpoint_j2000_et calculation#3011

Merged
tmplummer merged 1 commit into
IMAP-Science-Operations-Center:devfrom
pleasant-menlo:fix-lo-pset-midpoint-calculation
Apr 15, 2026
Merged

Fix Lo L2 processing pointing set midpoint_j2000_et calculation#3011
tmplummer merged 1 commit into
IMAP-Science-Operations-Center:devfrom
pleasant-menlo:fix-lo-pset-midpoint-calculation

Conversation

@pleasant-menlo
Copy link
Copy Markdown
Contributor

Change Summary

Overview

A recent change to how the L2 ENA maps are produced means the middle time of the pointing set is used when projecting pointing set values to the SkyMap object. The middle time of the Lo pointing set was being computed incorrectly before this change. However, there are no noticeable issues when producing L2 maps with this incorrect computation, because no projection is needed when producing Lo maps in IMAP_HAE since the IMAP_HAE coords are already known by the pset.

However, because the mapping tool can generate maps in other frames (non HAE), it is possible the incorrect computation of the time used to project the pset into the skymap could cause issues in this case.

File changes

imap_processing/ena_maps/ena_maps.py

  • Fixed LoPointingSet.midpoint_j2000_et calculation by converting pointing_end_met and pointing_start_met to ttj2000ns before performing subtraction to compute the epoch_delta

@jtniehof
Copy link
Copy Markdown
Collaborator

This seems superficial--at first I was thinking it only differs by the clock drift. But if I'm reading it right, it would actually shift the midpoint of the pointing set time by about 5 years: start - end of 0 seconds, interpreted as a MET would be 2010-01-01, convert to seconds since J2000 is ten years, divide by two.

That would probably mean no SPICE coverage as well?

@jtniehof
Copy link
Copy Markdown
Collaborator

Can you run pre-commit install on the checkout so that those checks are run on commit? If it's not too hard to do that pre-emptively across the harrison machines it would be a good idea (don't know how shared the checkouts are).

@pleasant-menlo pleasant-menlo force-pushed the fix-lo-pset-midpoint-calculation branch from 2cb91e2 to 7f3ebd1 Compare April 15, 2026 16:59
@tmplummer tmplummer merged commit 062ea48 into IMAP-Science-Operations-Center:dev Apr 15, 2026
14 checks passed
lacoak21 pushed a commit to lacoak21/imap_processing that referenced this pull request May 4, 2026
…-Science-Operations-Center#3011)

Co-authored-by: Menlo Innovations - CAVA Project <harrison@menloinnovations.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants