Skip to main content

SWAN wave model plugin for rompy

Project description


title: "Relocatable Ocean Modelling in PYthon (rompy)"

DOI GitHub Pages PyPI version GitHub Workflow Status (with event) PyPI - Downloads Code style: black PyPI - Python Version

Introduction

Relocatable Ocean Modelling in PYthon (rompy) is a modular Python library that aims to streamline the setup, configuration, execution, and analysis of coastal ocean models. Rompy combines templated model configuration with powerful xarray-based data handling and pydantic validation, enabling users to efficiently generate model control files and input datasets for a variety of ocean and wave models. The architecture centers on high-level execution control (ModelRun) and flexible configuration objects, supporting both persistent scientific model state and runtime backend selection. Rompy provides unified interfaces for grids, data sources, boundary conditions, and spectra, with extensible plugin support for new models and execution environments. Comprehensive documentation, example Jupyter notebooks, and a robust logging/formatting framework make rompy accessible for both research and operational workflows. Current model support includes SWAN and SCHISM, with ongoing development for additional models and cloud/HPC backends.

Key Features:

  • Modular architecture with clear separation of configuration and execution logic
  • Templated, reproducible model configuration using pydantic and xarray
  • Unified interfaces for grids, data, boundaries, and spectra
  • Extensible plugin system for models, data sources, backends, and postprocessors
  • Robust logging and formatting for consistent output and diagnostics
  • Example notebooks and comprehensive documentation for rapid onboarding
  • Support for local, Docker, and HPC execution backends

rompy is under active development—features, model support, and documentation are continually evolving. Contributions and feedback are welcome!

Documentation

See https://rom-py.github.io/rompy/

Code Formatting and Pre-commit Hooks

This repository enforces Python code formatting using black via the pre-commit framework.

To set up pre-commit hooks locally (required for all contributors)::

pip install pre-commit
pre-commit install

This will automatically check code formatting before each commit. To format your code manually, run::

pre-commit run --all-files

All code must pass black formatting before it can be committed or merged.

Versioning and Release

This project uses tbump for version management.

To bump the version, run::

tbump <new_version>

This will update the version in src/rompy/__init__.py, commit the change, and optionally create a git tag.

tbump is included in the development requirements (requirements_dev.txt).

For more advanced configuration, see tbump.toml in the project root.

Relevant packages

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

rompy_swan-0.10.0.tar.gz (136.6 kB view details)

Uploaded Source

Built Distribution

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

rompy_swan-0.10.0-py3-none-any.whl (126.4 kB view details)

Uploaded Python 3

File details

Details for the file rompy_swan-0.10.0.tar.gz.

File metadata

  • Download URL: rompy_swan-0.10.0.tar.gz
  • Upload date:
  • Size: 136.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rompy_swan-0.10.0.tar.gz
Algorithm Hash digest
SHA256 1befe7783ffdb299fba5dc1d2ef7141b584df8f3c5a7ff5166df3ab1bbe0c3ae
MD5 46a37004752a6b12f2faf5fc95ca71b9
BLAKE2b-256 783a0875d2e637d61cdc2d8617e30dded4b9568989d55793136e72e9651c1fa0

See more details on using hashes here.

Provenance

The following attestation bundles were made for rompy_swan-0.10.0.tar.gz:

Publisher: python-publish.yml on rom-py/rompy-swan

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

File details

Details for the file rompy_swan-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: rompy_swan-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 126.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rompy_swan-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe0b44e416ad61bdbb368b121a2ba44f235a74ceaaa4df2b318bee28434baa8d
MD5 2342fad8545ad3dc2d29e539a9220dcf
BLAKE2b-256 4b47a37ef68a74f05930d2a598507a68af3cb84e17bd107295750e922896bfdf

See more details on using hashes here.

Provenance

The following attestation bundles were made for rompy_swan-0.10.0-py3-none-any.whl:

Publisher: python-publish.yml on rom-py/rompy-swan

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