Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add calculation of Hi L1B nominal_bin #1116

Conversation

subagonsouth
Copy link
Contributor

Change Summary

Overview

New Dependencies

New Files

  • new file 1
    • description of new file 1's purpose

Deleted Files

  • deleted file 1
    • explanation for why file was deleted

Updated Files

  • imap_processing/hi/l1b/hi_l1b.py
    • Rename compute_instrument_spin_phase to de_nominal_bin_and_spin_phase
    • Add calculation of nominal bin to renamed function
  • imap_processing/tests/hi/test_hi_l1b.py
    • Modify test to cover nominal bin as well as spin-phase

Closes: #866

@subagonsouth subagonsouth added the Ins: Hi Related to the IMAP-Hi instrument label Nov 4, 2024
@subagonsouth subagonsouth requested a review from a team November 4, 2024 16:56
@subagonsouth subagonsouth self-assigned this Nov 4, 2024
@subagonsouth subagonsouth requested review from vmartinez-cu, laspsandoval and maxinelasp and removed request for a team November 4, 2024 16:56
Copy link
Contributor

@laspsandoval laspsandoval left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for keeping it simple.

# nominal_bin is the index number of the 90 4-degree bins that each DE would
# be binned into in the histogram packet. The Hi histogram data is binned by
# spacecraft spin-phase, not instrument spin-phase, so the same is done here.
met_querry_times = j2000ns_to_j2000s(dataset.event_met.values)
Copy link
Contributor

Choose a reason for hiding this comment

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

query?

@subagonsouth subagonsouth merged commit a345050 into IMAP-Science-Operations-Center:dev Nov 6, 2024
17 checks passed
@subagonsouth subagonsouth deleted the 866-hi-l1b-compute-nominal-bin branch November 6, 2024 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ins: Hi Related to the IMAP-Hi instrument
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Hi l1b - compute nominal bin
2 participants