Reference/API¶
ccsdspy Package¶
IO Interface for Reading CCSDS Data in Python.
Functions¶
|
Split a stream of mixed APIDs into separate streams by APID. |
Classes¶
|
Define a fixed length packet to decode binary data. |
|
An array contained in a packet, similar to |
|
A field contained in a packet. |
|
Define a variable length packet to decode binary data. |
Class Inheritance Diagram¶
ccsdspy.converters Module¶
This class hold the implementation of the converter system, which applies post-process to decoded packet fields. This post-processing includes applying linear/polynomial calibration curves, dictionary replacement, and time parsing.
Classes¶
During conversion a value was encountered which did not have a corresponding key in the replacement dictionary. |
|
Base class for all converter objects. |
|
|
Post-processing conversion which applies calibration using a series of coefficients ordered from highest power to intercept. |
|
Post-processing conversion which applies a linear (y=mx+b) transformation. |
|
Post-processing conversion for applying dictionary replacement of integers to strings. |
|
Post-processing conversion for converting timestamp fields to datetime instances, computed using offset(s) from a reference time. |
|
Post-processing conversion which converts byte arrays or multi-byte numbers to strings in numeric representations such as binary, hexadecimal, or octal. |
Class Inheritance Diagram¶
ccsdspy.utils Module¶
Utils for the CCSDSPy package.
Functions¶
|
Count the number of packets in a file and check if there are any missing bytes in the last packet. |
|
Parse the APID of a packet from the bytes associated with a packet's primary header. |
|
Parse the number of bytes in a packet from the bytes associated with a packet's primary header. |
|
Iterate through packets as raw bytes objects, in the order they appear in a file. |
|
Read primary header fields and return contents as a dictionary of arrays. |
|
Split a stream of mixed APIDs into separate streams by APID. |
|
Retrieve a list of bytes objects corresponding to each packet in a file. |