© Institute of Urban Water Management and Landscape Water Engineering, Graz University of Technology and Markus Pichler
eHYD Tools
Reading and analyzing hydro(geo)logic time series from the Austrian government's "ehyd.gv.at" platform.
Various tools for exporting and analyzing >10a rain time-series from the ehyd.gv.at platform of the Austian government.
If you are interested in a statistical heavy rain analysis like on (Ö)Kostra, take a look at my other python package intensity_duration_frequency_analysis which is compatible with this package.
Install
The script is written in Python3. (use a version > 3.5)
Windows
You have to install python (i.e. the original python from the website).
The following commands show the usage for Linux/Unix systems.
To use these features on Windows you have to add python -m before each command
and you have to add the path to your python binary to the environment variables 1.
There is also an option during the installation to add python to the PATH automatically. 2
Linux/Unix
Python is pre-installed on most operating systems (as you probably knew).
Required python packages
Packages required for this program will be installed with pip during the installation process and can be seen in the requirements.txt file.
flowchart TD
classDef missing stroke-dasharray: 5
argh["argh<br>0.31.3"]
certifi["certifi<br>2023.7.22"]
charset-normalizer["charset-normalizer<br>3.3.0"]
contourpy["contourpy<br>1.3.0"]
cycler["cycler<br>0.12.1"]
fonttools["fonttools<br>4.43.1"]
idna["idna<br>3.4"]
kiwisolver["kiwisolver<br>1.4.5"]
matplotlib["matplotlib<br>3.8.0"]
numpy["numpy<br>1.26.1"]
packaging["packaging<br>24.1"]
pandas["pandas<br>2.2.3"]
pillow["Pillow<br>10.1.0"]
pyparsing["pyparsing<br>3.1.1"]
python-dateutil["python-dateutil<br>2.8.2"]
pytz["pytz<br>2023.3.post1"]
requests["requests<br>2.31.0"]
six["six<br>1.16.0"]
tzdata["tzdata<br>2023.3"]
urllib3["urllib3<br>2.0.6"]
contourpy -- "≥1.23" --> numpy
matplotlib -- "≥0.10" --> cycler
matplotlib -- "≥1.0.1" --> contourpy
matplotlib -- "≥1.0.1" --> kiwisolver
matplotlib -- "≥1.21,<2" --> numpy
matplotlib -- "≥2.3.1" --> pyparsing
matplotlib -- "≥2.7" --> python-dateutil
matplotlib -- "≥20.0" --> packaging
matplotlib -- "≥4.22.0" --> fonttools
matplotlib -- "≥6.2.0" --> pillow
pandas -- "≥1.26.0" --> numpy
pandas -- "≥2.8.2" --> python-dateutil
pandas -- "≥2020.1" --> pytz
pandas -- "≥2022.7" --> tzdata
python-dateutil -- "≥1.5" --> six
requests -- "≥1.21.1,<3" --> urllib3
requests -- "≥2,<4" --> charset-normalizer
requests -- "≥2.5,<4" --> idna
requests -- "≥2017.4.17" --> certifi
Fresh install
pip install ehyd-tools
Add the following tags to the command for special options:
--user: To install the package only for the local user account (no admin rights needed)--upgrade: To update the package
Alternative Repositories
Usage for general time-series data
Examples Jupyter notebooks for Extended python API
links only work on GitHub!
Usage for high-res precipitation time-series
To start the script use following commands in the terminal/Prompt
ehyd_tools
Commandline tool
With the -h (help) flag you can see the complete functionality of the tool.
ehyd_tools -h
usage: __main__.py [-h] [-id ID] [--input INPUT] [--max10a] [--start START] [--end END] [--add_gaps] [--to_csv] [--to_parquet] [--plot] [--statistics] [--meta] [--unix] optional arguments: -h, --help show this help message and exit -id ID the id number for the station from the ehyd.gv.at platform --input INPUT path to the rain input file including the filename --max10a consider only 10 years with the most availability (for clipping the data) --start START custom start time (Format="YYYY-MM-DD") for clipping the data --end END custom end time (Format="YYYY-MM-DD") for clipping the data --add_gaps save a gaps-table as a csv-file --to_csv save the time-series as csv-file (to the current directory if the id is used or in the directory of the input-file) --to_parquet save the time-series as parquet-file (to the current directory if the id is used or in the directory of the input- file) - parquet is a much faster as csv to read and write --plot save a bar-plot with monthly sums and availability as a png- file --statistics save the basic statistics (sum, max & min) as a txt-file --meta save the meta-data presented in ehyd as a txt-file --unix export the csv files with a "," as separator and a "." as decimal sign (otherwise ";" as separator and a "," as decimal sign will be used)
The high-res precipitation stations
links only work on GitHub!
List of ehyd-stations with the id-number and the label
Examples
links only work on GitHub!
Example Jupyter notebook for the commandline
Example Jupyter notebook for the python api
Example results files
links only work on GitHub!
Example Plot
links only work on GitHub!
Metadata
Release files for ehyd-tools 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ehyd_tools-0.1.8.tar.gz | 85.4 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ehyd_tools-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 172.7 kB
Release files / ehyd_tools-0.1.8.tar.gz
| Download URL | ehyd_tools-0.1.8.tar.gz |
|---|---|
| Size | 85.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3ffa9627c7814cd7fab07195403efc4604b7e6cd15a955cae46eb86415fdba9
|
|
BLAKE2b-256 checksum How to use checksums |
f011a1256dea1d53221826586e449fa6f95eba1fe138e4f77b095ad0359748fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 25, 2025.
Transparency logRelease files / ehyd_tools-0.1.8-py3-none-any.whl
| Download URL | ehyd_tools-0.1.8-py3-none-any.whl |
|---|---|
| Size | 87.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
265bd94feffbb647064dbe30cccde5da980d3ffb92c8d06a2384ea103efacde5
|
|
BLAKE2b-256 checksum How to use checksums |
1cdacd2aefa5abc43b75fcb487bb72b0cf784d39f012dc82064a0ad2fd2c060e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 25, 2025.
Transparency logSecurity for ehyd-tools 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for ehyd_tools-0.1.8.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 25, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.