-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #456 from GEMScienceTools/add_fault_geojsons
Add ability to create geojsons of the fault sources within a given source model + unit test
- Loading branch information
Showing
3 changed files
with
321 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
openquake/man/tests/data/checks/expected/fault_sections.geojson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ "type": "Feature", "properties": { "suid": 0 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 1.021395468520495, -0.274887161684799 ], [ 1.061615435442728, -0.254777787522597 ], [ 1.101835125551899, -0.234668373923735 ], [ 1.142054573532541, -0.21455891841192 ], [ 1.182273814068017, -0.194449418510723 ], [ 1.222492881840751, -0.174339871743573 ], [ 1.262711811532374, -0.154230275633758 ], [ 1.302930637823961, -0.134120627704419 ], [ 1.343149395396204, -0.114010925478548 ], [ 1.383368118929616, -0.093901166478988 ], [ 1.424116359046308, -0.074887187950001 ], [ 1.469082479230706, -0.074887358892875 ], [ 1.514048659583617, -0.074887468242194 ], [ 1.559014927801107, -0.074887515997653 ], [ 1.603981311579775, -0.074887502158835 ], [ 1.648947838616836, -0.074887426725208 ], [ 1.693914536610364, -0.074887289696126 ], [ 1.738881433259303, -0.074887091070829 ], [ 1.738881433259303, -0.074887091070829 ], [ 1.749579076381868, -0.112330675622099 ], [ 1.760276746916998, -0.149774256257488 ], [ 1.770974454002376, -0.187217831671684 ], [ 1.781672206775785, -0.224661400559353 ], [ 1.781672206775785, -0.224661400559353 ], [ 1.73670531012761, -0.224661599184538 ], [ 1.691738612134616, -0.224661736213544 ], [ 1.646772085097836, -0.224661811647129 ], [ 1.601805701319218, -0.22466182548594 ], [ 1.55683943310155, -0.224661777730507 ], [ 1.511873252748232, -0.224661668381249 ], [ 1.466907132563147, -0.224661497438471 ], [ 1.426158969044339, -0.243675465362055 ], [ 1.385940331651136, -0.263785213144987 ], [ 1.345721665490477, -0.283894904154221 ], [ 1.305502935881849, -0.304004540866913 ], [ 1.265284108144636, -0.324114125760065 ], [ 1.225065147597765, -0.344223661310532 ], [ 1.184846019559678, -0.364333149995023 ], [ 1.144626689347953, -0.384442594290103 ], [ 1.104407122279304, -0.404551996672199 ], [ 1.064187283669246, -0.424661359617599 ], [ 1.064187283669246, -0.424661359617599 ], [ 1.05348919727219, -0.387217829077592 ], [ 1.042791205374247, -0.349774285038472 ], [ 1.032093298836565, -0.312330728805726 ], [ 1.021395468520495, -0.274887161684799 ] ] ] } } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<nrml | ||
xmlns="http://openquake.org/xmlns/nrml/0.5" | ||
xmlns:gml="http://www.opengis.net/gml" | ||
> | ||
<sourceModel | ||
name="Example Source Model Containing a Simple Fault Source" | ||
> | ||
<sourceGroup | ||
name="group 1" | ||
tectonicRegion="Active Shallow Crust" | ||
> | ||
<simpleFaultSource | ||
id="3" | ||
name="Simple Fault Source" | ||
tectonicRegion="Active Shallow Crust" | ||
> | ||
<simpleFaultGeometry> | ||
<gml:LineString> | ||
<gml:posList> | ||
1.0000000E+00 -2.0000000E-01 1.4000000E+00 0.0000000E+00 1.7000000E+00 0.0000000E+00 | ||
</gml:posList> | ||
</gml:LineString> | ||
<dip> | ||
3.0000000E+01 | ||
</dip> | ||
<upperSeismoDepth> | ||
5.0000000E+00 | ||
</upperSeismoDepth> | ||
<lowerSeismoDepth> | ||
1.5000000E+01 | ||
</lowerSeismoDepth> | ||
</simpleFaultGeometry> | ||
<magScaleRel> | ||
WC1994 | ||
</magScaleRel> | ||
<ruptAspectRatio> | ||
2.0000000E+00 | ||
</ruptAspectRatio> | ||
<truncGutenbergRichterMFD aValue="4.2000000E+00" bValue="9.0000000E-01" maxMag="7.0000000E+00" minMag="6.5000000E+00"/> | ||
<rake> | ||
9.0000000E+01 | ||
</rake> | ||
</simpleFaultSource> | ||
</sourceGroup> | ||
</sourceModel> | ||
</nrml> |