You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The VariableVoellmyShapeToRaster.py script allows the user to define spatially different values for the voellmy Parameters mu and xsi, with the use of polygon shapefiles. For the extent of a DEM raster, all the areas that are not covered by a polygon get assigned a default mu or xsi value. The script then converts this Information into a raster mu and a raster xsi file, which can then be used in Avaframe Simulation runs, using the "spatialVoellmy" friction model.
2
2
3
3
First, set up the Config File and provide inputs:
4
+
•Config File:
5
+
oIn the first step, the Config File needs to be configured and all input files have to be provided
6
+
Main Config (avaframeCfg.ini):
7
+
•Set the path to the avalanche directory
4
8
oInputs:
5
-
dem: Path to the DEM Raster that is later on used for the avaframe simulation. This is needed, because the mu and xsi output rasters need to be the exact same size. Usually this file lies in \AvaFrame\avaframe\data\ *yourAvalancheDir*\Inputs
6
-
mu_shapefile: Path to the mu shapefile, that is then converted to a raster file. Be aware, that the attribute has to be named “xsi”.
7
-
xsi_shapefile: Path to the xsi shapefile, that is then converted to a raster file. Be aware, that the attribute has to be named “mu”.
9
+
All the Input Files are automatically fetched through the set avalanche directory. It is not necessary to provide a file path.
10
+
dem: DEM Raster that is later on used for the avaframe simulation. This is needed, because the mu and xsi output rasters need to be the exact same size. Has to lie in avadir/Inputs.
11
+
mu_shapefile: Mu shapefile, that is then converted to a raster file. Be aware, that the attribute has to be named “mu” and the file name has to end with “_mu”. Has to lie in avadir/Inputs/POLYGONS.
12
+
xsi_shapefile: Xsi shapefile, that is then converted to a raster file. Be aware, that the attribute has to be named “xsi” and the file name has to end with “_xsi”. Has to lie in avadir/Inputs/POLYGONS.
8
13
oDefaults:
9
14
default_mu: this is the default mu value, that gets assigned to all areas in the raster, that are not covered by shapefile-polygons
10
15
default_xsi: this is the default xsi value, that gets assigned to all areas in the raster, that are not covered by shapefile-polygons
11
-
12
-
RunScript:
16
+
oOutputs:
17
+
For the variable Voellmy calculations in the com1DFA algorithm to work, it is mandatory, that the files are stored in: avaframe\data\*yourAvalancheDir*\Inputs\RASTERS\
18
+
mu_raster: Output for the generated mu raster file stored as *_mu.asc
19
+
xsi_raster: Output for the generated xsi raster file stored as *_xi.asc
20
+
21
+
•RunScript:
13
22
oOnce everything is set up, run the script “runVariableVoellmyShapeToRaster.py”
14
23
oIf libraries are missing use: pip install *name of missing library
0 commit comments