Skip to main content

A Python interface to Tritech Gemini Sonar files.

Project description

PyTritech

A python interface to the Tritech GLF files. This project is part of the WATER Group research project at SMRU, University of St Andrews.

Installation

To use this library in your own python program we recommend including it as part of a python virtual environment.

pip install pytritech

or, directly from this repository

pipt install https://github.com/onidaito/pytritech.git

Getting started

Once installed, you can begin to read pytritech files as follows:

from pytritech.glf import GLF 
import os

assert os.path.exists(glf_path)

with GLF(glf_path) as glf:
    image_data, image_size = glf.extract_image(glf.images[20])

Documentation

Documentation is available at https://onidaito.github.io/pytritech/.

The documentation can be generated using mkdocs as follows:

mkdocs serve

Tests

In order to run the various tests you will need the test data files, which are held in a separate repository. These are automatically downloaded by pytest when the tests are run. If the test takes a while to finish on the first time around, this is why.

There are a number of test dependencies: pillow, gitpython, pyinstrument etc. These can be found in the pyproject.toml file.

You will need to install the git lfs extension for large data files first. Follow the instructions at https://git-lfs.com/.

run the following from the top of the pytritech directory:

pytest

Roadmap (or things we haven't implemented yet)

As of version 1.0.0, only the status and image records can be read. Records such as serial, analog video, V4 or generic are not yet supported. In addition, this library is only concerned with GLF files, not controlling the Tritech sonar itself.

In the future, we hope to add support for these remaining record types, but no timeline has been set.

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

pytritech-1.0.2.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytritech-1.0.2-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file pytritech-1.0.2.tar.gz.

File metadata

  • Download URL: pytritech-1.0.2.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for pytritech-1.0.2.tar.gz
Algorithm Hash digest
SHA256 8b53cf61bf736e5465793fa3ccbddf887945ac2944b4b19e06a86dbdcef0a97f
MD5 0a64116ad0a8fc89fc20180f0643cd51
BLAKE2b-256 478b34245e61be64501ccea848e264f4ed23ba3b3f57e52de8fe951203fb41ac

See more details on using hashes here.

File details

Details for the file pytritech-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pytritech-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for pytritech-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f1c79122cc7084f2974fbee89bd65322d48b0f1835bc3bb9edb16dfb969342c3
MD5 70b04ee1da3d505dd08af2eddad83749
BLAKE2b-256 2ca4b1bad1c34ed525f9da55014680de227cc3ab31b212d2e8da2ab84e04a197

See more details on using hashes here.

Supported by

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