根据DWA-A 531(2012),暴雨是持续时间和重现期的函数
idf-analysis的Python项目详细描述
)Institute of Urban Water Management and Landscape Water Engineering、Graz University of Technology和Markus Pichler
强度-持续时间-频率分析(基于kostra)
根据DWA-A 531 (2012),暴雨是持续时间和重现期的函数 这个程序读取降雨量的测量数据 并根据重现期和持续时间计算降雨量的分布 持续时间可达12小时(及以上),重现期在‘0.5a≤t_n≤100a’范围内
这个软件包最初是根据Markus Pichler的学士学位论文开发的,在他受雇于Institute of Urban Water Management and Landscape Water Engineering的过程中完成的。
安装
剧本是用Python写的。
窗口
我建议使用Anaconda在windows上安装python,并在anaconda提示符下安装命令行工具。
或者,可以从website安装原始python。 要使用下面用法部分中解释的语法, 必须将python二进制文件的路径添加到环境变量中。 这是安装窗口中的一个选项,如下所示:
- [X]将python 3.7添加到path
Linux/Unix
python是预先安装在大多数操作系统上的。
python包
此程序所需的软件包将在安装过程中与PIP一起安装,并可以在“requirements.txt”文件中看到。
重新安装
pip install idf-analysis
要仅为本地用户帐户安装包,请在install命令中添加--user
。
更新包
要更新包,请在install命令中添加--upgrade
。
pip install idf-analysis --upgrade
用法
要启动脚本,请在终端/anaconda提示符下使用以下命令
窗口:
python -m idf_analysis
类Unix:
idf_analysis
命令行工具
idf_analysis -h
usage: idf_analysis [-h] -i INPUT [-out OUTPUT] [-t {>= 0.5 a and <= 100 a}]
[-d {>= 5 min and <= 720 min}] [-h_N {>= 0 mm}]
[-ws {ATV-A_121,DWA-A_531,DWA-A_531_advektiv}]
[-kind {partial,annual}] [--r_720_1] [--plot]
[--extended_duration] [--export_table] [--unix]
optional arguments:
-h, --help show this help message and exit
-i INPUT, --input INPUT
input file with the rain time series
-out OUTPUT, --output OUTPUT
output path, where to write the results / default:
same as input
-t {>= 0.5 a and <= 100 a}, --return_period {>= 0.5 a and <= 100 a}
return period in years (If two of the three variables
(rainfall, duration, return period) are given, the
third variable is calculated.)
-d {>= 5 min and <= 720 min}, --duration {>= 5 min and <= 720 min}
duration in minutes (If two of the three variables
(rainfall, duration, return period) are given, the
third variable is calculated.)
-h_N {>= 0 mm}, --height_of_rainfall {>= 0 mm}
rainfall in mm or Liter/m^2 (If two of the three
variables (rainfall, duration, return period) are
given, the third variable is calculated.)
-ws {ATV-A_121,DWA-A_531,DWA-A_531_advektiv}, --worksheet {ATV-A_121,DWA-A_531,DWA-A_531_advektiv}
Worksheet used to calculate.
-kind {partial,annual}, --series_kind {partial,annual}
The kind of series used for the calculation.
Calculation with partial series is more precise
--r_720_1 design rainfall with a duration of 720 minutes (=12 h)
and a return period of 1 year
--plot get a plot of the idf relationship
--extended_duration add [720, 1080, 1440, 2880, 4320, 5760, 7200, 8640]
(in minutes) to the duration steps which will be
calculated
--export_table get a table of the most frequent used values
--unix export the csv files with a "," as separator and a "."
as decimal sign.
示例
结果表
0.5 | 1.0 | 2.0 | 3.0 | 5.0 | 10.0 | 15.0 | 50.0 | 100.0 | |
---|---|---|---|---|---|---|---|---|---|
5 | 2.896502 | 4.531663 | 6.166823 | 7.123331 | 8.328387 | 9.963548 | 10.920055 | 13.760272 | 15.395433 |
10 | 5.309142 | 7.519352 | 9.729563 | 11.022454 | 12.651303 | 14.861514 | 16.154404 | 19.993464 | 22.203675 |
15 | 7.001011 | 9.637280 | 12.273549 | 13.815667 | 15.758507 | 18.394775 | 19.936894 | 24.516002 | 27.152271 |
20 | 8.229495 | 11.216989 | 14.204483 | 15.952055 | 18.153735 | 21.141229 | 22.888801 | 28.077975 | 31.065469 |
30 | 9.852722 | 13.416110 | 16.979497 | 19.063945 | 21.690039 | 25.253426 | 27.337874 | 33.527355 | 37.090743 |
45 | 11.182970 | 15.433265 | 19.683560 | 22.169823 | 25.302143 | 29.552438 | 32.038701 | 39.421316 | 43.671611 |
60 | 11.871244 | 16.687797 | 21.504351 | 24.321854 | 27.871488 | 32.688041 | 35.505544 | 43.871732 | 48.688285 |
90 | 13.636861 | 18.657189 | 23.677518 | 26.614222 | 30.314031 | 35.334359 | 38.271063 | 46.991201 | 52.011529 |
180 | 17.188203 | 22.577053 | 27.965902 | 31.118177 | 35.089574 | 40.478424 | 43.630698 | 52.990945 | 58.379794 |
270 | 19.624622 | 25.241459 | 30.858296 | 34.143934 | 38.283350 | 43.900187 | 47.185826 | 56.942078 | 62.558915 |
360 | 21.536055 | 27.320477 | 33.104900 | 36.488570 | 40.751490 | 46.535912 | 49.919582 | 59.966925 | 65.751347 |
450 | 23.132458 | 29.050305 | 34.968153 | 38.429872 | 42.791122 | 48.708969 | 52.170688 | 62.449785 | 68.367633 |
600 | 25.348627 | 31.443040 | 37.537454 | 41.102458 | 45.593832 | 51.688245 | 55.253249 | 65.839037 | 71.933450 |
720 | 26.851460 | 33.060492 | 39.269525 | 42.901576 | 47.477419 | 53.686451 | 57.318502 | 68.103378 | 74.312410 |