@@ -50,7 +50,10 @@ public static void main(String[] args) throws IOException {
5050
5151// GriddedRegion gridReg = new GriddedRegion(PRVI25_RegionLoader.loadPRVI_ModelBroad(), 0.1, GriddedRegion.ANCHOR_0_0);
5252// GriddedRegion gridReg = new GriddedRegion(PRVI25_RegionLoader.loadPRVI_MapExtents(), 0.025, GriddedRegion.ANCHOR_0_0);
53- GriddedRegion gridReg = new GriddedRegion (PRVI25_RegionLoader .loadPRVI_Tight (), 0.025 , GriddedRegion .ANCHOR_0_0 );
53+ // use for ERF+GMC
54+ GriddedRegion gridReg = new GriddedRegion (PRVI25_RegionLoader .loadPRVI_Tight (), 0.05 , GriddedRegion .ANCHOR_0_0 );
55+ // use for GMC
56+ // GriddedRegion gridReg = new GriddedRegion(PRVI25_RegionLoader.loadPRVI_Tight(), 0.025, GriddedRegion.ANCHOR_0_0);
5457 System .out .println ("Region has " +gridReg .getNodeCount ()+" nodes" );
5558
5659 Double vs30 = null ;
@@ -79,7 +82,7 @@ public static void main(String[] args) throws IOException {
7982// // including gridded
8083//// int mins = 1440*5;
8184//// File sourceTreeFile = new File(sourceDir, "logic_tree_full_gridded.json");
82- //// erfSamples = 10000 ; gmmSamplesPerERF = 1; jobSuffix = "_sampled"; logicTreeOutputName = "logic_tree_full_gridded_sampled.json";
85+ //// erfSamples = 20000 ; gmmSamplesPerERF = 1; jobSuffix = "_sampled"; logicTreeOutputName = "logic_tree_full_gridded_sampled.json";
8386////// File sourceTreeFile = new File(sourceDir, "logic_tree_full_gridded_sampled.json"); jobSuffix = "_sampled";
8487//// IncludeBackgroundOption bgOp = IncludeBackgroundOption.INCLUDE;
8588
@@ -96,9 +99,9 @@ public static void main(String[] args) throws IOException {
9699// File sourceDir = SUBDUCTION_DIR;
97100// File outputDir = new File(sourceDir.getParentFile(), sourceDir.getName()+"-gmTreeCalcs"+dirSuffix);
98101// // supra-seis only
99- //// File sourceTreeFile = new File(sourceDir, "logic_tree.json");
100- //// int mins = 1440;
101- //// IncludeBackgroundOption bgOp = IncludeBackgroundOption.EXCLUDE;
102+ // File sourceTreeFile = new File(sourceDir, "logic_tree.json");
103+ // int mins = 1440;
104+ // IncludeBackgroundOption bgOp = IncludeBackgroundOption.EXCLUDE;
102105// // interface gridded only
103106//// int mins = 1440;
104107////// File sourceTreeFile = new File(sourceDir, "logic_tree_gridded_only.json");
@@ -112,14 +115,14 @@ public static void main(String[] args) throws IOException {
112115//// jobSuffix = "_interface";
113116//// outputSuffix = jobSuffix;
114117// // interface both (combine only)
115- // combineOnly = true;
116- // int mins = 1440;
117- // forceInputFileName = "results_full_gridded_interface_only.zip";
118- // File sourceTreeFile = new File(sourceDir, "logic_tree_full_gridded.json");
119- // logicTreeOutputName = "logic_tree_full_gridded_interface_only.json";
120- // IncludeBackgroundOption bgOp = IncludeBackgroundOption.INCLUDE;
121- // jobSuffix = "_interface";
122- // outputSuffix = jobSuffix;
118+ //// combineOnly = true;
119+ //// int mins = 1440;
120+ //// forceInputFileName = "results_full_gridded_interface_only.zip";
121+ //// File sourceTreeFile = new File(sourceDir, "logic_tree_full_gridded.json");
122+ //// logicTreeOutputName = "logic_tree_full_gridded_interface_only.json";
123+ //// IncludeBackgroundOption bgOp = IncludeBackgroundOption.INCLUDE;
124+ //// jobSuffix = "_interface";
125+ //// outputSuffix = jobSuffix;
123126
124127 /*
125128 * Slab
@@ -303,7 +306,7 @@ else if (bgOp == IncludeBackgroundOption.EXCLUDE)
303306 List <Site > sites = new ArrayList <>();
304307 for (int row =1 ; row <csv .getNumRows (); row ++) {
305308 String name = csv .get (row , 0 );
306- Location loc = new Location (csv .getDouble (row , 1 ), csv .getDouble (row , 2 ));
309+ Location loc = new Location (csv .getDouble (row , 2 ), csv .getDouble (row , 1 ));
307310 sites .add (new Site (loc , name ));
308311 }
309312 csv = new CSVFile <>(true );
0 commit comments