Skip to main content

3Di batch calculations

Project description

Introduction

This tool can be used for reeksberekeningen.

Installation

The easiest way to install the tool is through PyPi.

$ python3 -m pip install threedi-urban-eia-nl

Usage

To ensure the correct behaviour of this tool please go through the following steps:

  1. Make sure your aggregation_settings table in the SQLite contains 3 entries for discharge: cum, cum_negative, and cum_positive. And all have timestep set to 3600.

  2. Create a folder with all the rain files you want to use in your simulations. These rain files should be in ‘min,mm’-format, where min is the timestep in minutes and mm is the amount of rain that falls during the timestep in millimeters. Each timestep is seperated by a newline like in the example below:

    0,5.0
    30,1.5
    60,0.0
  3. Create an output folder in which the result files will be stored.

  4. Find the “id” of your model in the Threedi Model List: https://api.3di.live/v3/threedimodels/

  5. Run $ run-rain-series-simulations --help to see which arguments you need to specify.

  6. Run $ process-rain-series-results --help to see which arguments you need to specify.

Created Files and Directories

  • aggregation_netcdf, directory containing simulation aggregate result data

  • simulations, directory containing simulation log data (use –debug option)

  • threedi_urban_eia_nl_statistics.csv, batch calculation result

  • crashed_simulations.json, IDs of crashed simulations (optional)

  • created_simulations_<date>.json, information about created simulations, serves as input file for process-rain-series-results

  • gridadmin.h5, necessary for calculation of batch statistics

  • nan_rows.json, information about weirs that contain NaN data in their cumulative discharge (optional)

Example

$ run-rain-series-simulations <ThreediModel ID> <rain files dir> <results dir> -o <organisation (optional)> -h <host (optional)>

$ process-rain-series-results <created simulations json file> -h <host (optional)> -d <sets debug flag to True> -s <skips downloading result files>

Example command:

$ run-rain-series-simulations 12345 rain_files/ results/ daan.vaningen

$ process-rain-series-results results/created_simulations.json daan.vaningen

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

threedi_urban_eia_nl-0.0.1.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

threedi_urban_eia_nl-0.0.1-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file threedi_urban_eia_nl-0.0.1.tar.gz.

File metadata

  • Download URL: threedi_urban_eia_nl-0.0.1.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for threedi_urban_eia_nl-0.0.1.tar.gz
Algorithm Hash digest
SHA256 594ac881aabe9a3f060c438e9a34f245980d24e3b2ced28d7ec4256a46333c67
MD5 8f57bdb1e80b45657a25c41b40d47f2c
BLAKE2b-256 ceba17fea469bcb1c436e3dbfe9799b4ecca4fb049ca959086a329201574798b

See more details on using hashes here.

File details

Details for the file threedi_urban_eia_nl-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for threedi_urban_eia_nl-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 565bcb9752d5365bdd37ec95607e78512f6e043f940f33c19845c14837f17801
MD5 c0de3e5bc17e2e8810bcb815507f4540
BLAKE2b-256 eecfa71f63cdf5e514e8c81f4dab433f0e911a5e247d67277fded276557f7bef

See more details on using hashes here.

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