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

Process IMAP-Hi Housekeeping data and create CDF file #371

Merged
merged 4 commits into from
Apr 2, 2024

Conversation

tech3371
Copy link
Contributor

Change Summary

Overview

  • unpacks housekeeping data
  • test that we are able to write data to CDF file

@tech3371 tech3371 added the Ins: Hi Related to the IMAP-Hi instrument label Mar 25, 2024
@tech3371 tech3371 requested a review from a team March 25, 2024 16:47
@tech3371 tech3371 self-assigned this Mar 25, 2024
@tech3371 tech3371 requested review from bourque, sdhoyt, greglucas, vmartinez-cu, laspsandoval and maxinelasp and removed request for a team March 25, 2024 16:47
@@ -33,7 +33,7 @@ bitstring = ">=4.0.1"
cdflib = "==1.2.6"
imap-data-access = ">=0.5.0"
python = ">=3.9,<4"
space_packet_parser = ">=4.1.0"
space_packet_parser = ">=4.2.0rc3"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: update this to new version

imap_processing/hi/l1a/hi_l1a.py Outdated Show resolved Hide resolved
imap_processing/hi/l1a/housekeeping.py Outdated Show resolved Hide resolved
imap_processing/hi/l1a/housekeeping.py Outdated Show resolved Hide resolved
imap_processing/hi/l1a/housekeeping.py Outdated Show resolved Hide resolved
imap_processing/hi/l1a/housekeeping.py Outdated Show resolved Hide resolved
Copy link
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.

Nice, the for loops are much easier to follow now I think.

Comment on lines +42 to +45
epoch_converted_time = [
calc_start_time(sc_time) for sc_time in metadata_arrays["ccsds_met"]
]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not for this PR, but it might be nice if calc_start_time could handle an array and you could instead call:
epoch_converted_times = calc_start_time(metadata_arrays["ccsds_met"])

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree. Many of us are doing this. Would be nice to call a common util function for this.

imap_processing/hi/hi_cdf_attrs.py Outdated Show resolved Hide resolved
imap_processing/hi/l1a/housekeeping.py Outdated Show resolved Hide resolved
imap_processing/hi/l1a/housekeeping.py Outdated Show resolved Hide resolved
@tech3371
Copy link
Contributor Author

tech3371 commented Apr 1, 2024

pre-commit.ci autofix

@tech3371 tech3371 merged commit b83c575 into IMAP-Science-Operations-Center:dev Apr 2, 2024
17 checks passed
@tech3371 tech3371 deleted the hi_l1a_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: Hi Related to the IMAP-Hi instrument
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Write IMAP-Hi L1A data to CDF file Unpack and process IMAP-Hi packets to L1A
3 participants