根据人口、土地利用、气候、用水行为和替代水源使用的变化预测城市用水需求。
iuwm的Python项目详细描述
综合城市水模型(iuwm)
水需求计划和管理的模拟引擎。高度自动化。平行的。多平台。
综合城市水模型(iuwm)根据人口、土地利用和气候的变化预测水需求。它还评估了各种需求管理策略,包括更高效的家用电器、户外灌溉的行为和景观变化,以及再生废水、灰水、雨水和屋顶径流等替代水源的使用。产出包括预测用水、饮用水需求、室内外用水、CII和住宅用水、当地水源(灰水、废水、雨水和屋顶径流的产生和使用)、渗漏和污水处理厂的流出。模拟以每天的时间步长进行,输出将自动聚合为每月和每年的时间步长。
IUWM已被用于评估土地开发对水资源利用、需水量、替代水源和最终用途的影响。该模型还根据用户提供的建筑模式、通过技术或行为变化获得的效率以及水的循环利用来预测水的使用和成本。它包含多个子模型,用于表示室内和室外用途,包括cii和住宅用途,并处理土地用途的输入更改。
iuwm具有自动校准程序、参数敏感性分析和用户指定子模型的自定义编码功能。
安装
安装Python2.7。可以使用Anaconda。
如果要从源安装,请下载并解压缩IUWM source code…然后运行python setup.py install
快速启动
path/to/dir/containing/iuwm> python iuwm/iuwm/console.py -h
输出:
usage: console.py [-h] {list_inputs,list_events,run,batch,sensitivity,calibrate} ... Run the Integrated Urban Water Management Model (IUWM). optional arguments: -h, --help show this help message and exit Commands: {list_inputs,list_events,run,batch,sensitivity,calibrate} list_inputs Lists inputs and descriptions list_events Lists events in the model that allow customization throughout the model simulation run Simulates a single IUWM model scenario batch Performs batch runs of IUWM model scenarios sensitivity Assesses sensitivity on IUWM model parameters calibrate Performs automated calibration on IUWM parameters
iuwm可以从命令行运行,也可以构建一个脚本文件(windows上的*.bat,linux上的*.sh),通过双击运行您的模型。无论哪种方式,都可以通过运行以下命令(假设iuwm代码位于当前工作目录中名为iuwm
的子文件夹中-在打开命令行提示符cmd
之后)使用示例模型测试iuwm,确保将cd
放入解压缩的iuwm代码文件夹所在的目录中,或者将bat
或sh
文件保存在该目录中:
python iuwm/iuwm/console.py run iuwm/tests/files/co.csv --output out_yearly.csv yearly --output out_monthly.csv monthly --output out_daily.csv daily --start_date 2000-01-01 --end_date 2002-12-31 --verbose
其他命令行参数可以通过对任何命令使用-h
来发现
python iuwm/iuwm/console.py -h
python iuwm/iuwm/console.py run -h
python iuwm/iuwm/console.py batch -h
python iuwm/iuwm/console.py sensitivity -h
python iuwm/iuwm/console.py calibrate -h
高级主题
引文
Sharvelle,S.,Dozier,A.Q.,Arabi,M.,和Reichel,B.I.(2017年)。“基于地理空间的城市水需求预测和替代城市水管理战略评估网络工具”,环境建模与软件,97213-228。https://doi.org/10.1016/j.envsoft.2017.08.009。