Skip to content

IDEX l2b add counts and reorganize CDF structure #1855

Merged
lacoak21 merged 11 commits intoIMAP-Science-Operations-Center:devfrom
lacoak21:idex_l2b_team_updates
Jul 8, 2025
Merged

IDEX l2b add counts and reorganize CDF structure #1855
lacoak21 merged 11 commits intoIMAP-Science-Operations-Center:devfrom
lacoak21:idex_l2b_team_updates

Conversation

@lacoak21
Copy link
Copy Markdown
Contributor

Change Summary

Overview

Add updates that were requested from the IDEX team. This includes adding rates and reorganizing the CDF structure. Each epoch will now represent one day. L2b is now a monthly "cadence" job.

Updated Files

  • imap_processing/cdf/config/imap_idex_global_cdf_attrs.yaml
    • Fix global attrs to be monthly for l2b and l2c
  • imap_processing/cdf/config/imap_idex_l2b_variable_attrs.yaml
    • Fix attrs to match the new structure
  • imap_processing/cli.py
    • Update the processing code so that idex l2b takes in a list of l2a datasets.
  • imap_processing/idex/idex_constants.py
    • Add constants
  • imap_processing/idex/idex_l2b.py
    • processing code updates

Testing

Add testing for new l2b functions

@lacoak21 lacoak21 added this to the June 2025 milestone Jun 27, 2025
@lacoak21 lacoak21 requested review from a team, Copilot and greglucas June 27, 2025 15:43
@lacoak21 lacoak21 self-assigned this Jun 27, 2025
@lacoak21 lacoak21 requested review from maxinelasp and tmplummer and removed request for a team June 27, 2025 15:43
@lacoak21 lacoak21 added this to IMAP Jun 27, 2025
Copy link
Copy Markdown
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 updates the IDEX L2B processing to accommodate monthly cadence by reorganizing the CDF structure and adding new counts and rates functionality. Key changes include:

  • Updates to test fixtures and test functions to support multiple L2A datasets and new binning methods.
  • Major revisions in imap_processing/idex/idex_l2b.py including new functions for counting and rate computation, and updated constants and CDF configurations.
  • Updates to CLI and YAML config files to reflect the change from weekly to monthly data products.

Reviewed Changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
imap_processing/tests/idex/test_idex_l2b.py Modified tests to use the new bin_spin_phases function, update expected Logical_source names, and add tests for new count and rate functions.
imap_processing/tests/idex/conftest.py Revised fixture to load L2A test data from CDF instead of using idex_l2a.
imap_processing/idex/idex_l2b.py Refactored L2B processing to accept multiple L2A datasets and added functions for count binning and rate calculation.
imap_processing/idex/idex_constants.py Added new constants for SECONDS_IN_DAY and FG_TO_KG.
imap_processing/cli.py Updated file descriptor usage to reflect monthly cadence.
imap_processing/cdf/config/imap_idex_l2b_variable_attrs.yaml Updated metadata to support new rate and count variables.
imap_processing/cdf/config/imap_idex_global_cdf_attrs.yaml Changed global attributes from weekly to monthly data products.

Comment thread imap_processing/tests/idex/test_idex_l2b.py Outdated
Copy link
Copy Markdown
Contributor

@tmplummer tmplummer left a comment

Choose a reason for hiding this comment

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

First pass review... This all looks good to me. Just one comment about the possibility of using the np.histogramdd function.

Comment thread imap_processing/idex/idex_l2b.py Outdated
Comment thread imap_processing/cdf/config/imap_idex_l2b_variable_attrs.yaml Outdated
Comment thread imap_processing/tests/idex/test_idex_l2b.py Outdated
Comment thread imap_processing/idex/idex_l2b.py Outdated
@bourque bourque modified the milestones: June 2025, July 2025 Jun 30, 2025
Copy link
Copy Markdown
Collaborator

@greglucas greglucas left a comment

Choose a reason for hiding this comment

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

Looks great. Just some minor nits from me that you can take/leave as you feel fit.

Comment thread imap_processing/cdf/config/imap_idex_l2b_variable_attrs.yaml Outdated
Comment thread imap_processing/cdf/config/imap_idex_l2b_variable_attrs.yaml Outdated
Comment thread imap_processing/cdf/config/imap_idex_l2b_variable_attrs.yaml
Comment thread imap_processing/idex/idex_constants.py Outdated
Comment thread imap_processing/tests/idex/test_idex_l2b.py Outdated
@lacoak21 lacoak21 force-pushed the idex_l2b_team_updates branch from 17a3c6d to 5a39931 Compare July 8, 2025 17:55
@lacoak21 lacoak21 merged commit 819cd5a into IMAP-Science-Operations-Center:dev Jul 8, 2025
14 checks passed
@github-project-automation github-project-automation bot moved this to Done in IMAP Jul 8, 2025
@lacoak21 lacoak21 deleted the idex_l2b_team_updates branch July 8, 2025 18:20
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.

5 participants