Skip to main content

Runoff Generation Research - a process-based hydrological toolbox model in Python

Project description

Runoff Generation Research - a process-based hydrological toolbox model in Python

Documentation status Test status DOI

RoGeR, Runoff Generation Research, is a process-based hydrological model that can be applied from plot to catchment scale. RoGeR is written in pure Python, which facilitates model setup and model workflows. We want to enable high-performance hydrological modelling with a clear focus on flexibility and usability.

RoGeR supports a NumPy backend for small-scale problems, and a high-performance JAX backend with CPU and GPU support. Parallel computation is available via MPI and supports distributed execution on any number of nodes/CPU cores.

Inspired by Veros.

Documentation

We strongly recommend to visit our documentation.

Features

RoGeR - 25 square meter resolved simulations of the Eberbaechle catchment, Germany (2019-2022)

(25 square meter resolved simulations of the Eberbaechle catchment, Germany (2019-2022), click for better quality)

RoGeR provides

  • grid-based 1D models
  • offline solute transport with several StorAge selection (SAS) functions
  • solute-specific biogeochemical processes
  • implementations of capillary-driven infiltration (Green-Ampt)
  • several pre-implemented diagnostics such as averages or collecting values at given time interval, variable time aggregation, travel time distributions and residence time distributions (written to netCDF4 output)
  • pre-configured idealized and realistic setups that are ready to run and easy to adapt
  • accessibility and extensibility due to high-level programming language Python

Basic usage

To run RoGeR, you need to set up a model --- i.e., specify which settings and model domain you want to use. This is done by subclassing the RogerSetup base class in a setup script that is written in Python. A good place to start is the SVAT Tutorial:

After setting up your model, all you need to do is call the model setup:

# move into the folder containing the model script
python svat.py

For more information on using RoGeR, have a look at our documentation.

Contributing

Contributions to RoGeR are always welcome, no matter if you spotted an inaccuracy in the documentation, wrote a new setup, fixed a bug, or even extended RoGeR' core mechanics. There are 2 ways to contribute:

  1. If you want to report a bug or request a missing feature, please open an issue. If you are reporting a bug, make sure to include all relevant information for reproducing it (ideally through a minimal code sample).
  2. If you want to fix the issue yourself, or wrote an extension for Roger - great! You are welcome to submit your code for review by committing it to a repository and opening a pull request. However, before you do so, please check the contribution guide for some tips on testing and benchmarking, and to make sure that your modifications adhere with our style policies. Most importantly, please ensure that you follow the PEP8 guidelines, use meaningful variable names, and document your code using Google-style docstrings.

How to cite

If you use Roger in scientific work, please consider citing the following publication:

@article{
	title = {Roger v3.0.3  a process-based hydrologic toolbox model in {Python}},
	volume = {...},
	doi = {https://doi.org/10.5194/gmd-2023-118},
	journal = {Geosci. Model Dev.},
	author = {Schwemmle, Robin, and Leistert, Hannes, and Weiler, Markus},
	year = {2023},
	pages = {...},
}

Or have a look at our documentation for more publications involving Roger.

TODO

  • implement runoff and channel routing (e.g. kinematic wave or hydraulic approach)
  • implement distributed model with run-on infiltration
  • use coarser spatial and temporal resolution for computation of groundwater-related processes
  • implement baseflow in the groundwater routine. requires surface water depth.
  • implement surface runoff generation for gravity-driven infiltration
  • implement gravity-driven infiltration and percolation and include it into the transport routine
  • implement time-variant sowing and harvesting of crops

License

This software can be distributed freely under the MIT license. Please read the LICENSE for further information. © 2024, Robin Schwemmle (robin.schwemmle@hydrology.uni-freiburg.de)

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

roger-3.0.9.tar.gz (422.8 kB view details)

Uploaded Source

Built Distribution

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

roger-3.0.9-py3-none-any.whl (451.6 kB view details)

Uploaded Python 3

File details

Details for the file roger-3.0.9.tar.gz.

File metadata

  • Download URL: roger-3.0.9.tar.gz
  • Upload date:
  • Size: 422.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.10

File hashes

Hashes for roger-3.0.9.tar.gz
Algorithm Hash digest
SHA256 3503678d37081b3c4a8810570432b5809d54c2357b9585b38a66e69787bcf964
MD5 13d24cc894ba7e37adb472d4e7638fdb
BLAKE2b-256 2d2c01e3217ecc940d4198b40c06d57b97d0d15a9223ceac96666a1838dbd0f3

See more details on using hashes here.

File details

Details for the file roger-3.0.9-py3-none-any.whl.

File metadata

  • Download URL: roger-3.0.9-py3-none-any.whl
  • Upload date:
  • Size: 451.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.10

File hashes

Hashes for roger-3.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 9f30af1d56543a97540598c2e4eabc4775e382ac3d35d5dfb58e2584e7d304c3
MD5 bee9095e9baedb385683aa6ae52cc00b
BLAKE2b-256 ae90daeec7b78cc948b8dc5fee25d37e2a9c17eccfe323773bc289e01847844d

See more details on using hashes here.

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