pyxtf
A python library for reading eXtended Triton Format (XTF) files (revision 42]
Installation from pypi
pip3 install pyxtf
Installation from source
Clone or download the repository and run the following command. This requires setuptools to be installed.
python3 setup.py install
Dependencies
The project depends on setuptools and numpy. Matplotlib is used for plotting, but is not required for basic functionality.
Usage
import pyxtf
input_file = 'yourfile.xtf'
(file_header, packets) = pyxtf.xtf_read(input_file, verbose=True)
The file_header is of type XTFFileHeader, which is a c-structure that starts off every XTF file. The packets object is a dictionary of the packets that follow the file header. The key is of type XTFHeaderType, which is an enumerated class. The value is a list of objects that belong to that type of header type. E.g usage might look as the following.
...
# Retrieve a list of all sonar packets
sonar_packets = packets[pyxtf.XTFHeaderType.sonar]
# Print the first sonar packet (ping)
print(sonar_packets[0])
Examples can be found in the examples directory on github.
Contribution
If you find an XTF-file that does not work, either submit a patch or new packet type, or be prepared to send an example XTF-file when submitting the bug-report.
Metadata
Release files for pyxtf 1.5.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 |
|---|---|---|---|---|
| pyxtf-1.5.0.tar.gz | 25.4 kB | Without provenance | Details for pyxtf-1.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyxtf-1.5.0-py3-none-any.whl | Python 3 | none | any | Details for pyxtf-1.5.0-py3-none-any.whl |
Total release size: 52.1 kB
Release files / pyxtf-1.5.0.tar.gz
| Download URL | pyxtf-1.5.0.tar.gz |
|---|---|
| Size | 25.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7960b64d13b810b69b08fff1117cc2dbf204575ddc97027f8e3f727e7b5f977
|
|
BLAKE2b-256 checksum How to use checksums |
d05d68a83eefe5801349fa281c11d170de57022ae0f6b9db1895d7ba106773a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Release files / pyxtf-1.5.0-py3-none-any.whl
| Download URL | pyxtf-1.5.0-py3-none-any.whl |
|---|---|
| Size | 26.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9dc964ba40d2630e04534a65b05f682b0f0dacb27b7c8be29ca83441023a9576
|
|
BLAKE2b-256 checksum How to use checksums |
7faaa9892938e7a591f4fa131b262cc22cb28d78a6626fc8450b6158efbbf5f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Security for pyxtf 1.5.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.