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

CoDICE L1a Lo Sunward Angular Counts #544

Conversation

bourque
Copy link
Collaborator

@bourque bourque commented May 2, 2024

Change Summary

Overview

This PR implements lo-sw-angular-counts into the CoDICE L1a pipeline. There are some fixes that need to be made to the pipeline based on conversations with Joey, but I will take care of those in a future PR.

New Files

  • imap_processing/tests/codice/data/lo_fsw_view_7_ccsds.bin
    • Test data for lo-sw-angular-counts

Updated Files

  • imap_processing/codice/cdf_attrs.py
    • Added CDF attributes
  • imap_processing/codice/codice_l0.py
  • Added mapping to XTCE file
  • imap_processing/codice/codice_l1a.py
    • Added support for lo-sw-angular-counts
  • imap_processing/codice/constants.py
    • Added CDF-friendly varnames
  • imap_processing/codice/packet_definitions/P_COD_LO_SW_ANGULAR_COUNTS.xml
    • Switched to variable length data
  • imap_processing/tests/codice/test_codice_l1a.py
  • Added unit tests

@bourque bourque added Ins: CoDICE Related to the CoDICE instrument Level: L1 Level 1 processing labels May 2, 2024
@bourque bourque self-assigned this May 2, 2024
Copy link
Contributor

@tech3371 tech3371 left a comment

Choose a reason for hiding this comment

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

One minor comment. Otherwise, it looks good.

@@ -82,6 +82,15 @@
instrument_base=codice_base,
)

l1a_lo_sw_angular_counts_attrs = GlobalDataLevelAttrs(
data_type="L1A_SCI->Level-1A Science Data",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
data_type="L1A_SCI->Level-1A Science Data",
data_type="L1A_Lo-SW-Angular-Counts->Level-1A Lo Sunward Angular Counts Data",

Copy link
Contributor

Choose a reason for hiding this comment

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

If I remember correctly, this data_type is used to build filename convention that SPDF and SKTEditor use. That’s why I made suggestion to match the format it expects, <datalevel>_<descriptor>. Logical_source is used by write_cdf function to build our filename we use to write to.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good to know, thanks! I am going to add this to my list of things to fix in the next PR, since I should update it for the other data products too.

@bourque bourque merged commit 57928d7 into IMAP-Science-Operations-Center:dev May 6, 2024
15 checks passed
@bourque bourque deleted the codice-l1a-lo-sw-angular-counts branch May 6, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ins: CoDICE Related to the CoDICE instrument Level: L1 Level 1 processing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants