Giter VIP home page Giter VIP logo

markuspic / intensity_duration_frequency_analysis Goto Github PK

View Code? Open in Web Editor NEW
34.0 34.0 14.0 73.62 MB

heavy rain as a function of the duration and the return period acc. to DWA-A 531 (2012) This program reads the measurement data of the rainfall and calculates the distribution of the rainfall as a function of the return period and the duration for duration steps up to 12 hours (and more) and return period in a range of '0.5a <= T_n <= 100a'

License: MIT License

Python 100.00%
analysis design-rainfall duration duration-steps dwa dwa-a-531 dwd heavy-rain idf intensity-duration-frequency kostra measurement-data precipitation python rainfall return-period

intensity_duration_frequency_analysis's Introduction

Hi there ๐Ÿ‘‹

I'm a university assistend at the Institute of Urban Water Management and Landscape Water Engineering at the University of Technology Graz.

Most often i work with hydrology, hydraulic and sewer data comming from measurements or simulations.

I'm a fan of open source software and python and try to publish my scrips and scientific work as open as possible.

Some of my projects are:

  • ehyd_tools
  • SWMM_xsections_shape_generator
  • intensity_duration_frequency_analysis
  • swmm_api (main repository on gitlab)

Some smaller projects (mainly matplotlib plots):

  • monthly-calendar-plot
  • moody_chart
  • head-loss-nomogram

Also have a look at my other repositories on gitlab.

And see my published ready to use pacakges on pypi.

Matrix Messenger: @00123f9f53a01de2.tugraz.at:chat.tugraz.at

intensity_duration_frequency_analysis's People

Contributors

gitter-badger avatar markuspic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

intensity_duration_frequency_analysis's Issues

Negative w parameter

Dear Markus,

a relatively short time series behaved as expected in testing purposes. However, I have noticed that w takes on negative sign and hinders further computations depending on log10 when elongating the time series. Do you have any hints on how this might (perhaps mathematically) occur or what this could imply?

I find your package great and unique, would really love to experiment with it without having to implement it myself at the moment, and thus hope for your thoughts.

Best
Philipp

euler.get_time_series returns negative values

Dear all,

thanks for this lovely opensource. During usage I stumbled over something which I would call a minor issue. One may reconfirm as below.

import io
from pandas import read_csv
from ehyd_tools.synthetic_rainseries import RainModeller

rain = """duration,1,2,5,10,20
5,12.9,14.7,17.2,19.0,20.9
10,18.9,21.9,25.6,28.8,31.9
15,24.6,28.2,34.4,37.9,43.0
30,34.4,40.9,49.5,55.6,62.3
60,45.4,55.0,69.8,79.2,88.8
90,47.4,56.8,68.9,78.6,88.6
120,50.0,59.3,71.5,81.5,91.3
240,55.9,66.6,81.1,91.5,102.2
720,61.9,72.9,87.9,100.5,111.9
1440,66.1,78.1,92.3,104.8,115.9
"""

kostra = read_csv(io.StringIO(rain), index_col=0)
model_rain = RainModeller()
model_rain.idf_table = kostra
model_rain.idf_table.columns = model_rain.idf_table.columns.astype(int) 
ts = model_rain.euler.get_time_series(return_period=20, duration=1440, interval=5, kind=2, start_time='2021-01-01 00:00')
print(ts.tail(10))

Small negative values are returned for the final timesteps. The cumulative amount of the output (including negative values) balances to 115.9, which is to be expected from the input.

2021-01-01 23:30:00    0.027778
2021-01-01 23:35:00   -0.033333
2021-01-01 23:40:00   -0.033333
2021-01-01 23:45:00   -0.033333
2021-01-01 23:50:00   -0.033333
2021-01-01 23:55:00   -0.033333
2021-01-02 00:00:00   -0.033333
dtype: float64

Repeating for different duration I observe that negative values start from 90min and above.

Kind regards

Sebastian

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.