pySatlantic
Python package to unpack binary messages from Satlantic instruments.
This module provides a simple way to unpack binary messages from Satlantic instruments (e.g. HTSRB, HyperNav, HyperPro, HyperSAS, and Suna). This is likely not the fastest implementation of the Satlantic protocol. However, it is easy to use and fast enough to process hyperspectral spectrum from multiple sensors (e.g. HyperSAS & Es) on single board computers in real-time.
Installation
The package runs with python 3 and can be installed from the setup file or directly with pip.
# Installation through setup file
python setup.py install
# Installation through pip
pip install pySatlantic
Convert binary files recorded with SatView to CSV
The module can be used to convert raw files recorded with SatView to CSV files.
python -m pySatlantic [-h] [-v] [--version] [-i] cal src
or directly from the installed module
python -m pySatlantic.__main__ [-h] [-v] [--version] [-i] cal src
positional arguments: cal Calibration file. src Raw file to decode and calibrate.
optional arguments: -h, --help show this help message and exit -v, --verbose Enable verbosity. --version Prints version information. -i, --immersed Apply immersion coefficients.
Integrate in other software
The class Instrument provides key methods to handle the binary frames from Satlantic instruments
read_calibration_file/read_calibration_dir/read_sip_file: Parse calibration file(s) needed to unpack and calibrate binary frames.find_frame: Find known frame in a binary arrayparse_frame: Unpack binary frame and apply calibration fit to convert data in scientific units
The class Instrument support the immersed flag for each sensor independently. The immersion flag is accessible through Instrument.cal[<frame_header>].immersed with frame_header being the sensor to be immersed or not.
The class BinReader helps to separate individual frames looking for the registration bytes b'SAT'. An example of usage of that class is SatViewRawToCSV which converts a raw file recorded with SatView into a CSV file.
Sensors Tested
List of frames and associated calibration files tested:
- Es:
- HED
- HSE
- HyperSAS
- HLD
- HSL
- pySAS Tower
- UMTWR
- HTSRB
- HSD
- HST
- THS
- HyperPro
- HPE
- HPL
- MPR
- PED
- PLD
- SATBB2F
- SATFLCD
- HyperNAV
- SATXDZ
- SATXLZ
- SATXCZ
- SATYCZ
- OCR-504
- SATDI4
- NMEA
- $GPRMC
Some functionalities of the Satlantic protocol are not implemented. Use GitHub Issues for feature requests.
Metadata
Release files for pySatlantic 0.4.3
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 |
|---|---|---|---|---|
| pysatlantic-0.4.3.tar.gz | 23.5 kB | Without provenance | Details for pysatlantic-0.4.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pysatlantic-0.4.3-py3-none-any.whl | Python 3 | none | any | Details for pysatlantic-0.4.3-py3-none-any.whl |
Total release size: 46.1 kB
Release files / pysatlantic-0.4.3.tar.gz
| Download URL | pysatlantic-0.4.3.tar.gz |
|---|---|
| Size | 23.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
375c8517fd29b73695eb5567c6b8bbec292799a84815c52d79d53946835df283
|
|
BLAKE2b-256 checksum How to use checksums |
d74a7f4aada54bd12ef141875854aa31a7692e8555947bc792ef2b8b9565ce2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / pysatlantic-0.4.3-py3-none-any.whl
| Download URL | pysatlantic-0.4.3-py3-none-any.whl |
|---|---|
| Size | 22.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0cddb966e33c259b95ca94b279eb116cd5d097069f565cff059afc207706483e
|
|
BLAKE2b-256 checksum How to use checksums |
75e6e63b4bc7da4011b1a0cc40b506c60a282050f8d2398e09f111a4155162c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for pySatlantic 0.4.3
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.