Skip to main content

A python library for reading and writing Olex plotlayer ('Ruter') files

Project description

pyxtf

A python library for writing Olex plotlayer ("Ruter") files including utility functions for converting decimal degrees to decimal minutes. Reading is planned implemented in the future.

License

Installation from pypi
pip3 install pyolex
Dependencies

The project has no major dependencies. Some examples may require more advanced dependencies like pandas.

Usage
Convert Decimal Degrees to Decimal Minutes (Olex-format)

Example code:

import pyolex

dd_coord = pyolex.DecimalDegreeCoord(61.6296187, 5.01738467)
min_coord = pyolex.decimal_degrees_to_decimal_minutes(dd_coord, precision=7)
print(min_coord.lat, min_coord.lon)

Output: 3697.777122 301.0430802

Make a towline

Example code:

import pyolex

start_lat, start_lon = (61.6296187, 5.01738467)
stop_lat, stop_lon = (61.6396187, 5.01538467)

start_coord = pyolex.DecimalDegreeCoord(start_lat, start_lon)
stop_coord = pyolex.DecimalDegreeCoord(start_lat, start_lon)

towline = pyolex.TowlineObject(plotset=1,linecolor=pyolex.Color.RED, tow_start_dd=start_coord, tow_stop_dd=stop_coord)

print(towline)

Output:

Rute Slepestrek
Rutetype Strek
Linjefarge Rød
Plottsett 1
3697.777122 301.0430802 1675377136 Garnstart
3698.377122 300.9230802 1675377136 Garnstopp
Contribution

If you are missing functionality or find bugs, either submit a patch, or be prepared to send example "Ruter"-file when submitting the bug-report.

License

pyolex is open-source and licensed under GNU GPL, Version 3.

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

pyolex-0.0.1.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

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

pyolex-0.0.1-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file pyolex-0.0.1.tar.gz.

File metadata

  • Download URL: pyolex-0.0.1.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for pyolex-0.0.1.tar.gz
Algorithm Hash digest
SHA256 79fb9f4a3b3de683b7c226e6a0fdf72097f67c6c8b1d9443f9dbe781c24d0a71
MD5 5e54b7ea1ba00292043c8423b3489127
BLAKE2b-256 cbdfc18a4132a13d0735255372e7c31438cb25e5cd44e6fec5a1d4611c635e17

See more details on using hashes here.

File details

Details for the file pyolex-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyolex-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for pyolex-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 276ba44739c3e34a19c418c0b242a3b1cb86f0415ed6549d3ecbad016518d6fb
MD5 776a795269c9a32744d14ad0ded922d8
BLAKE2b-256 efbf7b30d8b1f16dbee2fd2760c0de5680f2f09c140188826202243eb569df81

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