Open mmpagani opened 1 year ago
Unfortunaly characteristicFaultSources
are not supported by the converter since they highly nontrivial and they require some discussion with the scientific team (what do we want to store and how we want to store it, how many surface types we want to convert and how). I agree that the error message should be improved.
Example file: char.xml.gz
$ oq nrml_to csv char.xml
NotImplementedError
The last version of the JPN model contains some characteristicFaultSources whose ruptures are represented as griddedSurfaces. The error generated while creating this file is
UnboundLocalError: node characteristicFaultSource: local variable 'geom' referenced before assignment
. This happens since here https://github.com/gem/oq-engine/blob/master/openquake/hazardlib/sourceconverter.py#L1477 the case of agriddedSurface
is not considered.