Skip to content

Lo L1B - Species Identification and Badtimes Initialization #1615

Merged
sdhoyt merged 2 commits intoIMAP-Science-Operations-Center:devfrom
sdhoyt:species-id
Apr 14, 2025
Merged

Lo L1B - Species Identification and Badtimes Initialization #1615
sdhoyt merged 2 commits intoIMAP-Science-Operations-Center:devfrom
sdhoyt:species-id

Conversation

@sdhoyt
Copy link
Copy Markdown
Contributor

@sdhoyt sdhoyt commented Apr 14, 2025

Change Summary

Overview

This PR adds code to identify the species of each Lo L1B Direct Event as either Hydrogen, Oxygen, or Unknown. The badtimes field is also initialized.

Updated Files

  • imap_processing/lo/l1b/lo_l1b.py
    • added function to identify the direct event species
    • added function to initialize badtimes (always not bad for now)

Testing

Added two unit tests and ran CLI

Closes #1517

@sdhoyt sdhoyt added Ins: Lo Related to the IMAP-Lo instrument Level: L1 Level 1 processing labels Apr 14, 2025
@sdhoyt sdhoyt self-assigned this Apr 14, 2025
@sdhoyt sdhoyt added this to IMAP Apr 14, 2025
l1b_de : xarray.Dataset
The L1B DE dataset with the bad times added.
"""
# Initialize all times as not bad for now
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Add a note/todo about coming back to this?

Comment thread imap_processing/tests/lo/test_lo_l1b.py Outdated
Comment on lines +477 to +481
"tof2": ("epoch", [14, 80, 500, fill_val]),
}
)

expected_species = np.array(["H", "O", "U", "U"])
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Add a value under and between too.

Suggested change
"tof2": ("epoch", [14, 80, 500, fill_val]),
}
)
expected_species = np.array(["H", "O", "U", "U"])
"tof2": ("epoch", [1, 14, 50, 80, 500, fill_val]),
}
)
expected_species = np.array(["U", "H", "U", "O", "U", "U"])

@sdhoyt sdhoyt merged commit 8bfd2e9 into IMAP-Science-Operations-Center:dev Apr 14, 2025
14 checks passed
@github-project-automation github-project-automation bot moved this to Done in IMAP Apr 14, 2025
@sdhoyt sdhoyt deleted the species-id branch April 14, 2025 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ins: Lo Related to the IMAP-Lo instrument Level: L1 Level 1 processing

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Lo - L1B DE Species Identification

2 participants