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):
Extract Nodestring (Stringdefs) results from a BASEMENT results container (results.h5):
- BASEMENT v4.0: BMv4NodestringResults.py
- BASEMENT v4.1: BMv41NodestringResults.py
- BASEMENT v4.2: BMv42NodestringResults.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)
Convert cross section order from bmc to json (used for geometry generated with BASEchange)
Visualization
Scripts to generate different 1-D figures from BASEchain standard output:
Standard scripts (based on scripts from HSR):
- plot figures for final simulation step
- plot figures for final step and bed elevation range of intermediate steps (mainly used for morhpodynamic simulations):
Original scripts from HSR (Daniel and Jürg):
- for results of steady hydrodynamic simulation:
Auswertung_1d_HSR_stationaer.py
- for results of transient hydrodynamic/morphodynamic simulation
Auswertung_1d_HSR.py