This is the source code to compute rainfall thresholds for debris flows or landslides following Hirschberg et al. (2021).
How to install and run the example
Pyhton has to be installed to run the codes. To make sure it works correctly, it is easiest to install Anaconda and create an environment with the right packages from the yml-file. To this end, in a command-line interpreter, change the working directory to where you saved this project and run the following:
$ conda env create -f environment.yml
$ conda activate thresholds
or $ source activate thresholds
To run an example:
$ python run_example()
It will save a dat-file and a figure as Fig. 7 in Hirschberg et al. (2021), where more information can be found.
License
GNU General Public License v3.0