Skip to main content

Oceanographic Research Cruise Planning System

Project description

CruisePlan

๐ŸŒŠ Comprehensive Oceanographic Research Cruise Planning System โ€” Streamlining the process of planning oceanographic research expeditions.

Tests Python 3.9+ License: MIT Documentation

Background & Context

The Challenge: Oceanographic cruise planning involves complex route and timing calculations, frequent unit conversions (nautical miles <-> kilometers, decimal degrees <-> degrees decimal minutes), and rapid plan updates. Different people may need different formats--spreadsheets for quick calculations, degrees/decimal minutes for navigation, kilometers for station spacing, knots for voyage timing. Using historical station locations may be preferred, but can be tricky to access.

  • Fragmented Tools: Scattered spreadsheets, manual calculations, custom code snippets
  • Time-Intensive Processes: Semi-manual station planning, timing calculations, and proposal formatting
  • Error-Prone Workflows: Manual depth lookups, coordinate formatting, and schedule validation

The Solution: CruisePlan provides an integrated, semi-automated system for an efficient cruise-planning workflow.

Target Audience

Primary Users:

  • ๐Ÿ”ฌ Oceanographic Researchers: Principal investigators designing research expeditions
  • ๐Ÿ“Š Students: Graduate students learning cruise planning methodology
  • ๐Ÿ“‹ Proposal Writers: Scientists preparing funding proposals with detailed cruise plans

Research Domains: The primary development of CruisePlan is for physical oceanographers, with CTD stations, mooring deployments and glider operations as default. However, it is possible to incorporate any type of point, line or area operation of a ship with a specified manual duration based on your own experience.

CruisePlan transforms complex cruise planning from a weeks-long manual process into a structured, validated workflow that produces proposal-ready documentation with some checks on operational feasibility.

โš ๏ธ Breaking Changes in v0.3.0: Commands cruiseplan download and cruiseplan pandoi have been removed. Parameter names shortened (--bathymetry-* โ†’ --bathy-*). See MIGRATION_v0.3.0.md for migration guide and CHANGELOG.md for complete changes.

โš ๏ธ Breaking Changes in v0.3.3: YAML configuration now uses transects: instead of transits: for scientific line operations and waypoints: instead of stations: for point operations.

Disclaimer: This software is provided "as is" without warranty of any kind. Users are responsible for validating all calculations, timing estimates, and operational feasibility for their specific cruise requirements. Always consult with marine operations staff and verify all outputs before finalizing cruise plans.

๐Ÿ“˜ Full documentation available at:
๐Ÿ‘‰ https://ocean-uhh.github.io/cruiseplan/


๐Ÿš€ What's Included

  • โœ… Interactive station planning: Click-to-place stations on bathymetric maps with real-time depth feedback
  • ๐Ÿ““ PANGAEA integration: Browse and incorporate past cruise data for context
  • ๐Ÿ“„ Multi-format outputs: Generate NetCDF, LaTeX reports, PNG maps, KML files, and CSV data
  • ๐Ÿ” Cruise validation: Automated checking of cruise configurations and operational feasibility
  • ๐ŸŽจ Documentation: Sphinx-based docs with API references and usage guides
  • ๐Ÿ“ฆ Modern Python packaging: Complete with testing, linting, and CI/CD workflows
  • ๐Ÿงพ Scientific citation support: CITATION.cff for academic attribution

Project structure

For a detailed breakdown of the package architecture and module descriptions, see the Project Structure Documentation.

