Skip to main content

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

For the interpolated mode, the ‘lizard’-method is used. For a detailed description, read the docstring for the LizardLevelCalculator.

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.2 (2020-12-10)

  • Implemented lizard method and set it as default.

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.2.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

threedidepth-0.2-py2.py3-none-any.whl (9.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file threedidepth-0.2.tar.gz.

File metadata

  • Download URL: threedidepth-0.2.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.24.0 setuptools/41.6.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.9

File hashes

Hashes for threedidepth-0.2.tar.gz
Algorithm Hash digest
SHA256 ea49a07b1e864d30a258cb5850338f53bace9b4f2c267b588f72dc012118d352
MD5 8ae1cc8338e4849bfebf2d1d2c3a1159
BLAKE2b-256 1d7308fa0dda0d60242afe500653b2f5cf55e87784332246467e3186ac2e7c37

See more details on using hashes here.

File details

Details for the file threedidepth-0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: threedidepth-0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.24.0 setuptools/41.6.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.9

File hashes

Hashes for threedidepth-0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fb9c91c7226f0233cd7dcdb8fbeedfaebafa2a61aff843b95845e5dbba8456c9
MD5 7629e6f9056f613971593e866ed43fd3
BLAKE2b-256 6f79dd31bed4a21abafd0a5fa6df4fb9b80b5110f7b460b63bbc25352f2c56a4

See more details on using hashes here.

Supported by

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