Skip to main content

Multiple flow direction floods hydrodynamic modelation

Project description

MFD Floods

A python script to model hidrologic behavior of downstream drainpaths. With a DTM cover of your study area you can define longitude and latitude (in the DTM distance unit) as a start point and an income flow to see how the water will flood the territory.

Installation

With pip pip install mfdfloods

From source python -m pip install -r /path/to/mfdfloods/directory

Dependencies

The script requires GDAL installed on your system and python-gdal as a python dependency.

To install GDAL execute apt install gdal-bin libgdal-dev.

Module

Execute .py from inside the folder to test the algorithm.

The test.py is a script that call the class MFD and execute its modelization with the datasource from the data/ folder. There you have to place your GeoJSON files with the modelized line geometry.

python test.py <path:data> <lng:float> <lat:float>

Arguments:

  1. data is the pathname of the data directory. There you have to place a dtm.tif, a mannings.tif and a hydrogram.csv files.
  2. lng is the longitude in your reference dtm distance units.
  3. lat is the latitude in your reference dtm distance units.

The output will be placed in your data floder as three files with the name (draft|flood|speed)_{lng}-{lat}.tif.

Use

Include mfdfloods as a module on your scripts with from mfdfloods import MFD then instantiate the class MFD to execute its drainpaths method.

Project details


Download files

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

Source Distribution

mfdfloods-0.1.28.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

mfdfloods-0.1.28-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file mfdfloods-0.1.28.tar.gz.

File metadata

  • Download URL: mfdfloods-0.1.28.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for mfdfloods-0.1.28.tar.gz
Algorithm Hash digest
SHA256 1f5e4dd191aaec60199909b31c3feb3a0697039e7937b6fd88357159be18b9d1
MD5 5c8e0bcda7e462e362534512d02b38c8
BLAKE2b-256 8dd435696541302cf3a6e7f903224c11212e0f0196d8415a79c758afc412e820

See more details on using hashes here.

Provenance

File details

Details for the file mfdfloods-0.1.28-py3-none-any.whl.

File metadata

  • Download URL: mfdfloods-0.1.28-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for mfdfloods-0.1.28-py3-none-any.whl
Algorithm Hash digest
SHA256 f1441b236347314c1f4c0ecdaa4b2d10d2dbba0e1a9d684ca807d9861c3f2cb8
MD5 8395f41907cb5c76aebb11a691ae3206
BLAKE2b-256 95c3f4f48c7026f672630b8d3789563d43e0c7a06d603026c37edffcaf963286

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page