Calculate waterdepths for 3Di results.
Project description
threedidepth
Calculate waterdepths for 3Di results.
Interpolated or gridcell-constant waterlevels
Interfaces with threediresults via threedigrid
Progress indicator support
Low memory consumption
Installation
Make sure GDAL is available as (from osgeo import gdal)
$ pip install threedidepth
Usage
From the cli:
$ threedidepth gridadmin.h5 results_3di.nc dem.tif waterdepth.tif
Or python:
>>> threedidepth.calculate_waterdepth(...)
Development installation with docker-compose
For development, clone the repository and use a docker-compose setup:
$ docker-compose build --build-arg uid=`id -u` --build-arg gid=`id -g` lib $ docker-compose up --no-start $ docker-compose start $ docker-compose exec lib bash
(Re)create & activate a virtualenv:
(docker)$ rm -rf .venv (docker)$ virtualenv .venv --system-site-packages (docker)$ source .venv/bin/activate
Install dependencies & package and run tests:
(docker)(virtualenv)$ pip install -r requirements.txt (docker)(virtualenv)$ pip install -e .[test] (docker)(virtualenv)$ pytest
Changelog of threedidepth
0.1.2 (2020-09-21)
Fix off-by-one-pixel nodgrid.
0.1.1 (2020-09-11)
Fix flipped nodgrid.
0.1 (2020-09-03)
First version.
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
threedidepth-0.1.2.tar.gz
(10.8 kB
view hashes)
Built Distribution
Close
Hashes for threedidepth-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b31ecc9165938965a1db5d4dcf6e01df9e82e392a1b96dfe3088344a5314d153 |
|
MD5 | 7a9268daa4fbb414b4081744838dca5e |
|
BLAKE2b-256 | 9eccd88286be40a878912feae4c035eafc8ff6ac201592ffff5df6a59fc25f6c |