Installation¶
You need two things: the rompy-xbeach Python package, which writes XBeach workspaces, and XBeach itself, which runs them.
rompy-xbeach¶
rompy-xbeach needs Python 3.10 or later. It installs rompy and its other dependencies.
Optional extras¶
| Extra | Adds | Needed for |
|---|---|---|
extra |
rompy-binary-datasources | Using an in-memory xarray dataset as a data source (SourceCRSDataset) |
docs |
rompy-docs | Building these docs |
dev |
pytest, ruff, coverage | Development |
XBeach¶
rompy-xbeach writes the XBeach input files but does not include XBeach. There are two ways to run it.
Docker (recommended)¶
The public image ghcr.io/rom-py/xbeach contains XBeach built with NetCDF output, in serial and MPI builds. You only need Docker.
| Tag | Contents |
|---|---|
1.24.6057-halloween-beta |
The XBeach release v1.24.6057 "Halloween" (BETA) |
trunk-r<revision>, e.g. trunk-r6147 |
The XBeach trunk at that SVN revision |
latest |
The newest trunk-r<revision> image |
Pin a release or trunk tag for reproducible runs, since latest moves when a new trunk revision is published. Every image is tested with workspaces generated by rompy-xbeach before it is published. Running XBeach shows how to use it.
Your own XBeach¶
Download or build XBeach from Deltares (see the XBeach manual for compilation), and make sure the xbeach executable is on your PATH. Build it with NetCDF support, since rompy-xbeach sets NetCDF output by default.
Check the installation¶
import rompy
import rompy_xbeach
print(f"rompy {rompy.__version__}, rompy-xbeach {rompy_xbeach.__version__}")
Next: Your first model.