ehyd-tools

Various tools for exporting and analyzing hydro(geo)logic time-series from the ehyd.gv.at platform of the Austian government.

https://github.com/markuspic/ehyd_tools

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.4%) to scientific vocabulary

Keywords

austria ehyd precipitation python r720 rainfall
Last synced: 6 months ago · JSON representation ·

Repository

Various tools for exporting and analyzing hydro(geo)logic time-series from the ehyd.gv.at platform of the Austian government.

Basic Info
  • Host: GitHub
  • Owner: MarkusPic
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 1.05 MB
Statistics
  • Stars: 8
  • Watchers: 2
  • Forks: 4
  • Open Issues: 0
  • Releases: 7
Topics
austria ehyd precipitation python r720 rainfall
Created over 7 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Funding License Citation

README.md

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

eHYD Tools

license PyPI Buymeacoffee

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 intensitydurationfrequency_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

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.

```mermaid flowchart TD classDef missing stroke-dasharray: 5 argh["argh
0.31.3"] certifi["certifi
2023.7.22"] charset-normalizer["charset-normalizer
3.3.0"] contourpy["contourpy
1.3.0"] cycler["cycler
0.12.1"] fonttools["fonttools
4.43.1"] idna["idna
3.4"] kiwisolver["kiwisolver
1.4.5"] matplotlib["matplotlib
3.8.0"] numpy["numpy
1.26.1"] packaging["packaging
24.1"] pandas["pandas
2.2.3"] pillow["Pillow
10.1.0"] pyparsing["pyparsing
3.1.1"] python-dateutil["python-dateutil
2.8.2"] pytz["pytz
2023.3.post1"] requests["requests
2.31.0"] six["six
1.16.0"] tzdata["tzdata
2023.3"] urllib3["urllib3
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

bash 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

  • https://github.com/hydrogeology-graz/ehyd
  • https://github.com/joha1/ehyd_reader

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.

bash 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 --addgaps save a gaps-table as a csv-file --tocsv 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

Owner

  • Name: Markus Pichler
  • Login: MarkusPic
  • Kind: user
  • Location: Graz
  • Company: Institute of Urban Water Management and Landscape Water Engineering

https://gitlab.com/markuspichler

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Pichler"
  given-names: "Markus"
  orcid: "https://orcid.org/0000-0002-8101-2163 "

title: "eHYD Tools: Reading and analyzing hydro(geo)logic time series from the Austrian government's "ehyd.gv.at" platform."
version: 0.1
date-released: 2022-09-06
url: "https://github.com/MarkusPic/ehyd_tools"

GitHub Events

Total
  • Release event: 3
  • Watch event: 3
  • Delete event: 1
  • Push event: 12
  • Create event: 2
Last Year
  • Release event: 3
  • Watch event: 3
  • Delete event: 1
  • Push event: 12
  • Create event: 2

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 130
  • Total Committers: 2
  • Avg Commits per committer: 65.0
  • Development Distribution Score (DDS): 0.008
Past Year
  • Commits: 24
  • Committers: 1
  • Avg Commits per committer: 24.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Markus Pichler m****r@t****t 129
Markus m****r@g****t 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 580 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 37
  • Total maintainers: 1
pypi.org: ehyd-tools

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

  • Versions: 37
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 580 Last month
Rankings
Dependent packages count: 9.8%
Dependent repos count: 21.8%
Average: 22.6%
Downloads: 36.1%
Maintainers (1)
Last synced: 11 months ago

Dependencies

requirements.txt pypi
  • argh *
  • matplotlib >=3
  • numpy >=1.14
  • pandas >=1
  • requests *
.github/workflows/package_release.yaml actions
  • actions/checkout v2 composite
  • relekang/python-semantic-release master composite