Skip to main content

rompy-swan

PyPI version Tests Documentation Python versions

rompy-swan sets up and runs the SWAN spectral wave model from Python or YAML. It is the SWAN plugin of rompy, which provides the run period, data sources, model runs and backends shared by all models.

SWAN reads a command file, INPUT, whose commands come in a fixed order. rompy-swan describes each SWAN command as a validated Python object and writes the command file and its input files:

  • One component per SWAN command: CGRID, BOUNDSPEC, GEN3, BLOCK and the others, with the same names and options as in the SWAN user manual.
  • Input grids and boundaries from data: bathymetry, wind, currents and water levels from gridded datasets, and boundary spectra from wave model output.
  • Checks before SWAN runs: invalid options and combinations SWAN refuses are caught when the configuration is built.
  • Times from the run: in nonstationary mode, computation and output times come from the run period.

Documentation

Installation

pip install rompy-swan

SWAN itself is not included. The public Docker image ghcr.io/rom-py/swan runs the generated workspaces, with NetCDF output; see Running SWAN.

Contributing

See the contributing guide.

License

Apache Software License 2.0. See LICENSE.

Metadata

Release files for rompy-swan 0.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rompy-swan 0.12.0
File Size Uploaded Provenance Actions
rompy_swan-0.12.0.tar.gz 147.5 kB With provenance Details for rompy_swan-0.12.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rompy-swan 0.12.0
File Interpreter ABI Platform Actions
rompy_swan-0.12.0-py3-none-any.whl Python 3 none any Details for rompy_swan-0.12.0-py3-none-any.whl

Total release size: 278.0 kB

Release files / rompy_swan-0.12.0.tar.gz

Download URL rompy_swan-0.12.0.tar.gz
Size 147.5 kB
Tags Source
SHA-256 checksum
How to use checksums
39f96348c242fdf113ca72333f35e03be9e321f55cdd6d26060ad213a5ce2065
BLAKE2b-256 checksum
How to use checksums
7e7b68cce77fc2ea364adcb10b053538fba053a8547eba6eab163e0e7d9d7c0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Release files / rompy_swan-0.12.0-py3-none-any.whl

Download URL rompy_swan-0.12.0-py3-none-any.whl
Size 130.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ec75abb9989177990d9a4f887adf35a5bac5fefc1f17bada556ff08fba3bcd7
BLAKE2b-256 checksum
How to use checksums
744f17b2c385382269465bc0b7f9e9208ccc198a4e57b35a317004cb64a7ffba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Security for rompy-swan 0.12.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rompy_swan-0.12.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page