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:
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.
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
Create an output folder in which the result files will be stored.
Find the “id” of your model in the Threedi Model List: https://api.3di.live/v3/threedimodels/
Run $ run-rain-series-simulations --help to see which arguments you need to specify.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for threedi_urban_eia_nl-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc14fc0d31c97204a113feb4df1cf6e5f0b2cce6b0712343642a04d66b5b600a |
|
MD5 | df929921c3df9995dfd65fc1abdeedbc |
|
BLAKE2b-256 | d46d6c22f2c1513782bf64c7a92db42d7315a4035f9a8cec0d1639a186ae82a0 |
Hashes for threedi_urban_eia_nl-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f6e5a903c3c17cc6ca8eb49446cbfc87cbd4e3d77bfb9dedd97d54e610e1cef |
|
MD5 | cfd1c8520bdb4803f64faffa02e4aaf8 |
|
BLAKE2b-256 | 4f324f94fd35e8470c4f7c235a8d48ad13c454b477322c370264a579c5a851a7 |