@@ -28,24 +28,24 @@ public class NshmErfTest {
2828 // private static final Path MODEL =
2929 // Path.of("../nshmp-lib/src/test/resources/model/test-model");
3030 // private static final Path MODEL = Path.of("../nshm-conus-2018-5.x-maint");
31- private static final Path MODEL = Path .of ("../nshm-conus " );
31+ private static final Path MODEL = Path .of ("../nshm-prvi " );
3232
33- // static gov.usgs.earthquake.nshmp.geo.Location testLoc =
34- // gov.usgs.earthquake.nshmp.geo.Location.create(-122, 39.0 );
35- static gov .usgs .earthquake .nshmp .geo .Location testLoc =
36- gov .usgs .earthquake .nshmp .geo .Location .create (-80 , 33.2 );
33+ static gov .usgs .earthquake .nshmp .geo .Location testLoc =
34+ gov .usgs .earthquake .nshmp .geo .Location .create (-66.117 , 18.465 );
35+ // static gov.usgs.earthquake.nshmp.geo.Location testLoc =
36+ // gov.usgs.earthquake.nshmp.geo.Location.create(-80, 33.2);
3737
3838 // static gov.usgs.earthquake.nshmp.geo.Location testLoc =
3939 // gov.usgs.earthquake.nshmp.geo.Location.create(-110, 37.5);
4040
4141 public static void main (String [] args ) {
4242
43- Set <TectonicRegionType > trts =
44- EnumSet .of (TectonicRegionType .STABLE_SHALLOW );
45- // Set<TectonicRegionType> trts = EnumSet.noneOf(TectonicRegionType.class);
43+ // Set<TectonicRegionType> trts =
44+ // EnumSet.of(TectonicRegionType.STABLE_SHALLOW);
45+ Set <TectonicRegionType > trts = EnumSet .noneOf (TectonicRegionType .class );
4646
4747 HazardModel model = HazardModel .load (MODEL );
48- NshmErf erf = new NshmErf (model , trts , IncludeBackgroundOption .EXCLUDE );
48+ NshmErf erf = new NshmErf (model , trts , IncludeBackgroundOption .INCLUDE );
4949 System .out .println ("NSHM ERF size: " + erf .getNumSources ());
5050 erf .getTimeSpan ().setDuration (1.0 );
5151 erf .updateForecast ();
@@ -125,16 +125,18 @@ public static void main(String[] args) {
125125 }
126126 }
127127
128- // calcHazard(erf);
128+ calcHazard (erf );
129129 }
130130
131131 private static void calcHazard (NshmErf erf ) {
132132 ScalarIMR gmpe = new ASK_2014_Wrapper ();
133133 gmpe .setParamDefaults ();
134134 gmpe .setIntensityMeasure (PGA_Param .NAME );
135135
136- Site site = new Site (new Location (34 , -118 )); // Los Angeles
136+ Site site = new Site (new Location (18.465 , -66.117 )); // San Juan
137+ // Site site = new Site(new Location(34, -118)); // Los Angeles
137138 // Site site = new Site(new Location(40.75, -111.90)); // Salt lake City
139+
138140
139141 for (Parameter <?> param : gmpe .getSiteParams ()) {
140142 site .addParameter ((Parameter <?>) param .clone ());
0 commit comments