Skip to main content

eXtended Triton Format (XTF) file interface

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyxtf-1.4.2.tar.gz (24.9 kB view details)

Uploaded Source

Built Distribution

pyxtf-1.4.2-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

Details for the file pyxtf-1.4.2.tar.gz.

File metadata

  • Download URL: pyxtf-1.4.2.tar.gz
  • Upload date:
  • Size: 24.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pyxtf-1.4.2.tar.gz
Algorithm Hash digest
SHA256 739178848e7cb4f12f1f536651e24b7b07787e2dd29d4834c725678fa7858625
MD5 65c7c7bc7fe508c18ee3c4df8e27be37
BLAKE2b-256 c6696ffcf2bb6fba299611abc9e619e7cdaffa19f966baee7122843faf3494e2

See more details on using hashes here.

File details

Details for the file pyxtf-1.4.2-py3-none-any.whl.

File metadata

  • Download URL: pyxtf-1.4.2-py3-none-any.whl
  • Upload date:
  • Size: 26.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pyxtf-1.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8577626b2a0b4c02f17979cb37d7f748e476c526e7a1c3a9683c9e4fa568b39f
MD5 b77f7138789fdab5d5226418a3401bb4
BLAKE2b-256 8d4147baa4c214216c35b3522409e1f7cd7a21e80fe0c638a3a0be33f0f6de26

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page