Skip to content

Releases: hydpy-dev/hydpy

HydPy 5.0.3

14 Sep 12:03
Compare
Choose a tag to compare

This release includes minor adjustments to make HydPy 5.0 compatible with older versions of NumPy (tested against NumPy 1.22).

HydPy 5.0.2

13 Sep 10:39
Compare
Choose a tag to compare

This release contains minor technical improvements compared to 5.0.1 and, more importantly, some adjustments to recent site-package changes (e.g. of NumPy). Its wheels are also available for Python 3.11, the latest Python version.

HydPy 5.0.1

18 Nov 21:24
Compare
Choose a tag to compare

Fix passing an application model's module to the constructor of class Rule of module calibtools. 62d6d9b

HydPy 5.0.0

25 Aug 07:51
Compare
Choose a tag to compare

We are pleased to announce the release of HydPy 5.0. It includes technical improvements, freshly implemented hydrological models and extended data-assimilation support. Also, it marks the first step of our efforts towards a higher degree of model modularity, with which we strive to increase the compatibility of the process abstractions of different model families. In the following, we highlight the most notable changes.

First of all, one "feature" that does not relate to HydPy 5.0 directly but to a policy established during its development: We try to shift at least the most relevant content-related discussions between the core members to the GitHub issue system. Sometimes we discuss online; other times, we only document discussion results. This policy helps us to keep track of different ideas and how things evolved, and - as important - it allows others to trace the development of HydPy better and to participate.

New models and model improvements:

  • The new model H-Land (HBV96-SC) is a slight modification of the long-available H-Land (HBV96) model. Like H-Land (HBV96), H-Land (HBV96-SC) works largely like the conceptional HBV96 model but represents runoff concentration with a linear storage cascade instead of a triangular-shaped Unit-Hydrograph. We implemented the storage cascade as an array of states, allowing us to address it in state-based data assimilation efforts.
  • H-Land (HBV96-SC/PREVAH) combines concepts from HBV96 and PREVAH, which is also a successor of the original HBV model. All processes "above the soil" (input data correction, interception, snowmelt) and "inside the soil" (evaporation, generation of effective precipitation), as well as the handling of water areas, are identical with H-Land (HBV96) (and so with HBV96). Most processes "below the soil" agree with PREVAH (runoff generation and concentration). We intended to implement H-Land (HBV96-SC/PREVAH) to improve the drought and small summer-event simulation of H-Land (HBV96) with process equations suitable for state-based data assimilation methods. We are pretty happy with its performance so that it will soon replace the current low-flow forecasting model for the river Rhine of the German Federal Institute of Hydrology. #67
  • H-Land (HBV96-SC/COSERO) combines concepts from HBV96 and COSERO, which is another successor of the original HBV model. We developed it for the same reason and similar to H-Land (HBV96-SC/PREVAH), except that most processes "below the soil" agree with COSERO. In our first very preliminary studies in a few Rhine sub-catchments, its results were a little less convincing than those of H-Land (HBV96-SC/PREVAH), but we still need to examine it in more detail. #68
  • All members of the HydPy-H-Land model family now include the new land cover type SEALED, allowing for simulating surface runoff from sealed surfaces. #71
  • We improved the snow module of all HydPy-H-Land with the alpine regions of the river Rhine in mind. The changes include (1) a seasonally varying day-degree factor for considering the effect of the annual cycle of global radiation on snow melt, (2) the further subdivision of hydrological response units into snow classes for modelling the effects of small-scale snow-depth variability, and (3) the redistribution of snow due to gravitational and wind forcing. #70
  • We introduced the HydPy-Musk model family, providing Muskingum-like methods, which are finite difference solutions to the routing problem. Its member Musk (classic) replaces HydPy-H-Stream Version 1. It implements the "classic" Muskingum approach (relying on the storage coefficient k and the weighting coefficient x). Alternatively, it supports defining the working equation coefficients via the parameters lag and damp like HydPy-H-Stream Version 1 did in the style of the IHMS implementation of HBV96. Ambitious users can also calculate the coefficients themselves. The second available member is Musk (MCT), which implements a form of the Muskingum-Cunge routing method developed by Todini. Currently, it is hard-coupled to the Manning-Strickler formula, applied on a trapezoidal channel profile. #85
  • Until HydPy 4.0, our HydPy-Dam models did neither consider precipitation nor evaporation explicitly. Instead, the surrounding "land models" had to calculate these properties (because of our early efforts to strive for consistency with LARSIM). Now, all HydPy-Dam members take measured or calculated time series of precipitation and potential evaporation into account (for consistency with the old behaviour, one must currently supply time series with zero values). #51 #69
  • We added the HydPy-Exch model family, which opens new paths for coupling different model instances in one project. Its first member Exch (weir) allows for a gradient-based, bidirectional coupling of the inputs/outputs of other model instances and is inspired by the IHMS implementation of HBV96. So far, we have used it in combination with Dam (controlled lake) to model, for example, the connectivity of the Swiss lakes Morat, Neuchatel, and Bienne via relatively short canals, through which water can flow in both directions depending on the actual water level differences of the respective lakes. #69
  • The new model family HydPy-Meteo targets more fine-grained modularisation regarding meteorological "preprocessing". Meteo (global radiation, FAO) and Meteo (global radiation, LARSIM) calculate global radiation based on (possibly measured) sunshine duration and rely on the equations documented for the FAO grass reference evaporation method and the LARSIM model, respectively. Meteo (sunshine duration, FAO) and Meteo (sunshine duration, LARSIM) handle the inverse case and calculate sunshine duration based on global radiation (possibly stemming from meteorological simulations). This refactorisation allows, for example, to calculate potential grass evaporation with Evap (FAO) using LARSIM-like global radiation estimates or to calculate actual Penman-Monteith evaporation with HydPy-L-Land (Penman-Monteith, Knauf) using FAO-like global radiation estimates. #81
  • We added more methods for checking that our model implementations satisfy the water balance equation, especially for our HBV- and LARSIM-like models. All checks are part of the automatic test system, and we fully report their results in the online documentation.
  • We standardised the units of many variables. So, for example, we now generally use $hPa$ for pressure terms and $W/m²$ for energy fluxes. This change might introduce some deviations from the original model descriptions in the literature but helps to avoid mistakes when setting up projects including different types of models. #81
  • The new variable type FactorSequence allows for a better grouping of a model's different time series-related variables. We use it, for example, to separate state-like meteorological factors like air temperature from more flux-like variables like precipitation.

General and technical aspects:

  • We dropped support for Python 3.6 (which reached its end of life) and started supporting Python 3.10 (the most recent Python release) instead.
  • The processes for building (based on setuptools, not distutils) and testing (based on nox) are now up-to-date. One benefit for users is that creating HydPy wheels for alternative platforms becomes easy. #74
  • HydPy 5.0 is compatible with the HydPy-OpenDA adapter 1.0 and includes numerous changes to satisfy its new functionalities. Please see the adapter's documentation and release notes for further information.
  • Using NetCDF files now comes with a cleaner interface (mainly by removing of a few options that proved more irritating than helpful). Also, it now works both for left and right timestamps (meaning, the time points specified in a NetCDF file can relate to the start or the end of the respective time interval). #59 #84
  • Reading and writing data "just in time", which helps save RAM in massive projects, now relies on the NetCDF format and is much more efficient...
Read more

HydPy 4.0.1 (supplemental data)

01 Sep 14:49
Compare
Choose a tag to compare

In HydPy 4.0.0, one needs to trigger the automatical generation of the sequence alias modules inputs.py and outputs.py by hand.
Since HydPy 4.0.1, they are already included in our binary distributions.

HydPy 4.0.0

01 Sep 14:48
Compare
Choose a tag to compare

It's been a while since we released HydPy 3.1, and much has happened since then. The following listing points out only the highlights of the improvements HydPy 4.0 comes with.

Regarding the model collection:

Note that, due to their extension, lland_v1 and lland_v2 now require some additional parameters.

Be aware that we might change some aspects of lland_v3 later. We will probably unify some parameter names and possibly even modify some equations.

General features:

  • We now test HydPy from Python 3.6 to 3.9 (we think about dropping 3.6, but postpone this for the sake of keeping compatibility with the arcpy library of ArcGIS).
  • The command "pip install hydpy" now installs HydPy and all its requirements in one step.
  • Our AppVeyor workflow now creates an "HydPy-Installer" based on Python 3.9 for Windows. This is for users who want to experiment with HydPy without installing a complete Python environment or want to have a robust executable for just executing certain tasks (e.g. flood forecasting).
  • We improved many features of the online documentation. Many new automatically generated links help to browse through the different pages (for example, to directly jump from a parameter to the methods/equation requiring this parameter). Additionally, we start providing the documentation of several HydPy versions in parallel (for now, version 4.0 and our current development status, the "master branch"; others will follow).
  • HydPy now provides some server functionalities. The reason is to simplify the online coupling to non-Python software like OpenDA (for more information, see the separate documentation of our OpenDA-Adapter).
  • We added and extended lots of "user-comfort" functionalities concerning calibration, evaluation, plotting, and much more.

Scientifical and technical aspects:

  • We finally achieved a test coverage of 100 %. Our Travis-CI workflow does not accept any changes with incomplete coverage. And everything is tested "publically" in the HTML documentation (using doctests). This is a really significant milestone, as it makes introducing bugs much harder and allows the hydrological community to check all implemented equations easily "by hand". We are not aware of any other hydrological modelling system with such an eager and transparent test system.
  • We improved the tables and figures showing the results of the model integration tests. We hope they now better guide us into the depth of such huge models as lland_v3 and help to understand their details and possible implementation deficits. Our Travis-CI workflow automatically recreates all figures for each new release, so you can always be sure they are up-to-date.
  • The source code is now consistently formatted with black.
  • We started to add type hints to the source code following PEP 484. These improve the readability for code-analysis tools (and often also for humans) and improve IDE functions like auto-completion and bug-analysis. So far, these cover most of the features directly accessible to the user. We continue working on this.
  • We increased the performance of HydPy, mainly regarding initialisation. Two examples are the "lazy importing" of optional site packages that are seldom required (finished) and the caching of pre-compiled byte-code (still room for improvements).

Most of the listed (and unlisted) improvements were implemented on behalf of the German Federal Institute of Hydrology and the Forecasting Centre of the German federal state of Saxony (Landeshochwasserzentrum).

Fix warning messages

19 Dec 21:48
Compare
Choose a tag to compare

HydPy informs the user when trying to read missing or incomplete observed or simulated time series data into Node objects. Due to some recent changes, this feature became unreliable. Version 3.1.1 fixes this problem and adds explanations and tests to the online documentation, to (hopefully) prevent this from happening again.

More complete time series checking

14 Dec 10:19
Compare
Choose a tag to compare

HydPy now checks for missing values in e. g. meteorological input time series data. This behaviour can be enabled/disabled by setting option checkseries to True/False.

Additionally, XML file implementations of the XML schema file config.xsd are now easier to maintain regarding version changes and general options like checkseries.

Make matplotlib an optional dependency

07 Dec 09:28
Compare
Choose a tag to compare

From now on, installing matplotlib is not required for using (most features of) HydPy anymore.

Simplify XML namespaces

26 Nov 23:05
Compare
Choose a tag to compare

For convenience, XML namespaces are now valid download links, and some name discrepancies result in warnings only instead of errors.