Sign inSign up

gfzriesgos/modelprop

By gfzriesgos

•Updated over 4 years ago

Image
0

1.4K

gfzriesgos/modelprop repository overview

⁠modelprop

Docker Cloud Build Status Build Status

⁠Purpose

Program to serve a fragility / vulnerability model according to a given schema - RIESGOS Project

⁠Setup

We use a virtual environment, so you can need to create it and install the pacakges from pip:

python3 -m venv env
source env/bin/activate
pip install -r requirements.txt

⁠Example run

After that you can run modelprop as in the following example:

python3 modelprop.py SARA-v1.0 buildings structural

What are the parameters:

ParameterExamplePurpose
schemaSARA-v1.0This is the schema for the taxonomy.
asset categorybuildingsIn this case we are only interested in buildings, and not in other infrastructure.
loss categorystructuralIn this case we care about physical damage on the structure of the buildings.
taxonomyYou can use this to just query a subset of the schema giving a taxonomy. This is empty by default.

⁠Supported schemas

At the moment we support the following schemas:

  • HAZUS-v1.0
  • SARA-v1.0
  • SUPPASRI2013-v2.0
  • Mavrouli et al. 2014
  • Torres Corredor et al. 2017

You can get a up to date list of the supported schemas by running the following commands in a python shell from within this folder:

import modelprop
modelprop.get_supported_schemas()

⁠Supported asset categories

At the moment only buildings are supported.

⁠Supported loss categories

At the moment we only support structural as loss category.

⁠How to add new schemas

⁠Naming and paths

The very first part is to check that the name of your schema file has the name <your_schema_name>_struct.json and that this will be inserted in the folder <your_schema_name> in the schema subfolder.

⁠Data

It is important to have a meta block, with an id and the list of taxonomies and a data list with the fragility function data for your taxonomy.

Every taxonomy that is listed in the data list must also be in the meta section and vice versa.

You can test it with the assistance/check_modelprop_json_file.py file.

Tag summary

Content type

Image

Digest

Size

405.1 MB

Last updated

over 4 years ago

docker pull gfzriesgos/modelprop