Skip to content

Conversation

@greglucas
Copy link
Collaborator

Change Summary

This adds a general helper to combine segmented packets together after the XTCE parsing. This required an updated to the XTCE xml so that the header fields aren't read in on the middle/last packets. This means we need to extract those fields manually after the XTCE parsing and combining of segmented packets. That is ultra specific, so I put the extraction function in the Ultra namespace.

@greglucas greglucas added this to the January 2026 milestone Jan 15, 2026
@greglucas greglucas self-assigned this Jan 15, 2026
@greglucas greglucas added Ins: Ultra Related to the IMAP-Ultra instrument packet parsing Related to packet parsing or XTCE labels Jan 15, 2026
@greglucas greglucas force-pushed the ultra-continuation-packets branch from 6bedcd9 to f6df9a3 Compare January 15, 2026 13:09
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.

the changes looks good to me. It's coming nicely together! Nice work!

"""
Combine segmented packets into unsegmented packets.
All packets have (SHCOARSE, EVENT_DATA, CHKSUM) fields. To combine
Copy link
Contributor

Choose a reason for hiding this comment

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

should we update this to be generic now?

Suggested change
All packets have (SHCOARSE, EVENT_DATA, CHKSUM) fields. To combine
All packets have (SHCOARSE, binary_field_name) fields. To combine

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 call! I reworded this to update it and remove CoDICE things that I copied over.

This adds a helper function to combine segmented packets together
after XTCE parsing. We can't handle this in the XTCE definition
itself due to the variable length packets.

We also need to update the Ultra packet definition to have a larger
variable length field because the header items are actually only
stored in the first packet, not all the middle/last packets too.
@greglucas greglucas force-pushed the ultra-continuation-packets branch from f6df9a3 to 01067e3 Compare January 16, 2026 15:07
@greglucas greglucas merged commit a6e8f1a into IMAP-Science-Operations-Center:dev Jan 16, 2026
14 checks passed
@greglucas greglucas deleted the ultra-continuation-packets branch January 16, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ins: Ultra Related to the IMAP-Ultra instrument packet parsing Related to packet parsing or XTCE

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants