Skip to main content

Dev version for a HBV hydrological model using BMI for eWaterCycle.

Project description

HBV-BMI

PyPI

Basic Model Interface (BMI) HBV model intended for use with eWaterCycle. See said repo for installation instructions.

HBV (Hydrologiska Byråns Vattenbalansavdelning) is a conceptual hydrological model. For more information on its history, see this paper.

This current implementation is without a snow reservoir, as shown below. (Image from the course ENVM1502 - river basin Hydrology (Markus Hrachowitz).) model_layout.png

Actual eWatercycle model wrapper can be found on GitHub with accompanying documentation

Feel free to fork/duplicate this repo and publish your own (better) version.

separate use

Can also be used as a standalone package in theory - not advised:

pip install HBV

Then HBV becomes available as one of the eWaterCycle models

from HBV import HBV

model = HBV()

Be aware of the non-intuitive BMI implementation as this package is designed to run in a docker container.

Changelog

v1.0.0

v1.0.1 - v1.0.3

  • various bug fixes etc. (last time using live as a dev branch -> bad practice)

v1.1.0

  • added support for updating memory vector on the fly for Data assimilation.

V1.1.1

  • bug fix in T_lag value: can now only be set an integer larger than 1: otherwise makes no physical sense
  • bug fix where wrong types were given, warning messages cleaned up and code attempted to be made more readable

V1.2.0

  • pretty big issue with setting values fixed - won't affect most use but will cause issues for Data Assimilation
  • use opportunity to name all HBV packages/naming/images to 1.2.0

V1.3.0

  • Change Q_m to Q in order to better integrate data assimilation & just makes more sense.

v1.3.1

  • Fix bug in time indexing

v1.3.2

  • typo in update updating_dict_var_obj: was getting values wrong

V1.4.0

  • adding snow reservoir

V1.4.1

  • bug fix in naming of values

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

hbv-1.4.1.tar.gz (532.4 kB view details)

Uploaded Source

Built Distribution

hbv-1.4.1-py2.py3-none-any.whl (12.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file hbv-1.4.1.tar.gz.

File metadata

  • Download URL: hbv-1.4.1.tar.gz
  • Upload date:
  • Size: 532.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for hbv-1.4.1.tar.gz
Algorithm Hash digest
SHA256 95146776baba4a01a7ed826d7d6549be25173480e9f10ce30baa5f387febca5d
MD5 329a2836f9372a22614a9ddb8385e229
BLAKE2b-256 b8e4b1ef9b2c635e804c3117d1137eb94b40f2e74f9b691897c79ab412b85f52

See more details on using hashes here.

File details

Details for the file hbv-1.4.1-py2.py3-none-any.whl.

File metadata

  • Download URL: hbv-1.4.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for hbv-1.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 885ac080b110286590cf4ea4a3366e60ef7e8c64ea0d3c43bab199ce1088e925
MD5 865eb7291259ee7e751f03f682869a9d
BLAKE2b-256 2e372189ca81b1a5eb487553c67ebf406d68ca6cb1159aab8c987b150285f60f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page