Skip to main content

Command line utility to transform model output into a flowmap that can be used for games or gpu-based visualizations.

Project description

Flowmap generator

.. image::

.. image::

.. image::
:alt: Documentation Status

.. image::
:alt: Updates

Command line utility to transform model output into a flowmap that can be used for games or gpu-based visualizations.

* Free software: GNU General Public License v3
* Documentation:


Scripts that generate flowmaps for specific models:

- (download model results for DCSM model and transform them to a flowmap)


To use the software you can download the latest version using docker.
If you have docker installed you can download the software using the command:

.. code:: bash

docker pull openearth/flowmap

You can run the software by typing the command (for now please prepend the flowmap command with `/opt/conda/envs/py35/bin`.

.. code:: bash

# help
docker run openearth/flowmap flowmap --help

# help per command
docker run openearth/flowmap flowmap generate --help

# generate flowmap
docker run openearth/flowmap flowmap generate --src_epsg=28992 --dst_epsg=3857

# compute subgrid interpolation
docker run openearth/flowmap flowmap subgrid aw_refi_def_asc.tiff --src_epsg=28992

# export tables to nc format
docker run openearth/flowmap flowmap export --format tables --src_epsg=28992 aw_refi_def_asc.tiff

# regrid the output to a tiff file can be done with gdal
gdal_grid -zfield subgrid_waterlevel groesbeek_map_waterlevel_last.geojson groesbeek_map_waterlevel_last_idw.tiff -outsize 16069 20071 -a invdistnn:power=3.0:max_points=4:radius=8 -txe 188819.156 196867.156 -tye 426992.399 416956.899

# extracting the relevant contour
gdalwarp -q -cutline "D:/11201337 Water op Straat WS Rivierenland/008. Model/B. Results/LeerdamWest/case14/Leerdam_contour.shp" -tr 0.5 0.5 "D:/11201337 Water op Straat WS Rivierenland/008. Model/F. Post Subgrid/Leerdam/from Fedor/wd_v20180131.tif"

In the case of Delft3D you can convert the default nefis output to netCDF using the vs_trim2nc.m matlab script.
There is also direct nefis support in development, but that has not been properly tested.
By default you will want to project to the web mercator projection. Then you can reuse the velocities as pixels/s in an animation.


* flowmap: animated vectorfield used for interactive particles
* streamlines: generate geojson of streamlines
* subgrid: generate subgrid waterdepth


This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.

.. _Cookiecutter:
.. _`audreyr/cookiecutter-pypackage`:


0.1.0 (2016-07-25)

* First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for flowmap, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size flowmap-1.0.0-py2.py3-none-any.whl (32.9 kB) File type Wheel Python version 3.6 Upload date Hashes View
Filename, size flowmap-1.0.0.tar.gz (32.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page