跳转到主要内容

3Di批量计算

项目描述

简介

此工具可用于reeksberekeningen。

安装

安装此工具最简单的方法是通过PyPi。

$ python3 -m pip install threedi-urban-eia-nl

使用

为确保此工具的正确行为,请按照以下步骤操作

  1. 确保SQLite中的聚合设置表包含3个关于排放的条目: cumcum_negativecum_positive。并且所有条目都将 timestep 设置为3600。

  2. 创建一个文件夹,其中包含您要在模拟中使用的所有雨文件。这些雨文件应采用‘min,mm’-格式,其中min是timestep(以分钟为单位),mm是在timestep内降水的量(以毫米为单位)。每个timestep由换行符分隔,如下面的示例所示

    0,5.0
    30,1.5
    60,0.0
  3. 创建一个输出文件夹,用于存储结果文件。

  4. 在Threedi模型列表中找到您的模型的“id”: https://api.3di.live/v3/threedimodels/

  5. 运行 $ run-rain-series-simulations --help 查看需要指定的参数。

  6. 运行 $ process-rain-series-results --help 查看需要指定的参数。

创建的文件和目录

  • aggregation_netcdf,包含模拟聚合结果数据的目录

  • simulations,包含模拟日志数据的目录(使用 –debug 选项)

  • threedi_urban_eia_nl_statistics.csv,批量计算结果

  • crashed_simulations.json,崩溃模拟的ID(可选)

  • created_simulations_<date>.json,创建的模拟信息,作为 process-rain-series-results 的输入文件

  • gridadmin.h5,批量统计计算所需

  • nan_rows.json,包含累计流量中有 NaN 数据的溢流坝信息(可选)

示例

$ run-rain-series-simulations <ThreediModel ID> <rain files dir> <results dir> -o <organisation (optional)> -h <host (optional)>

$ process-rain-series-results <created simulations json file> -h <host (optional)> -d <sets debug flag to True> -s <skips downloading result files>

示例命令

$ run-rain-series-simulations 12345 rain_files/ results/ daan.vaningen

$ process-rain-series-results results/created_simulations.json daan.vaningen

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关 安装包 的更多信息。

源分布

threedi_urban_eia_nl-0.0.2.tar.gz (13.0 kB 查看哈希)

上传时间

构建分布

threedi_urban_eia_nl-0.0.2-py3-none-any.whl (13.0 kB 查看哈希)

上传时间 Python 3

由以下机构支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面