Skip to main content

Reading and analyzing hydro(geo)logic time series from the Austrian government's "ehyd.gv.at" platform.

Project description

© Institute of Urban Water Management and Landscape Water Engineering, Graz University of Technology and Markus Pichler

eHYD Tools

license PyPI

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 ^path1.

There is also an option during the installation to add python to the PATH automatically. ^path2

python_install

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.

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 python skript

Example results files

links only work on GitHub!

Data-gaps in the series

Meta-data of the series

Example Plot

links only work on GitHub!

Regenhöhenlinien

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

ehyd-tools-0.1.dev27.tar.gz (65.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ehyd_tools-0.1.dev27-py3-none-any.whl (67.1 kB view details)

Uploaded Python 3

File details

Details for the file ehyd-tools-0.1.dev27.tar.gz.

File metadata

  • Download URL: ehyd-tools-0.1.dev27.tar.gz
  • Upload date:
  • Size: 65.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/35.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.3 keyring/18.0.1 rfc3986/1.5.0 colorama/0.4.3 CPython/3.8.10

File hashes

Hashes for ehyd-tools-0.1.dev27.tar.gz
Algorithm Hash digest
SHA256 b3126b431e59c0d982106d8816c5c0d49946b6bcf20ced5093ab957a0e179cdf
MD5 7ea273bd5146e84180eacc42d6374dd0
BLAKE2b-256 5ebfa5d1358cac777eb5639e180e1146305b0a388381298db763a48bf73e0543

See more details on using hashes here.

File details

Details for the file ehyd_tools-0.1.dev27-py3-none-any.whl.

File metadata

  • Download URL: ehyd_tools-0.1.dev27-py3-none-any.whl
  • Upload date:
  • Size: 67.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/35.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.3 keyring/18.0.1 rfc3986/1.5.0 colorama/0.4.3 CPython/3.8.10

File hashes

Hashes for ehyd_tools-0.1.dev27-py3-none-any.whl
Algorithm Hash digest
SHA256 5076d1816d64df029352c6bac4524727d754d86f983d7165a267633b8f97be2f
MD5 cbfc6af3697d6dc55c22ea91008d5c97
BLAKE2b-256 bba606c5c601d7236866afe84cefa7a6ebd989cf0b4f08947a68b79794f9e776

See more details on using hashes here.

Supported by

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