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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for threedi_urban_eia_nl-0.0.2.tar.gz
Algorithm Hash digest
SHA256 dc14fc0d31c97204a113feb4df1cf6e5f0b2cce6b0712343642a04d66b5b600a
MD5 df929921c3df9995dfd65fc1abdeedbc
BLAKE2b-256 d46d6c22f2c1513782bf64c7a92db42d7315a4035f9a8cec0d1639a186ae82a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for threedi_urban_eia_nl-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2f6e5a903c3c17cc6ca8eb49446cbfc87cbd4e3d77bfb9dedd97d54e610e1cef
MD5 cfd1c8520bdb4803f64faffa02e4aaf8
BLAKE2b-256 4f324f94fd35e8470c4f7c235a8d48ad13c454b477322c370264a579c5a851a7

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