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:
- data is the pathname of the data directory. There you have to place a
dtm.tif
, amannings.tif
and ahydrogram.csv
files. - lng is the longitude in your reference dtm distance units.
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mfdfloods-0.1.34.tar.gz
.
File metadata
- Download URL: mfdfloods-0.1.34.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45a8e5351167647a07c5ab8c3fcb5734e47ac22953ed7fa5b9f6d5c6a6119534 |
|
MD5 | fddd16d390057251bcce83568d9dedfd |
|
BLAKE2b-256 | beb3a29461eecc21e73fcfadcf4a7869e55fbca900bd73df77e4d4b55e762dd0 |
File details
Details for the file mfdfloods-0.1.34-py3-none-any.whl
.
File metadata
- Download URL: mfdfloods-0.1.34-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3f2c24c84f009f3353d2113da8dda67abca69ca38de58c9adb9acd22e2a4699 |
|
MD5 | 6887800e1a0968c82b477fb9e4de0839 |
|
BLAKE2b-256 | 40b87fd41331c32b1ee3238d8058b4e27eea5c3d95b973290fb9f4623eaf1105 |