A QGIS plugin with tools for working with models and netCDF results from 3Di hydraulic/hydrologic modelling software.
The main features are:
- Visualization of model network structure and discretization
- Time series visualization
- Visualize results spatially
- An extensible toolbox with custom Python scripts (for e.g. statistical analysis)
- Import of sufhyd files
Take a look at the Wiki for more information.
- QGIS 2.14 or 2.16 (64 bit is recommended)
- sqlalchemy version 1.1.0 or higher
- geoalchemy2 with custom modifications, source available here: https://github.com/nens/geoalchemy2
- netCDF4 (included only for Windows using 64 bit QGIS)
- h5py (included for Windows)
Most Python dependencies are included in the distribution of the plugin,
but if you clone this repository you need to manually install them in the
$ pip install -r requirements.txt --target=external --no-deps -U
The package includes the dependency 'netCDF4' for 64 bit installations of QGIS under Windows (tested on Windows 7 SP1 and Windows 10). If you are using the 32 bit version of QGIS, it is best to upgrade to the 64 bit version or build the Python netCDF4 including C bindings yourself.
For Linux, NetCDF and HDF5 dependencies are not included, so you have to install them:
$ sudo apt-get install libhdf5-serial-dev libnetcdf-dev
Install Python packages globally because we don't include them for Linux:
$ sudo pip install -r requirements-dev.txt -U
You might need to install the Qt4 PostgreSQL driver for loading sufhyd:
$ sudo apt-get install libqt4-sql-psql
The plugin can be added using one of the following ways:
- Using the Lizard QGIS repository: via the QGIS menu bar go to
Plugins > Manage And Install Plugins... > Settings; add
https://plugins.lizard.net/plugins.xmland reload. Install the plugin by selecting ThreeDiToolbox.
- Copy or symlink the repo directory to your plugin directory (on Linux:
~/.qgis2/python/plugins, on Windows:
C:\\Users\<username>\.qgis2\python\plugins\); make sure to install external dependencies (see Requirements section).
Make sure you have
qgispluginreleaser installed. To make a release (also
$ cd /path/to/the/plugin $ fullrelease # NOTE: if it asks you if you want to check out the tag press 'y'.
Manually copy to server:
$ scp ThreeDiToolbox.0.2.zip <user.name>@packages-server.example.local:/srv/packages.lizardsystem.nl/var/plugins
Make sure test deps from
requirements-dev.txt are installed. Run tests with:
$ source scripts/run-env-linux.sh /usr # this should be automated (e.g. using Makefile) $ make test
|||Under the hood it calls |