根据DWA-A 531(2012),暴雨是持续时间和重现期的函数

idf-analysis的Python项目详细描述


Institute of Urban Water Management and Landscape Water EngineeringGraz University of TechnologyMarkus Pichler

强度-持续时间-频率分析(基于kostra)

licensedocs PyPI

根据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

python_install

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.

示例

Regenhöhenlinien

结果表

0.51.02.03.05.010.015.050.0100.0
52.8965024.5316636.1668237.1233318.3283879.96354810.92005513.76027215.395433
105.3091427.5193529.72956311.02245412.65130314.86151416.15440419.99346422.203675
157.0010119.63728012.27354913.81566715.75850718.39477519.93689424.51600227.152271
208.22949511.21698914.20448315.95205518.15373521.14122922.88880128.07797531.065469
309.85272213.41611016.97949719.06394521.69003925.25342627.33787433.52735537.090743
4511.18297015.43326519.68356022.16982325.30214329.55243832.03870139.42131643.671611
6011.87124416.68779721.50435124.32185427.87148832.68804135.50554443.87173248.688285
9013.63686118.65718923.67751826.61422230.31403135.33435938.27106346.99120152.011529
18017.18820322.57705327.96590231.11817735.08957440.47842443.63069852.99094558.379794
27019.62462225.24145930.85829634.14393438.28335043.90018747.18582656.94207862.558915
36021.53605527.32047733.10490036.48857040.75149046.53591249.91958259.96692565.751347
45023.13245829.05030534.96815338.42987242.79112248.70896952.17068862.44978568.367633
60025.34862731.44304037.53745441.10245845.59383251.68824555.25324965.83903771.933450
72026.85146033.06049239.26952542.90157647.47741953.68645157.31850268.10337874.312410

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
实现接口方法时不允许java@Override   使用BuffereImage加载映像时java高ram使用率   java For循环混乱,为什么不是循环?   java Android网格视图字符串对齐问题   java如何将方法与比较类型的附加功能进行比较?   在Java Swing中放置JSepator后的间隙大小   java如何避免并发访问我的网站中的支付链接   java如何从现有的Unix服务器连接到FTP服务器?   Spring中的java用户相关bean定义   带有scribesjava库的wordpress Woocommerce REST API返回消费者密钥参数缺失错误消息   java我可以自动检测特定设备连接的串行端口吗?   Javafx棋盘游戏   java使用JTextPane显示HTML,支持SVG吗?   SpringBoot如何在java中将映射转换为实体对象?   如何使用java代码对xls文件进行密码保护   Java JPA(EclipseLink)如何在持久化实际实体之前接收下一个生成的值?   Javaservlet启动外部进程