py-wave-runup
A Python module which makes it easy for coastal engineers and scientists to test and use various empirical wave runup models which have been published in literature.
https://github.com/chrisleaman/py-wave-runup
Category: Hydrosphere
Sub Category: Coastal and Reefs
Keywords
beach beaches coastal coastal-engineering coastal-modelling
Keywords from Contributors
hurricane imagery noaa storms
Last synced: about 15 hours ago
JSON representation
Repository metadata
Empirical wave runup models implemented in Python
- Host: GitHub
- URL: https://github.com/chrisleaman/py-wave-runup
- Owner: chrisleaman
- Created: 2019-04-09T03:07:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-10-01T06:02:21.000Z (3 months ago)
- Last Synced: 2025-11-13T13:51:43.884Z (about 1 month ago)
- Topics: beach, beaches, coastal, coastal-engineering, coastal-modelling
- Language: Python
- Size: 2.88 MB
- Stars: 41
- Watchers: 2
- Forks: 17
- Open Issues: 21
- Releases: 12
-
Metadata Files:
- Readme: README.rst
README.rst
=================
Python Wave Runup
=================
::
Empirical wave runup models implemented in Python for coastal engineers and scientists.
.. image:: https://zenodo.org/badge/180274721.svg
:target: https://zenodo.org/badge/latestdoi/180274721
.. image:: https://img.shields.io/pypi/v/py-wave-runup.svg
:target: https://pypi.python.org/pypi/py-wave-runup
.. image:: https://readthedocs.org/projects/py-wave-runup/badge/?version=latest
:target: https://py-wave-runup.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://codecov.io/gh/chrisleaman/py-wave-runup/branch/master/graph/badge.svg
:target: https://codecov.io/gh/chrisleaman/py-wave-runup
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/ambv/black
Contents
----------
- `Installation`_
- `Usage`_
- `Documentation`_
- `Background`_
- `Contributing`_
- `Citation`_
- `License`_
- `References`_
Installation
------------
Installation of ``py-wave-runup`` can be done with uv or pip:
.. code:: bash
# Using uv (recommended)
uv add py-wave-runup
# Using pip
pip install py-wave-runup
Usage
-----
The following `wave runup models`_ are available for use:
- ``models.Stockdon2006``: The most commonly cited and widely used runup model.
- ``models.Power2018``: Based on the Gene-Expression Programming technique.
- ``models.Holman1986``: Incorporated wave setup using Duck, NC measurements.
- ``models.Nielsen2009``: Based on runup measurements from NSW, Australia.
- ``models.Ruggiero2001``: Based on runup measurements from dissipative Orgeon beaches.
- ``models.Vousdoukas2012``: Based on runup from European Atlantic coast
- ``models.Senechal2011``: Based on extreme storm condition at Truc Vert, France
- ``models.Beuzen2019``: Gaussian Process (GP) runup model
- ``models.Passarella2018``: Genetic Programming (infragravity and total) swash model
To get calculate runup, setup and swash, define your offshore conditions in your
selected runup model then you can access each parameter:
.. code:: python
from py_wave_runup import models
model_sto06 = models.Stockdon2006(Hs=4, Tp=12, beta=0.1)
model_sto06.R2 # 2.54
model_sto06.setup # 0.96
model_sto06.sinc # 2.06
model_sto06.sig # 1.65
.. _wave runup models: https://py-wave-runup.readthedocs.io/en/develop/models.html
Documentation
-------------
Documentation is located at https://py-wave-runup.readthedocs.io.
Background
----------
Wave runup refers to the final part of a wave's journey as it travels from offshore
onto the beach. It is observable by anyone who goes to the beach and watches the edge
of the water "runup" and rundown the beach. It is comprised of two components:
- **setup**: the height of the time averaged superelevation of the mean water level
above the Still Water Level (SWL)
- **swash**: the height of the time varying fluctuation of the instantaneous water
level about the setup elevation
Setup, swash and other components of Total Water Level (TWL) rise are shown in this
handy figure below.
.. image:: https://raw.githubusercontent.com/chrisleaman/py-wave-runup/master/docs/_static/VitousekDoubling2017Fig1.jpg
:width: 500 px
:align: center
..
| Figure from Vitousek et al. (2017) [#vit17]_
Wave runup can contribute a significant portion of the increase in TWL in coastal
storms causing erosion and inundation. For example, Stockdon et al. (2006) [#sto06]_
collated data from numerous experiments, some of which showed wave runup 2% excedence
heights in excess of 3 m during some storms.
Given the impact such a large increase in TWL can have on coastlines, there has been
much research conducted to try improve our understanding of wave runup processes.
Although there are many processes which can influence wave runup (such as nonlinear
wave transformation, wave reflection, three-dimensional effects, porosity, roughness,
permeability and groundwater) [#cem06]_, many attempts have been made to derive
empirical relatinoships based on easily measurable parameters. Typically, empirical
wave runup models include:
- **Hs**: significant wave height
- **Tp**: peak wave length
- **beta**: beach slope
This python package attempts to consolidate the work done by others in this field and
collate the numerous empirical relationships for wave runup which have been published.
Contributing
------------
As there are many different empirical wave models out there, contributions are most
welcome. If you don't feel confident about changing the code yourself, feel free to open
a `Github issue`_ and let us know what could be added. Otherwise, follow the steps below
to create a Pull Request:
.. _Github issue: https://github.com/chrisleaman/py-wave-runup/issues
1. Fork it (https://github.com/chrisleaman/py-wave-runup/fork)
2. Create the development environment:
- Using `uv`_ (recommended): ``uv sync --dev``
- For pip: ``pip install -e ".[dev]"``
3. Create your feature branch (``git checkout -b feature/fooBar``)
4. Install pre-commit hooks for automatic formatting (``uv run pre-commit install``)
5. Add your code!
6. Add and run tests (``uv run pytest``)
7. Update and check documentation compiles (``uv run sphinx-build -M html ".\docs" ".\docs\_build"``)
8. Commit your changes (``git commit -am 'Add some fooBar'``)
9. Push to the branch (``git push origin feature/fooBar``)
10. Create a new Pull Request
.. _uv: https://docs.astral.sh/uv/
Publishing
----------
To build and publish the package to PyPI:
.. code:: bash
# Build the package
uv build
# Check the package (optional)
uv run --active twine check dist/*
# Publish to Test PyPI first (recommended)
uv publish --publish-url https://test.pypi.org/legacy/
# Publish to PyPI
uv publish
Citation
--------
If this package has been useful to you, please cite the following DOI: https://doi.org/10.5281/zenodo.2667464
License
--------
Distributed under the GNU General Public License v3.
References
----------
.. [#vit17] Vitousek, Sean, Patrick L. Barnard, Charles H. Fletcher, Neil Frazer,
Li Erikson, and Curt D. Storlazzi. "Doubling of Coastal Flooding Frequency
within Decades Due to Sea-Level Rise." Scientific Reports 7, no. 1 (May 18,
2017): 1399. https://doi.org/10.1038/s41598-017-01362-7.
.. [#sto06] Stockdon, Hilary F., Robert A. Holman, Peter A. Howd, and Asbury H. Sallenger.
"Empirical Parameterization of Setup, Swash, and Runup." Coastal Engineering 53,
no. 7 (May 1, 2006): 573-88. https://doi.org/10.1016/j.coastaleng.2005.12.005
.. [#cem06] United States, Army, and Corps of Engineers. Coastal Engineering Manual.
Washington, D.C.: U.S. Army Corps of Engineers, 2006.
Owner metadata
- Name: Chris Leaman
- Login: chrisleaman
- Email:
- Kind: user
- Description: Postdoctoral researcher at UNSW Sydney. Researching coastal erosion, remote sensing and early warning systems.
- Website: https://www.leaman.io
- Location: Brisbane, Australia
- Twitter:
- Company: Water Research Laboratory (UNSW)
- Icon url: https://avatars.githubusercontent.com/u/7591552?u=d2a80d61d1a53bb6b6a50012efe7357c985fa104&v=4
- Repositories: 11
- Last ynced at: 2024-06-11T15:36:43.012Z
- Profile URL: https://github.com/chrisleaman
GitHub Events
Total
- Issues event: 3
- Watch event: 4
- Delete event: 5
- Issue comment event: 8
- Push event: 2
- Pull request event: 7
- Fork event: 1
- Create event: 5
Last Year
- Issues event: 3
- Watch event: 3
- Delete event: 5
- Issue comment event: 8
- Push event: 2
- Pull request event: 7
- Fork event: 1
- Create event: 5
Committers metadata
Last synced: 11 days ago
Total Commits: 232
Total Committers: 9
Avg Commits per committer: 25.778
Development Distribution Score (DDS): 0.31
Commits in past year: 2
Committers in past year: 1
Avg Commits per committer in past year: 2.0
Development Distribution Score (DDS) in past year: 0.0
| Name | Commits | |
|---|---|---|
| Chris Leaman | c****n@g****m | 160 |
| dependabot-preview[bot] | 2****] | 41 |
| Evan B. Goldstein | e****n | 7 |
| Tomas Beuzen | t****n@g****m | 7 |
| dependabot[bot] | 4****] | 5 |
| Christopher Leaman | z****9@a****u | 5 |
| dependabot[bot] | s****t@d****m | 4 |
| mandi thran | m****n@u****u | 2 |
| Matthew Conlin | 3****t | 1 |
Committer domains:
- unsw.edu.au: 1
- dependabot.com: 1
- ad.unsw.edu.au: 1
Issue and Pull Request metadata
Last synced: about 2 months ago
Total issues: 19
Total pull requests: 235
Average time to close issues: 9 months
Average time to close pull requests: 2 months
Total issue authors: 7
Total pull request authors: 7
Average comments per issue: 0.68
Average comments per pull request: 1.29
Merged pull request: 59
Bot issues: 0
Bot pull requests: 218
Past year issues: 1
Past year pull requests: 12
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 1
Past year pull request authors: 1
Past year average comments per issue: 2.0
Past year average comments per pull request: 0.0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 12
Top Issue Authors
- chrisleaman (13)
- FrenzyExists (1)
- fcaponi (1)
- pyup-bot (1)
- avnibu (1)
- conlin-matt (1)
- Alerovere (1)
Top Pull Request Authors
- dependabot-preview[bot] (134)
- dependabot[bot] (84)
- pyup-bot (12)
- mandithran (2)
- conlin-matt (1)
- ebgoldstein (1)
- TomasBeuzen (1)
Top Issue Labels
- enhancement (9)
Top Pull Request Labels
- dependencies (218)
- python (12)
- security (5)
Package metadata
- Total packages: 2
-
Total downloads:
- pypi: 74 last-month
- Total docker downloads: 122
- Total dependent packages: 0 (may contain duplicates)
- Total dependent repositories: 1 (may contain duplicates)
- Total versions: 23
- Total maintainers: 1
proxy.golang.org: github.com/chrisleaman/py-wave-runup
- Homepage:
- Documentation: https://pkg.go.dev/github.com/chrisleaman/py-wave-runup#section-documentation
- Licenses:
- Latest release: v0.1.12 (published 3 months ago)
- Last Synced: 2025-12-01T09:06:21.481Z (25 days ago)
- Versions: 12
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 5.409%
- Average: 5.591%
- Dependent repos count: 5.773%
pypi.org: py-wave-runup
Empirical wave runup models implemented in Python
- Homepage: https://github.com/chrisleaman/py-wave-runup
- Documentation: https://py-wave-runup.readthedocs.io
- Licenses: GPL-3.0+
- Latest release: 0.1.12 (published 3 months ago)
- Last Synced: 2025-12-03T15:02:27.676Z (23 days ago)
- Versions: 11
- Dependent Packages: 0
- Dependent Repositories: 1
- Downloads: 74 Last month
- Docker Downloads: 122
-
Rankings:
- Dependent packages count: 7.373%
- Forks count: 9.146%
- Stargazers count: 11.421%
- Average: 19.454%
- Dependent repos count: 22.233%
- Downloads: 47.099%
- Maintainers (1)
Dependencies
- black ^21.6b0 develop
- codecov ^2.0 develop
- coverage ^5.0 develop
- matplotlib ^3.4.2 develop
- pre-commit ^2.9 develop
- pytest ^6.0 develop
- pytest-cov ^2.8 develop
- pytest-runner ^5.1 develop
- scikit-learn ^0.24.2 develop
- sphinx ^4.0 develop
- sphinx-gallery ^0.9.0 develop
- tomlkit ^0.7.0 develop
- tox ^3.13 develop
- joblib ^0.14.1
- numpy ^1.16
- pandas ^1.0
- python ^3.7 || ^3.8 || ^3.9
- black <20.0,>=18.3
- codecov ==2.
- coverage ==5.
- joblib ==0.
- numpy ==1.
- pandas ==0.
- pre-commit ==1.
- pytest ==5.
- pytest-cov ==2.
- pytest-runner ==5.
- scikit-learn ==0.
- sphinx ==2.
- sphinx-gallery ==0.
- tomlkit ==0.
- tox ==3.
- alabaster 1.0.0
- babel 2.17.0
- backports-tarfile 1.2.0
- black 25.9.0
- certifi 2025.8.3
- cffi 2.0.0
- charset-normalizer 3.4.3
- click 8.3.0
- codecov 2.1.13
- colorama 0.4.6
- contourpy 1.3.2
- contourpy 1.3.3
- coverage 7.10.7
- cryptography 46.0.1
- cycler 0.12.1
- docutils 0.21.2
- exceptiongroup 1.3.0
- fonttools 4.60.0
- id 1.5.0
- idna 3.10
- imagesize 1.4.1
- importlib-metadata 8.7.0
- iniconfig 2.1.0
- jaraco-classes 3.4.0
- jaraco-context 6.0.1
- jaraco-functools 4.3.0
- jeepney 0.9.0
- jinja2 3.1.6
- joblib 1.5.2
- keyring 25.6.0
- kiwisolver 1.4.9
- markdown-it-py 4.0.0
- markupsafe 3.0.2
- matplotlib 3.10.6
- mdurl 0.1.2
- more-itertools 10.8.0
- mypy-extensions 1.1.0
- nh3 0.3.0
- numpy 2.2.6
- numpy 2.3.3
- packaging 25.0
- pandas 2.3.2
- pathspec 0.12.1
- pillow 11.3.0
- platformdirs 4.4.0
- pluggy 1.6.0
- py-wave-runup 0.1.12
- pycparser 2.23
- pygments 2.19.2
- pyparsing 3.2.5
- pytest 8.4.2
- pytest-cov 7.0.0
- python-dateutil 2.9.0.post0
- pytokens 0.1.10
- pytz 2025.2
- pywin32-ctypes 0.2.3
- readme-renderer 44.0
- requests 2.32.5
- requests-toolbelt 1.0.0
- rfc3986 2.0.0
- rich 14.1.0
- roman-numerals-py 3.1.0
- scikit-learn 1.7.2
- scipy 1.15.3
- scipy 1.16.2
- secretstorage 3.4.0
- six 1.17.0
- snowballstemmer 3.0.1
- sphinx 8.1.3
- sphinx 8.2.3
- sphinx-gallery 0.19.0
- sphinxcontrib-applehelp 2.0.0
- sphinxcontrib-devhelp 2.0.0
- sphinxcontrib-htmlhelp 2.1.0
- sphinxcontrib-jsmath 1.0.1
- sphinxcontrib-qthelp 2.0.0
- sphinxcontrib-serializinghtml 2.0.0
- threadpoolctl 3.6.0
- tomli 2.2.1
- tomlkit 0.13.3
- twine 6.2.0
- typing-extensions 4.15.0
- tzdata 2025.2
- urllib3 2.5.0
- zipp 3.23.0
Score: 11.617663787105803