There is a newer version of the record available.

Published March 23, 2021 | Version 1.0.1
Software Open

Source code for the global hydrological model HydroPy

  • 1. Helmholtz-Zentrum Geesthacht, Institute of Coastal Research

Description

Synopsis

HydroPy is a global hydrological model combining hydrological land surface processes and river routing. It is based on the older Max Planck Institut for Meteorologys Hydrology Model (MPI-HM), however it is fully revised and written in Python. This model is actively developed and will get regular updates. Currently, its development is founded by the Helmholtz-Zentrum Geesthacht and the DAAD project The Ocean's Alkalinity.

Motivation

While the older Fortran version of the MPI-HM is a very fast model, its development is hampered by an inflexible structure and a large overhead whenever new processes are implemented. Additionally, it only outputs service format data and time consuming post-processing is needed to produce netCDF files. The python version uses much more high-level routines and is strongly object-orienting enabling a much faster and easier development. HydroPy is the official successor of the MPI-HM.

Installation

HydroPy requires a python 3.x environment with numpy, netCDF4, xarray and termcolor packages installed. The most convinient way would be to setup an Anaconda installation and create a new environment dedicated to the hydropy model, e.g.

conda create -n hydropy numpy xarray netCDF4 termcolor

and switch to this environment using

conda activate hydropy

Run HydroPy

HydroPy is called from command line using the main function `./hydro.py`. Required options are the paths to a netCDF file containing meteorological forcing data and a setup file containing the path of the land surface conditions file, and optionally further path information and model parameters:

./hydro.py -f forcing.nc -s setup.ini

The forcing files has to provide the variables TSurf [K], Precip [kg m-2 s-1], and PET [kg m-2 s-1] at a temporal resolution of 1 day and a spatial resolution similar to the land surface conditions file.

The setup file needs to be constructed with one pair of options and values per line, separated by a colon, e.g.

para : hydropy_landsurface_parameter_v1.0.0.nc
opt1 : val1
opt2 : val2

A full list of all available options with either the default or user defined values (if set in the setup.ini file) can be printed with

./hydro.py -s setup.ini -p

Further options can be displayed with

hydro.py --help

Documentation and References

A documentation paper preprint is published in GMDD. A public version of the HydroPy Model and an example land surface parameter dataset at 0.5 degree can be found on Zenodo.

Contributors

  • Tobias Stacke (tobias.stacke@hzg.de)
  • Stefan Hagemann (stefan.hagemann@hzg.de)

License

HydroPy

Copyright (C) 2020-2021 Helmholtz-Zentrum Geesthacht

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Files

changelog.md

Files (195.8 kB)

Name Size Download all
md5:56d9589ff35469a6f28361d62a4a93ef
28.6 kB Download
md5:5e90161b9880ec776f570ddc673e0f8b
381 Bytes Preview Download
md5:649d7fa97d46a754254746d804ccc91f
17.8 kB Download
md5:c680d7bc66506a2067052274748c503f
33.7 kB Download
md5:873639f000107ca152124ab89bd0b49c
35.1 kB Download
md5:8779d5a1e6f74d3e7ba208a4bf2d747c
57.9 kB Download
md5:2f08147bf3cbdc628444efb471cd624c
3.9 kB Download
md5:f8202984c5cb265fba9c40b9bae2f964
6.5 kB Download
md5:84bdddce7ecc9c5da7a79621877c7f14
3.5 kB Preview Download
md5:a67d0fd1069906632d11118c4f216368
8.5 kB Download