Skip to main content

PolarRoute: Long-distance maritime polar route planning taking into account complex changing environmental conditions

Project description

PolarRoute

Dev Status Open In Colab Documentation PyPI - Python Version Release Tag Issues License Test Status Coverage Ruff

PolarRoute is a long-distance maritime polar route planning package, able to take into account complex and changing environmental conditions. It allows the construction of optimised routes through three main stages: discrete modelling of the environmental conditions using a non-uniform mesh, the construction of mesh-optimal paths, and physics informed path smoothing. In order to account for different vehicle properties we construct a series of data-driven functions that can be applied to the environmental mesh to determine the speed limitations and fuel requirements for a given vessel and mesh cell. The environmental modelling component of this functionality is provided by the MeshiPhi library.

Installation

PolarRoute is available from PyPI and the latest version can be installed by running:

pip install polar-route

Alternatively you can install PolarRoute by downloading the source code from GitHub:

git clone https://github.com/bas-amop/PolarRoute
cd PolarRoute
pip install -e .

Use of -e is optional, based on whether you want to be able to edit the installed copy of the package.

In order to run the test suite you will also need to include the test dependency group:

pip install --group test

NOTE: Some features of the PolarRoute package require GDAL to be installed. Please consult the documentation for further guidance.

Usage

PolarRoute operates by creating an environmental mesh, adding vessel performance characteristics, and optimizing routes between waypoints. Environmental meshes are created using MeshiPhi, which is installed automatically when installing PolarRoute.

Quick Start (CLI)

# Create environmental mesh
create_mesh examples/environment_config/grf_example.config.json -o mesh.json

# Add vessel performance model
add_vehicle examples/vessel_config/SDA.config.json mesh.json -o vessel_mesh.json

# Optimize routes
optimise_routes examples/route_config/traveltime.config.json vessel_mesh.json examples/waypoints_example.csv -o routes.json

Quick Start (Python API)

from meshiphi.mesh_generation.mesh_builder import MeshBuilder
from polar_route.vessel_performance.vessel_performance_modeller import VesselPerformanceModeller
from polar_route.route_planner.route_planner import RoutePlanner

# Create environmental mesh (using MeshiPhi)
mesh_builder = MeshBuilder(env_config)
mesh_json = mesh_builder.build_environmental_mesh().to_json()

# Add vessel performance to mesh
vpm = VesselPerformanceModeller(mesh_json, vessel_config)
vpm.model_accessibility()
vpm.model_performance()
vessel_mesh_json = vpm.to_json()

# Calculate routes
rp = RoutePlanner(vessel_mesh_json, route_config)
rp.compute_routes(waypoints_path)
routes_json = rp.to_json()

For more details, see the CLI documentation, examples, and the examples/ directory.

Required Data sources

PolarRoute has been built to work with a variety of open-source atmospheric and oceanographic data sources. For testing and demonstration purposes it is also possible to generate artificial Gaussian Random Field data.

A full list of supported data sources and their associated dataloaders is given in the 'Dataloader Overview' section of the MeshiPhi manual

Developers

Samuel Hall, Harrison Abbot, Ayat Fekry, George Coombs, David Wyld, Thomas Zwagerman, Jonathan Smith, Maria Fox, and James Byrne

License

This software is licensed under a MIT license, but request users cite our publication:

Jonathan D. Smith, Samuel Hall, George Coombs, James Byrne, Michael A. S. Thorne, J. Alexander Brearley, Derek Long, Michael Meredith, Maria Fox (2022) Autonomous Passage Planning for a Polar Vessel. arXiv, https://arxiv.org/abs/2209.02389

For more information please see the attached LICENSE file.

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

polar_route-1.1.10.tar.gz (77.4 kB view details)

Uploaded Source

Built Distribution

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

polar_route-1.1.10-py3-none-any.whl (95.6 kB view details)

Uploaded Python 3

File details

Details for the file polar_route-1.1.10.tar.gz.

File metadata

  • Download URL: polar_route-1.1.10.tar.gz
  • Upload date:
  • Size: 77.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for polar_route-1.1.10.tar.gz
Algorithm Hash digest
SHA256 8378ec614a2abf6fcc000da20248dd77c425e3c1301ce95a9506e0172d65135e
MD5 96b474d1b54ce518aa485261e527a02a
BLAKE2b-256 ef88f3b7e2380878f82c0617703790ab9793595b60530e89d48239c749052b4e

See more details on using hashes here.

Provenance

The following attestation bundles were made for polar_route-1.1.10.tar.gz:

Publisher: pypi.yml on bas-logist/PolarRoute

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file polar_route-1.1.10-py3-none-any.whl.

File metadata

  • Download URL: polar_route-1.1.10-py3-none-any.whl
  • Upload date:
  • Size: 95.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for polar_route-1.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 2c20e02d31ad9f8ab7c6080682405f6b1335f48201529efd57f66402f33f5201
MD5 cb91b0954167f4bfde1e6977af2a046e
BLAKE2b-256 24c612c5b88135fbeef692329b82f99c6c64e749b46d78f1359eb8e759cfab6c

See more details on using hashes here.

Provenance

The following attestation bundles were made for polar_route-1.1.10-py3-none-any.whl:

Publisher: pypi.yml on bas-logist/PolarRoute

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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