Skip to content

Conversation

@subagonsouth
Copy link
Contributor

Change Summary

Overview

Report Lo energy_deltas in keV instead of eV.

Closes: #2542

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses issue #2542 by converting Lo L2 energy delta values from eV to keV to match the units used for energy values, enabling proper computation of L3 spectral index maps.

  • Multiplies energy delta values by 1e-3 to convert from eV to keV
  • Adds test assertion to verify energy deltas are in keV (values < 1)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
imap_processing/lo/l2/lo_l2.py Applies 1e-3 conversion factor to energy_delta_minus and energy_delta_plus for both HiRes and HiThr ESA modes
imap_processing/tests/lo/test_lo_l2.py Adds assertion to verify energy_delta_plus values are less than 1 keV

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@subagonsouth subagonsouth merged commit 19f1d25 into IMAP-Science-Operations-Center:dev Dec 30, 2025
14 checks passed
@github-project-automation github-project-automation bot moved this to Done in IMAP Dec 30, 2025
@subagonsouth subagonsouth deleted the 2542-lo-l2---energy-is-in-kev-while-energy-deltas-are-in-ev branch December 30, 2025 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Lo L2 - Energy is in KeV while Energy deltas are in eV

2 participants