You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 28, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on May 28, 2019. It is now read-only.
Vulnerability - Update exporters for fragility and vulnerability to NRML 0.5 #603
The metadata sections of the fragility file in the NRML 0.5 schema are as follows:
<?xml version='1.0' encoding='UTF-8'?>
<nrmlxmlns="http://openquake.org/xmlns/nrml/0.5">
<fragilityModelid="fragility model id"assetCategory="buildings"lossCategory="structural">
<description>fragility model description string</description>
<limitStates>whitespace separated list of damage state strings</limitStates>
</fragilityModel>
</nrml>
Continuous fragility functions
The following snippet shows how a typical continuous fragility function is represented in the NRML 0.5 format:
The metadata sections of the vulnerability file in the NRML 0.5 schema are as follows:
<?xml version='1.0' encoding='utf-8'?>
<nrmlxmlns="http://openquake.org/xmlns/nrml/0.5">
<vulnerabilityModelid="vulnerability model id"assetCategory="buildings"lossCategory="structural">
<description>vulnerability model description string</description>
</vulnerabilityModel>
</nrml>
Continuous fragility functions
The following snippet shows how a typical discrete vulnerability function using the lognormal distribution ("LN") is represented in the NRML 0.5 format:
Activity
raoanirudh commentedon Oct 13, 2016
Fragility models in the NRML 0.5 format
Metadata
The metadata sections of the fragility file in the NRML 0.5 schema are as follows:
Continuous fragility functions
The following snippet shows how a typical continuous fragility function is represented in the NRML 0.5 format:
A complete file with three continuous fragility functions can be found at: https://github.com/gem/oq-risk-tests/blob/master/models/fragility/v0.5/ffm_cont_tax3_imt3_nzmin.xml
Discrete fragility functions
The following snippet shows how a typical discrete fragility function is represented in the NRML 0.5 format:
A complete file with a discrete fragility function can be found at: https://github.com/gem/oq-risk-tests/blob/master/models/fragility/v0.5/ffm_disc_tax1_nzndl.xml
Note: A single NRML 0.5 fragility file can contain a mix of both continuous and discrete fragility functions.
CatalinaYepes commentedon Oct 13, 2016
With the NRML 0.5 format it will be possible to export continuous and discrete fragility functions at the same time.
raoanirudh commentedon Oct 13, 2016
Vulnerability models in the NRML 0.5 format
Metadata
The metadata sections of the vulnerability file in the NRML 0.5 schema are as follows:
Continuous fragility functions
The following snippet shows how a typical discrete vulnerability function using the lognormal distribution (
"LN") is represented in the NRML 0.5 format:A complete file with three discrete vulnerability functions can be found at: https://github.com/gem/oq-risk-tests/blob/master/models/vulnerability/v0.5/vm_ln_tax3_imt3_nst.xml
Probability mass functions
The following snippet shows how a typical vulnerability function using a probability mass function (
"PM") is represented in the NRML 0.5 format:A complete file with a vulnerability function using a probability mass function can be found at: https://github.com/gem/oq-risk-tests/blob/master/models/vulnerability/v0.5/vm_pm_tax1.xml
Note: A single NRML 0.5 vulnerability file can contain a mix of both of the above described types of vulnerability functions.