Risk Toolkit

Software and tools for tsunami risk analysis

The Tsunami Risk Modeller’s Toolkit (TRMTK) ( DOI ), is a library of Matlab and Python scripts and Jupyter notebooks to compute and visualize the empirical fragility and vulnerability assessment.

To contribute, you can establish your branch on ETRiS GitHub repository

Jupyter Notebooks
Jupyter Logo
1.

VisualizeFragility

The Jupyter notebook “VisualizeFragility.ipynb” is used to visualize the fragility curves available on this service. To visualize the statistics of the fragility curves, it is necessary to specify the fragility curve corresponding to the desired damage level.

Jupyter Logo
2.

VisualizeVulnerability

The Jupyter notebook “VisualizeVulnerability.ipynb” is used to visualize the vulnerability curves available on this service. To visualize the statistics of the vulnerability curves, it is necessary to specify the corresponding parameters or dataset as required.

Jupyter Logo
3.

Bayesian Empirical Fragility Modeling

This Jupyter notebook presents the workflow for data-driven Bayesian empirical fragility modeling. It illustrates how the fragility data provided in the EPOS-ICS-C portal under the layer “Empirical Tsunami Risk Products Dataset (ETRiS v0)” can be generated.

Jupyter Logo
4.

Direct Vulnerability Modeling (Binomial Regression)

This Jupyter notebook presents the workflow for vulnerability (fatality) modeling using Binomial Regression.

Jupyter Logo
5.

Direct Vulnerability Modeling (Conditional CDF)

This Jupyter notebook presents the workflow for direct vulnerability (fatality) modeling, where the vulnerability is modeled as a conditional cumulative distribution function (CDF) of the loss ratio (decision variable) given the intensity measure.

Jupyter Logo
6.

Vulnerability Modeling via Fragility–Consequence Convolution (Deterministic Consequence)

This Jupyter notebook describes how the vulnerability curves in the EPOS-ICS-C portal are calculated. It employs the convolution of empirical fragility, derived from the Bayesian Empirical Fragility Modeling notebook, with a deterministic consequence function.

Jupyter Logo
7.

Vulnerability Modeling via Fragility–Consequence Convolution (Probabilistic Consequence)

This Jupyter notebook describes how the vulnerability curves in the EPOS-ICS-C portal are calculated. It employs the convolution of empirical fragility, derived from the Bayesian Empirical Fragility Modeling notebook, with an uncertain consequence function.

ComputeFrag (Version 1, Version 2)

DOI

ComputeFrag is a code for computing robust fragility curves using a generalized regression model considering Hierarchical fragility modeling. This code calculates fragility curves based on maximum likelihood estimation methods (basic and hierarchical modeling) or using Bayesian model class selection (BMCS) to estimate fragility curves with their corresponding confidence bands for a set of mutually exclusive and collectively exhaustive damage states and different classes of buildings or infrastructure. The code utilizes Bayesian model class selection (BMCS) to identify the best link model to employ in the generalized linear regression scheme.

More information about the code: README.md

You can also check our Docker repository

i) Install Docker Desktop from Docker repository
ii) Pull the image from Docker hub using the following command:
docker pull eurotsunamirisk/bayesian-fragility-standalone-app
iii) Create a new folder to save the results. (e.g. C:\computefragresults\ (Windows) or /home/user/computefragresults (Linux)).
iv) Place the input file (e.g. the test input file: buildingclass1.csv from the repository).
v) Execute the application using one of the following commands, depending on your operating system:
docker run --rm -v C:\computefragresults:/tmp eurotsunamirisk/bayesian-fragility-standalone-app/tmp/buildingclass1.csv
docker run --rm -v /home/user/computefragresults:/tmp eurotsunamirisk/bayesian-fragility-standalone-app/tmp/building_class_1.csv

After using the Risk Toolkit, click here to share your feedback.

This website is developed and maintained by researchers at the University College London and University of Naples Federico II.
License
Media use
© 2025 – European Tsunami Risk Service (ETRiS)

EPOS GeoInquire