[et=8h]
[at=1.5h]
We are modeling aggregate loss curves in the database, but we do not have a corresponding NRML model.
For this bug, schema (xsd) and example files need to be created. The actual serializer code and integration into the calculators should be implemented in separate bugs. (Aggregate loss curve export: bug # 920543)
Here's what I have in mind for aggregate loss curve XML structure. It's roughly the structure of loss curve results, except simpler.
<?xml version="1.0"?>
<nrml xmlns:gml="http://www.opengis.net/gml"
xmlns="http://openquake.org/xmlns/nrml/0.3"
gml:id="n1">
<!-- riskResult is a gml:Feature -->
<riskResult gml:id="alc1">
<config/>
<!-- There is a single aggregate loss curve associated with the input exposure model. Thus, there is only a single aggregate loss curve per calculation. -->
<aggregateLossCurve>
<loss>0.0 100.0 200.0</loss>
<poE>0.4 0.2 0.1</poE>
</aggregateLossCurve>
</riskResult>
</nrml>
This bug should be addressed first: bug # 904202 (boot strapping the NRML repo).