From b5b1358c9b36ab1e8fcd007f3bacdac55aec1a79 Mon Sep 17 00:00:00 2001
From: Peter Powers <pmpowers@usgs.gov>
Date: Mon, 27 Sep 2021 08:32:54 -0600
Subject: [PATCH] added s1c2

---
 .gitignore                                    |  1 -
 .../fault-sources/fault-config.json           |  2 +-
 etc/peer/models/Set1-Case1/calc-config.json   | 17 +++++++--------
 .../fault-sources/fault-config.json           |  7 +++++++
 .../fault-sources/features/set1-case2.geojson | 21 +++++++++++++++++++
 .../fault-sources/mfd-config.json             |  6 ++++++
 .../active-crust/fault-sources/mfd-map.json   | 13 ++++++++++++
 .../fault-sources/set1-case2/rupture-set.json |  5 +++++
 .../fault-sources/source-tree.json            |  6 ++++++
 .../Set1-Case2/active-crust/gmm-config.json   |  5 +++++
 .../Set1-Case2/active-crust/gmm-tree.json     |  3 +++
 etc/peer/models/Set1-Case2/calc-config.json   | 12 +++++++++++
 etc/peer/models/Set1-Case2/model-info.json    |  4 ++++
 etc/peer/models/Set1-Case2/sites.csv          |  8 +++++++
 14 files changed, 98 insertions(+), 12 deletions(-)
 create mode 100644 etc/peer/models/Set1-Case2/active-crust/fault-sources/fault-config.json
 create mode 100644 etc/peer/models/Set1-Case2/active-crust/fault-sources/features/set1-case2.geojson
 create mode 100644 etc/peer/models/Set1-Case2/active-crust/fault-sources/mfd-config.json
 create mode 100644 etc/peer/models/Set1-Case2/active-crust/fault-sources/mfd-map.json
 create mode 100644 etc/peer/models/Set1-Case2/active-crust/fault-sources/set1-case2/rupture-set.json
 create mode 100644 etc/peer/models/Set1-Case2/active-crust/fault-sources/source-tree.json
 create mode 100644 etc/peer/models/Set1-Case2/active-crust/gmm-config.json
 create mode 100644 etc/peer/models/Set1-Case2/active-crust/gmm-tree.json
 create mode 100644 etc/peer/models/Set1-Case2/calc-config.json
 create mode 100644 etc/peer/models/Set1-Case2/model-info.json
 create mode 100644 etc/peer/models/Set1-Case2/sites.csv

diff --git a/.gitignore b/.gitignore
index 9ebfe1160..37b57e4b9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,7 +13,6 @@ eq-prob*/
 eq-rate*/
 Scratch*.java
 nshmp-haz-log*
-models
 webapp/models
 webapp/jsdocs
 scratch*.html
diff --git a/etc/peer/models/Set1-Case1/active-crust/fault-sources/fault-config.json b/etc/peer/models/Set1-Case1/active-crust/fault-sources/fault-config.json
index 426ce4f29..3b7b32e80 100644
--- a/etc/peer/models/Set1-Case1/active-crust/fault-sources/fault-config.json
+++ b/etc/peer/models/Set1-Case1/active-crust/fault-sources/fault-config.json
@@ -1,7 +1,7 @@
 {
   "surface-spacing": 1.0,
   "rupture-scaling": "PEER",
-  "rupture-floating": "NSHM",
+  "rupture-floating": "OFF",
   "dip-slip-model": "FIXED",
   "dip-tree": null
 }
diff --git a/etc/peer/models/Set1-Case1/calc-config.json b/etc/peer/models/Set1-Case1/calc-config.json
index bd9f5996f..5a9404437 100644
--- a/etc/peer/models/Set1-Case1/calc-config.json
+++ b/etc/peer/models/Set1-Case1/calc-config.json
@@ -1,15 +1,12 @@
 {
-  "model": {
-    "name": "PEER Test: Set1-Case1",
-    "surfaceSpacing": 1.0,
-    "ruptureFloating": "OFF",
-    "ruptureVariability": false,
-    "pointSourceType": "FINITE",
-    "areaGridScaling": "UNIFORM_0P01"
-  },
   "hazard": {
     "exceedanceModel": "NONE",
-    "valueFormat": "ANNUAL_RATE",
-    "imts": ["PGA"]
+    "valueFormat": "POISSON_PROBABILITY",
+    "imts": ["PGA"],
+   "customImls": { 
+      "PGA": [
+        0.001, 0.01, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35,
+        0.4, 0.45, 0.5, 0.55, 0.6, 0.7, 0.8, 0.9, 1.0]
+    }
   }
 }
