The Tsunami Risk Modeller’s Toolkit
Software and tools for tsunami risk analysis
The Tsunami Risk Modeller’s Toolkit (TRMTK) is a library of Python scripts and Jupyter notebooks for tsunami risk analysis. You may access the TRMTK repository here.
computeFrag is a code for computing robust fragility curves based on logistic regression. This code computes fragility curves for a set of damage states. The damage states are mutually exclusive, consequential, and exhaustive and this is assured by the employed formulation. This code provides an ensemble of the fragility curves and their corresponding confidence bands for a set of mutually exclusive and collectively exhaustive (MECE) damage states (DS), where DSi: i=0,NDS. The fragility is defined as the probability of damage D exceeding the threshold Di for damage state DSi and is denoted as P(D>Di|IM). The set of damage levels (Di, i=0:NDS) mark the thresholds of damage states (DSi).
You may also run the code as a standalone docker application. To do so, first pull the image from docker hub:
Then create a folder for the input and the outputs of the code. For example, create the folder C:\input_output\ or /home/user/input_output under Windows or Linux, respectively. Place in that folder the input file (e.g. the file building_class_1.csv from the code’s repository). Then execute the application using one of the following commands depending on your operating system:
docker run --rm -v C:\input_output:/tmp bayesian-fragility-standalone-app/tmp/building_class_1.csv
docker run --rm -v /home/user/input_output:/tmp bayesian-fragility-standalone-app/tmp/building_class_1.csv