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.1.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.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pytritech-1.0.1.tar.gz
Algorithm Hash digest
SHA256 96458316f91fb364c782959bb80f845011e0c9793093c46cc0c25ab391b72930
MD5 64a3378d219e3ba419e22913d3447f1a
BLAKE2b-256 24898483f082aec7a6e345c4d458832585dc59180fa55111394c57506837a398

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pytritech-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db39c0f01fbb73ec137d02e74b7462fb9f19831a28a0d95b1d9ec1a80c989df8
MD5 30fefe3c951542f6d339ea634418f53d
BLAKE2b-256 e94b7fb2ee381d6913515f87bbaad71f6e6974ecf65aa70ce2e16b91fd1ed174

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