BASEtools
BASEtools is a collection of python scripts for pre-processing, data conversion, or visualization.
Pre-processing
The tool discretizes a grain size distribution into x grain classes using the log approach (Parker).
Data conversion
Transforms GEWISS cross section data to the bmg-format
Transforms Floris Input files for 1D to the new bmg-format
Transforms HEC-RAS Input files for 1D to the bmg-format. The script provides the bmg-file and the list of cross-sections names that can be copied into the model.json file (v4) or into the .bmc file (v2-8) (converted_cross_section_names.txt):
Download HECRAS2Basement_v4.zip
Download HECRAS2Basement_v2-8.zip
Extract Nodestring (Stringdefs) results from a BASEMENT v4.0 (up to version 4.0.2) results ontainer (results.h5)
Download BMv4NodestringResults.py
Extract Nodestring (Stringdefs) results from a BASEMENT v4.1 results container (results.h5)
Download BMv41NodestringResults.py
Extract data over time at user-specified gauging coordinates from a BASEMENT v4.x results container (results.h5)
Convert CGNS restart froms to h5 restart files (migration from version 2.8.2 to version 4.0)
Visualization
Scripts to generate different 1-D figures from BASEchain standard output:
- for results of steady hydrodynamic simulation
Download Auswertung_1d_HSR_stationaer.py
- for results of transient hydrodynamic/morphodynamic simulation
Download Auswertung_1d_HSR.py