All Projects → kratzert → RRMPG

kratzert / RRMPG

Licence: MIT License
Rainfall-Runoff modelling playground

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to RRMPG

WMF
Watershed Modelling Framework
Stars: ✭ 22 (-60.71%)
Mutual labels:  hydrology, hydrological-modelling
wflow
A distributed hydrological modeling platform
Stars: ✭ 83 (+48.21%)
Mutual labels:  hydrology, hydrological-modelling
Batch-First
A JIT compiled chess engine which traverses the search tree in batches in a best-first manner, allowing for neural network batching, asynchronous GPU use, and vectorized CPU computations.
Stars: ✭ 27 (-51.79%)
Mutual labels:  numba
HydroData
An R 📦 for finding and getting geospatial earth systems data
Stars: ✭ 30 (-46.43%)
Mutual labels:  hydrology
pygeohydro
A part of HyRiver software stack for accessing hydrology data through web services
Stars: ✭ 47 (-16.07%)
Mutual labels:  hydrology
CWatM
CWatM represents one of the new key elements of IIASA’s Water Security program to assess water supply, water demand and environmental needs at global and regional level.
Stars: ✭ 30 (-46.43%)
Mutual labels:  hydrology
whiteboxgui
An interactive GUI for WhiteboxTools in a Jupyter-based environment
Stars: ✭ 94 (+67.86%)
Mutual labels:  hydrology
transonic
🚀 Make your Python code fly at transonic speeds!
Stars: ✭ 93 (+66.07%)
Mutual labels:  numba
NumbaLSODA
Python wrapper of LSODA (solving ODEs) which can be called from within numba functions.
Stars: ✭ 30 (-46.43%)
Mutual labels:  numba
antropy
AntroPy: entropy and complexity of (EEG) time-series in Python
Stars: ✭ 111 (+98.21%)
Mutual labels:  numba
Stormwater-Management-Model
Open Water Analytics Stormwater Management Model repository
Stars: ✭ 71 (+26.79%)
Mutual labels:  hydrology
NCCV
Short course on computer vision and image processing using Numba+CUDA+OpenCV
Stars: ✭ 22 (-60.71%)
Mutual labels:  numba
numba-dppy
Numba extension for Intel(R) XPUs
Stars: ✭ 26 (-53.57%)
Mutual labels:  numba
grblas
Python wrapper around GraphBLAS
Stars: ✭ 22 (-60.71%)
Mutual labels:  numba
glofrim
Globally Applicable Framework for Integrated Hydrological-Hydrodynamic Modelling (GLOFRIM)
Stars: ✭ 26 (-53.57%)
Mutual labels:  hydrology
EarthSim
Tools for working with and visualizing environmental simulations.
Stars: ✭ 61 (+8.93%)
Mutual labels:  hydrology
wetterdienst
Open weather data for humans
Stars: ✭ 190 (+239.29%)
Mutual labels:  hydrology
RivWidthCloudPaper
A Google Earth Engine based algorithm that extracts river centerlines and widths from satellite images
Stars: ✭ 62 (+10.71%)
Mutual labels:  hydrology
ESA
Easy SimAuto (ESA): An easy-to-use Power System Analysis Automation Environment atop PowerWorld Simulator Automation Server (SimAuto)
Stars: ✭ 26 (-53.57%)
Mutual labels:  numba
numbsql
Run Numba compiled functions into SQLite
Stars: ✭ 34 (-39.29%)
Mutual labels:  numba

Introduction

This repository is a work in progress repository.

Official documentation can be found here: http://rrmpg.readthedocs.io

Read the :ref:`Idea section <idea>` for further information about the background and aim of this project.

Idea

One of the fundamental parts of hydrology is rainfall-runoff-modelling. The task here is to model the response of a catchment to meteorological input data and to forecast the river discharge. There are different approaches to tackle the problem, namely: conceptual models, physical-based models and data-driven models.

Although this is taught at university, often hands-on experience is missing or is done on using very simple modelling approaches. One of the main reasons I see is, that most (at least the complex ones) hydrological models are implemented in Fortran but very few students of the field of hydrology know Fortran, when they first get in touch with RR-Models. So all they can probably do is simply apply a model to their data and play manually with parameter tuning, but not explore the model and see the effect of code changes.

This might be different if there would exist well performing implementations of hydrological models in a more simplistic and readable language, such as Python. What was hindering this step was always the speed of Python and the nature of RR-Models - they mostly have to be implemented using loops over all timesteps. And well, big surprise: Pure Python and for-loops is not the best combination in terms of performance.

This could be changed e.g. by using Cython for the hydrological model, but this again might hinder the code understanding, since Cython adds non-pythonic complexity to the code, which might be hard for beginners to understand and therefore play/experiment with the code.

Another option could be PyPy. The problem I see with PyPy is, that the user would be forced to install a different Python interpreter, while most I know of are quite comfortable using e.g. Anaconda.

Numba is another way to speed up array-oriented and math-heavy Python code but without changing the language/interpreter and just by few code adaptions. Using numba, the code stays easily readable and therefore better understandable for novices. I won't spend much time now on explaining how numba works, but I'll definitely add further information in the future. First performance comparisons between Fortran implementations and numba optimized Python code have shown, that the speed is roughly the same (Fortran is about ~1-2 times faster, using the GNU Fortran compiler).

Summary: The idea of this code repository is to provide fast (roughly the speed of Fortan) implementations of hydrological models in Python to make it easier to play and experiment with rainfall-runoff models.

You want to contribute?

At the moment I'm looking for a selection of hydrological models I'll implement in Python. If you want to see any (your?) model in this project, feel free to contact me. There is also a How to contribute section at the official documentation, were you can read more on the various ways you can contribute to this repository.

Contributors

I'll add later a better looking section to the official documentation. For now I list everybody, who contributed to this repository here:

  • Ondřej Čertík with pull request #3: Optimized Fortran code and compilation procedure for fair speed comparision.
  • Daniel Klotz with pull request #4 , #5 and #9: All spell checking.
  • Andrew MacDonald for providing HBV-Edu simulation data from the original MATLAB implementation (see ##10)
  • Martijn Visser with pull request #13 to update the unittest for pandas 1.0
  • Martin Gauch with pull request #14 to fix a bug in the HBV model, when running multiple parameter sets at once.

Contact

Raise an issue here in this repository or contact me by mail f.kratzert(at)gmail.com

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].