Install DebrisFrame (Linux)

Running DebrisFrame means running AvaFrame’s com1DFA with parameters for debris flow:

Install git, python and pixi.

Setup DebrisFrame

Clone the AvaFrame and DebrisFrame repository (in a directory of your choice: [YOURDIR]) and change into the DebrisFrame repository:

cd [YOURDIR]
git clone https://github.com/avaframe/AvaFrame.git
git clone https://github.com/OpenNHM/DebrisFrame.git
cd DebrisFrame

Run pixi:

pixi shell

Try a first run:

change into your debrisframe directory (replace [YOURDIR] with your path from the installation steps):

cd [YOURDIR]/DebrisFrame/debrisframe
python runC1Tif.py

Run c2TopRunDF

The c2ToprunDF module executes the pyTopRunDF tool, its documentation can be find here. To run c2TopRunDF, clone the current pyTopRunDF version first:

cd [YOURDIR]/DebrisFrame/debrisframe
git submodule update --init
cp debrisframeCfg.ini local_debrisframeCfg.ini

and edit local_debrisframeCfg.ini with your favorite text editor and adjust the variable avalancheDir for example to data/debrisTopRun, then run:

python runC2TopRunDF.py

In comparison to pyTopRunDF, the Input DEM (as *.asc file) is in avalancheDir/Inputs (the avalancheDir is defined in local_debrisframeCfg.ini). The input parameters are defined in c2TopRunDF/c2TopRunDFCfg.ini. To change them first copy the file:

cp c2TopRunDF/c2TopRunDFCfg.ini c2TopRunDF/local_c2TopRunDFCfg.ini

and change the parameters in c2TopRunDF/local_c2TopRunDFCfg.ini.