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

added SWAPI housekeeping processing and CDF attrs #398

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

tech3371
Copy link
Contributor

Change Summary

Overview

Added SWAPI housekeeping processing and CDF attribute

New Files

  • imap_processing/common_cdf_attrs.py
    • To store common attrs

Updated Files

  • imap_processing/swapi/l1/swapi_l1.py
    • added housekeeping processing
  • imap_processing/swapi/swapi_cdf_attrs.py
    • Added housekeeping attrs
  • imap_processing/swapi/swapi_utils.py
    • removed old create_dataset function and moved it to utils function below and updated it.
  • imap_processing/utils.py

Testing

  • imap_processing/tests/swapi/test_swapi_l1.py

@tech3371 tech3371 added the Ins: SWAPI Related to the SWAPI instrument label Apr 11, 2024
@tech3371 tech3371 requested review from bryan-harter and a team April 11, 2024 23:16
@tech3371 tech3371 self-assigned this Apr 11, 2024
@tech3371 tech3371 requested review from bourque, sdhoyt, greglucas, subagonsouth, vmartinez-cu, laspsandoval and maxinelasp and removed request for a team April 11, 2024 23:16

for data_packet in packets:
# Add metadata to array
for key, value in (data_packet.header | data_packet.data).items():
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this going to cause the CCSDS header to be put into a data array?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I have included header in the CDF so far.

Copy link
Contributor

Choose a reason for hiding this comment

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

Is that something SWAPI asked for or is that a standard thing we should do? I wasn't planning to put the headers into the CDFs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They didn't ask for this. It's something I have to been carrying information over. But I don't think they will complain if I remove it. If you are thinking of using it and if it helps to remove header, then I am happy to.

Copy link
Collaborator

@bourque bourque left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Good idea!

@tech3371 tech3371 merged commit 01d260f into IMAP-Science-Operations-Center:dev Apr 16, 2024
15 checks passed
@tech3371 tech3371 deleted the swapi_hk branch July 25, 2024 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ins: SWAPI Related to the SWAPI instrument
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants