使用dhi mike21的python工具
dhitools的Python项目详细描述
DHI工具
用于处理DHI MIKE21的python工具。
功能:
- 将多个光栅DEM直接插入
.mesh
文件 - 读取并分析
.dfsu
文件 - 直接从
.shp
和.mesh
创建 - 阅读并分析
.dfs0
、.dfs1
、.dfs2
文件
.dfsu
粗糙度图(或任何其他图)
由于依赖于mike sdk DLL
库,因此仅支持windows。
安装
要求
安装
Recommended that Anaconda is used to install
GDAL
andgeopandas
. Alternatively, see here and here for installation instructions of these packages.
首先,安装mike软件开发工具包:
Download installer from here
安装mike sdk之后:
conda install gdal
conda install geopandas
pip install pythonnet
pip install dhitools
示例
有关示例,请参阅以下Jupyter笔记本:
- Interpolate mesh
- Create roughness map
- Dfsu analysis-读取项目、计算统计信息、打印、插值到常规网格、创建新的dfsu文件
- Dfs012 analysis
文档
https://dhitools.readthedocs.io/en/latest/index.html