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

Installation

Make sure GDAL is available as (from osgeo import gdal)

$ pip install threedidepth # TODO, we’re not yet on pypi

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, you can 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 (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.tar.gz (10.8 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.1-py2.py3-none-any.whl (8.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for threedidepth-0.1.tar.gz
Algorithm Hash digest
SHA256 2d72bd03fb37c3ebec004c3e52893a1a3701769551c5b5a5b598b4b3da0a843f
MD5 20c57232aae3458ef190f50cfadc612d
BLAKE2b-256 e1a4d3e876e65f29d53934f7779ffb22019612f20a1d71d6e6880f5a5f0d14a8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for threedidepth-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 83351ca7f9329aa49c8fd9320656a0048dec68636900429b2960629b2a7b46e3
MD5 ff8614014db3e915efc8ad204cf91646
BLAKE2b-256 e9d8e547839e4f2dfbf0b762088d326f846b921ce3a3e71037d54faf7ead5437

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