CCSDSPy - IO Interface for Reading and Writing CCSDS Data in Python.
This community-developed package provides a Python interface for reading tightly packed bits in the Consultative Committee for Space Data Systems (CCSDS) format used by many NASA and ESA missions. The library is developed with requirements sourced from the community and extensive automated testing.
Used By
Do you know of other missions that use CCSDSPy? Let us know through a github issue!
Installation
To install ccsdspy
pip install ccsdspy
Usage Example
The following example shows how simple it is to read in fixed length CCSDS packets.
import ccsdspy
from ccsdspy import PacketField, PacketArray
pkt = ccsdspy.FixedLength([
PacketField(name='SHCOARSE', data_type='uint', bit_length=32),
PacketField(name='SHFINE', data_type='uint', bit_length=20),
PacketField(name='OPMODE', data_type='uint', bit_length=3),
PacketField(name='SPACER', data_type='fill', bit_length=1),
PacketField(name='VOLTAGE', data_type='int', bit_length=8),
PacketArray(
name='SENSOR_GRID',
data_type='uint',
bit_length=16,
array_shape=(32, 32),
array_order='C'
),
])
result = pkt.load('mypackets.bin')
Documentation
Our documentation is hosted on readthedocs and can be found here.
Getting Help
For more information or to ask questions about the library or CCSDS data in general, check out the CCSDSPy Discussion Board hosted through GitHub.
Acknowledging or Citing ccsdspy
If you use ccsdspy, it would be appreciated if you let us know and mention it in your publications. The code can be cited using the DOI provided by Zenodo. The continued growth and development of this package is dependent on the community being aware of it.
Code of Conduct
When interacting with this package, please behave consistent with the following Code of Conduct.
Metadata
Release files for ccsdspy 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ccsdspy-2.1.0.tar.gz | 8.0 MB | Without provenance | Details for ccsdspy-2.1.0.tar.gz |
Release files / ccsdspy-2.1.0.tar.gz
| Download URL | ccsdspy-2.1.0.tar.gz |
|---|---|
| Size | 8.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2841f9bd859f042ab3f4e404fdacd9b2cfcc38731dcbf476f261e60fe3fcd936
|
|
BLAKE2b-256 checksum How to use checksums |
4cd9f13ac136c715e982a6ed3afd9e36390361d365e469bfa8b38213c7f8d351
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for ccsdspy 2.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.