diff --git a/etc/peer/models/Set1-Case2/active-crust/fault-sources/fault-config.json b/etc/peer/models/Set1-Case2/active-crust/fault-sources/fault-config.json
new file mode 100644
index 000000000..c071b87d9
--- /dev/null
+++ b/etc/peer/models/Set1-Case2/active-crust/fault-sources/fault-config.json
@@ -0,0 +1,7 @@
+{
+  "surface-spacing": 0.02,
+  "rupture-scaling": "PEER",
+  "rupture-floating": "ON",
+  "dip-slip-model": "FIXED",
+  "dip-tree": null
+}
diff --git a/etc/peer/models/Set1-Case2/active-crust/fault-sources/features/set1-case2.geojson b/etc/peer/models/Set1-Case2/active-crust/fault-sources/features/set1-case2.geojson
new file mode 100644
index 000000000..66326601d
--- /dev/null
+++ b/etc/peer/models/Set1-Case2/active-crust/fault-sources/features/set1-case2.geojson
@@ -0,0 +1,21 @@
+{
+  "type": "Feature",
+  "id": 1,
+  "geometry": {
+    "type": "LineString",
+    "coordinates": [
+      [-122.00000, 38.22480],
+      [-122.00000, 38.00000]
+    ]
+  },
+  "properties": {
+    "name": "Set1-Case2 fault",
+    "state": "CA",
+    "upper-depth": 0.0,
+    "lower-depth": 12.0,
+    "dip": 90.0,
+    "rake": 0.0,
+    "rate-type": "RECURRENCE",
+    "length": 25.0
+  }
+}
diff --git a/etc/peer/models/Set1-Case2/active-crust/fault-sources/mfd-config.json b/etc/peer/models/Set1-Case2/active-crust/fault-sources/mfd-config.json
new file mode 100644
index 000000000..a0def60f9
--- /dev/null
+++ b/etc/peer/models/Set1-Case2/active-crust/fault-sources/mfd-config.json
@@ -0,0 +1,6 @@
+{
+  "epistemic-tree": null,
+  "aleatory-properties": null,
+  "minimum-magnitude": 5.0,
+  "nshm-bin-model": true
+}
diff --git a/etc/peer/models/Set1-Case2/active-crust/fault-sources/mfd-map.json b/etc/peer/models/Set1-Case2/active-crust/fault-sources/mfd-map.json
new file mode 100644
index 000000000..2db0c0251
--- /dev/null
+++ b/etc/peer/models/Set1-Case2/active-crust/fault-sources/mfd-map.json
@@ -0,0 +1,13 @@
+{
+  "set1-case2-mfd": [
+    {
+      "id": "set1-case2",
+      "weight": 1.0,
+      "value": {
+        "type": "SINGLE",
+        "m": 6.0,
+        "rate": 0.016042517
+      }
+    }
+  ]
+}
diff --git a/etc/peer/models/Set1-Case2/active-crust/fault-sources/set1-case2/rupture-set.json b/etc/peer/models/Set1-Case2/active-crust/fault-sources/set1-case2/rupture-set.json
new file mode 100644
index 000000000..c48920af3
--- /dev/null
+++ b/etc/peer/models/Set1-Case2/active-crust/fault-sources/set1-case2/rupture-set.json
@@ -0,0 +1,5 @@
+{
+  "name": "PEER Set1-Case2",
+  "id": 1,
+  "mfd-tree": "set1-case2-mfd"
+}
diff --git a/etc/peer/models/Set1-Case2/active-crust/fault-sources/source-tree.json b/etc/peer/models/Set1-Case2/active-crust/fault-sources/source-tree.json
new file mode 100644
index 000000000..fa4b53aac
--- /dev/null
+++ b/etc/peer/models/Set1-Case2/active-crust/fault-sources/source-tree.json
@@ -0,0 +1,6 @@
+[
+  {
+    "id": "set1-case2",
+    "weight": 1.0
+  }
+]
diff --git a/etc/peer/models/Set1-Case2/active-crust/gmm-config.json b/etc/peer/models/Set1-Case2/active-crust/gmm-config.json
new file mode 100644
index 000000000..dfe80f553
--- /dev/null
+++ b/etc/peer/models/Set1-Case2/active-crust/gmm-config.json
@@ -0,0 +1,5 @@
+{
+  "max-distance": 500.0,
+  "epistemic-model": null,
+  "epistemic-tree": null
+}
diff --git a/etc/peer/models/Set1-Case2/active-crust/gmm-tree.json b/etc/peer/models/Set1-Case2/active-crust/gmm-tree.json
new file mode 100644
index 000000000..8392687bb
--- /dev/null
+++ b/etc/peer/models/Set1-Case2/active-crust/gmm-tree.json
@@ -0,0 +1,3 @@
+[
+  { "id": "SADIGH_97", "weight": 1.0 }
+]
diff --git a/etc/peer/models/Set1-Case2/calc-config.json b/etc/peer/models/Set1-Case2/calc-config.json
new file mode 100644
index 000000000..6172c8063
--- /dev/null
+++ b/etc/peer/models/Set1-Case2/calc-config.json
@@ -0,0 +1,12 @@
+{
+  "hazard": {
+    "exceedanceModel": "NONE",
+    "valueFormat": "POISSON_PROBABILITY",
+    "imts": ["PGA"],
+    "customImls": {
+      "PGA": [
+        0.001, 0.01, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35,
+        0.4, 0.45, 0.5, 0.55, 0.6, 0.7, 0.8, 0.9, 1.0]
+    }
+  }
+}
diff --git a/etc/peer/models/Set1-Case2/model-info.json b/etc/peer/models/Set1-Case2/model-info.json
new file mode 100644
index 000000000..b3d26fbdd
--- /dev/null
+++ b/etc/peer/models/Set1-Case2/model-info.json
@@ -0,0 +1,4 @@
+{
+  "name": "PEER Set1-Case2",
+  "site-class-vs30": { "BC": 760 }
+}
diff --git a/etc/peer/models/Set1-Case2/sites.csv b/etc/peer/models/Set1-Case2/sites.csv
new file mode 100644
index 000000000..a52a1da8a
--- /dev/null
+++ b/etc/peer/models/Set1-Case2/sites.csv
@@ -0,0 +1,8 @@
+name, lon, lat
+PEER S1-Fault-Site1, -122.0,   38.113
+PEER S1-Fault-Site2, -122.114, 38.113
+PEER S1-Fault-Site3, -122.57,  38.111
+PEER S1-Fault-Site4, -122.0,   38.0
+PEER S1-Fault-Site5, -122.0,   37.91
+PEER S1-Fault-Site6, -122.0,   38.225
+PEER S1-Fault-Site7, -121.886, 38.113
-- 
GitLab