Fork of Rob Wall's dhitools Package: https://github.com/robjameswall/dhitools
Key changes:
- Support for quadrilateral meshes
- Support for 3D dfsu filetypes (sigma only are fully integrated, sigma/z-layer are semi-integrated.)
- Separated out plotting routines into a new module for more flexibility
To do:
- Add notebook examples of 3D and quad working
- Check functionality with sigma/z-layer meshtypes
- Implement direct item plotting from 3D dfsu files (without first converting to 2D)
Python tools for working with DHI MIKE21.
Features:
- Interpolate multiple raster DEMs directly to
.mesh
file - Read and analyse
.dfsu
files - Create
.dfsu
roughness map (or any other map) directly from.shp
and.mesh
- Read and analyse
.dfs0
,.dfs1
,.dfs2
files
Due to depending on the MIKE SDK DLL
libraries only Windows is supported.
Requirements
Install
Recommended that Anaconda is used to install
GDAL
andgeopandas
. Alternatively, see here and here for installation instructions of these packages.
First, install MIKE software development kit:
Download installer from here
After installing the MIKE SDK:
conda install gdal
conda install geopandas
pip install pythonnet
pip install dhitools
Latest Build
Clone this repository
See the following Jupyter notebooks for examples:
- Interpolate mesh
- Create roughness map
- Dfsu analysis - reading items, calculating statistics, plotting, interpolating to regular grid, creating new dfsu files
- Dfs012 analysis