cruiseplan/
โ”œโ”€โ”€ .github/
โ”‚   โ””โ”€โ”€ workflows/              # GitHub Actions for tests, docs, PyPI
โ”œโ”€โ”€ docs/                       # Sphinx-based documentation
โ”‚   โ”œโ”€โ”€ source/                 # reStructuredText + MyST Markdown + _static
โ”‚   โ””โ”€โ”€ Makefile                # for building HTML docs
โ”œโ”€โ”€ notebooks/                  # Example notebooks and demos
โ”œโ”€โ”€ cruiseplan/                 # Main Python package
โ”‚   โ”œโ”€โ”€ calculators/            # Distance, duration, routing calculators
โ”‚   โ”œโ”€โ”€ cli/                    # Command-line interface modules
โ”‚   โ”œโ”€โ”€ core/                   # Core cruise planning logic
โ”‚   โ”œโ”€โ”€ data/                   # Bathymetry and PANGAEA data handling
โ”‚   โ”œโ”€โ”€ interactive/            # Interactive station picking tools
โ”‚   โ”œโ”€โ”€ output/                 # Multi-format output generators
โ”‚   โ”œโ”€โ”€ processing/             # Configuration processing and enrichment
โ”‚   โ”œโ”€โ”€ utils/                  # Utilities and coordinate handling
โ”‚   โ””โ”€โ”€ validation/             # Schema validation and configuration models
โ”œโ”€โ”€ tests/                      # Comprehensive pytest test suite
โ”‚   โ”œโ”€โ”€ cli/                    # CLI command tests
โ”‚   โ”œโ”€โ”€ core/                   # Core logic tests
โ”‚   โ”œโ”€โ”€ fixtures/               # Test data and configurations
โ”‚   โ”œโ”€โ”€ integration/            # Integration and workflow tests
โ”‚   โ””โ”€โ”€ unit/                   # Unit tests by module
โ”œโ”€โ”€ data/                       # Bathymetry datasets
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ .pre-commit-config.yaml
โ”œโ”€โ”€ CITATION.cff                # Citation file for academic use
โ”œโ”€โ”€ CONTRIBUTING.md             # Contribution guidelines
โ”œโ”€โ”€ LICENSE                     # MIT license
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ pyproject.toml              # Modern packaging config
โ”œโ”€โ”€ requirements.txt            # Core package dependencies
โ”œโ”€โ”€ requirements-dev.txt        # Development and testing tools
โ””โ”€โ”€ environment.yml             # Conda environment specification

๐Ÿ”ง Installation

Option 1: Install from PyPI (Most Users)

For general use, install the latest stable release from PyPI. Note: CruisePlan is in active development (0.x versions) with occasional breaking changes.

# Create virtual environment
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate

# Install CruisePlan
pip install cruiseplan

Option 2: Install Latest from GitHub

For the latest features and bug fixes:

# Create virtual environment
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate

# Install directly from GitHub
pip install git+https://github.com/ocean-uhh/cruiseplan.git

Option 3: Development Installation

For development or contributing to CruisePlan:

# Clone the repository
git clone https://github.com/ocean-uhh/cruiseplan.git
cd cruiseplan

# Option A: Using conda/mamba
conda env create -f environment.yml
conda activate cruiseplan
pip install -e ".[dev]"

# Option B: Using pip with virtual environment
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install -e ".[dev]"

Dependencies: Core packages are listed in requirements.txt, development tools in requirements-dev.txt. The conda environment.yml loads from these files automatically.

To run tests:

pytest tests/

To build the documentation locally:

cd docs
make html

๐Ÿ“š Learn More


๐Ÿค Contributing

Contributions are welcome! Please see our Contributing Guidelines for details on how to get started.

For information about planned improvements and development priorities, see our Development Roadmap.


๐Ÿ™ Acknowledgments & Citation

The original timing algorithms were developed by Yves Sorge and Sunke Trace-Kleeberg. CruisePlan initial software development by Yves Sorge and redesigned by Eleanor Frajka-Williams.

If you use CruisePlan in your research, please cite it using the information in CITATION.cff.


Related Software

The following cruise planning tools may also be of interest (Disclaimer: We have not tested these):

Python/GIS:

Python:

  • dreamcoat - Personal tools for cruise planning

R:

MATLAB:

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

cruiseplan-0.3.4.tar.gz (31.6 MB view details)

Uploaded Source

Built Distribution

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

cruiseplan-0.3.4-py3-none-any.whl (206.7 kB view details)

Uploaded Python 3

File details

Details for the file cruiseplan-0.3.4.tar.gz.

File metadata

  • Download URL: cruiseplan-0.3.4.tar.gz
  • Upload date:
  • Size: 31.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cruiseplan-0.3.4.tar.gz
Algorithm Hash digest
SHA256 eaedd5599070ebd992897d25a266f3b99c59d5492d0f662cffd42c8316e5bd3e
MD5 1e6f3e62535248383ecebd0662ec3d81
BLAKE2b-256 f09cd16e5e2ed519470fceb91b50eb740329754e0daf278894224273da6d9c28

See more details on using hashes here.

Provenance

The following attestation bundles were made for cruiseplan-0.3.4.tar.gz:

Publisher: pypi.yml on ocean-uhh/cruiseplan

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

File details

Details for the file cruiseplan-0.3.4-py3-none-any.whl.

File metadata

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

File hashes

Hashes for cruiseplan-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 93a30063bb0a2ead857e81180a454e9d83385f70f82fcf82e93e35b8c6ad9089
MD5 35f52aec5a85be16acf37d83e4973578
BLAKE2b-256 ca5c87b529142abb6e9ade75e745604127da10166c853b76f38f659a5687900c

See more details on using hashes here.

Provenance

The following attestation bundles were made for cruiseplan-0.3.4-py3-none-any.whl:

Publisher: pypi.yml on ocean-uhh/cruiseplan

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