Skip to content

I-ALiRT CoDICE-Hi - update to use spin angle dimension#3126

Open
laspsandoval wants to merge 1 commit intoIMAP-Science-Operations-Center:devfrom
laspsandoval:ialirt_codice_validation
Open

I-ALiRT CoDICE-Hi - update to use spin angle dimension#3126
laspsandoval wants to merge 1 commit intoIMAP-Science-Operations-Center:devfrom
laspsandoval:ialirt_codice_validation

Conversation

@laspsandoval
Copy link
Copy Markdown
Contributor

This pull request introduces a new variable, codice_hi_spin_angle, to the IALIRT Level 1 data processing pipeline and updates the data model and tests to support it. The main goal is to provide explicit spin angle information for each spin sector and polar angle pair, improving data clarity and downstream usability. Additionally, dependencies for the codice_hi_h variable are updated to use the new spin angle variable.

Additions and updates to data model:

  • Added a new variable definition for codice_hi_spin_angle in imap_ialirt_l1_variable_attrs.yaml, including its attributes, units, valid range, and dependencies (codice_hi_spin_sector, codice_hi_polar).
  • Updated the dependency for codice_hi_h to use codice_hi_spin_angle instead of codice_hi_spin_sector and codice_hi_polar, reflecting the new data structure.

Code and pipeline changes:

  • Updated create_xarray_from_records in create_xarray.py to generate the codice_hi_spin_angle DataArray, using the HI_IALIRT_SPIN_ANGLE constant and appropriate attributes. [1] [2]
  • Imported HI_IALIRT_SPIN_ANGLE where needed to support the new variable.

Testing improvements:

  • Added assertions in test_create_xarray.py to verify the presence, shape, and values of the new codice_hi_spin_angle variable in the dataset, ensuring correctness.
  • Updated test imports to include HI_IALIRT_SPIN_ANGLE.

@laspsandoval laspsandoval self-assigned this May 4, 2026
@laspsandoval laspsandoval added this to IMAP May 4, 2026
@laspsandoval laspsandoval added Ins: CoDICE Related to the CoDICE instrument I-ALiRT labels May 4, 2026
@laspsandoval laspsandoval requested a review from lacoak21 May 4, 2026 18:46
@laspsandoval laspsandoval moved this to In Progress in IMAP May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

I-ALiRT Ins: CoDICE Related to the CoDICE instrument

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

I-ALiRT - CoDICE: incorrect spin angles in 'codice_hi_spin_sector' variable

1 participant