@@ -58,7 +58,8 @@ public static void main(String[] args) throws IOException {
5858
5959 Double vs30 = null ;
6060
61- vs30 = 760d ; dirSuffix = "-vs760" ;
61+ // vs30 = 760d; dirSuffix = "-vs760";
62+ vs30 = 260d ; dirSuffix = "-vs260" ;
6263 Double sigmaTrunc = 3d ;
6364 boolean supersample = true ;
6465 int erfSamples = -1 ;
@@ -99,9 +100,9 @@ public static void main(String[] args) throws IOException {
99100// File sourceDir = SUBDUCTION_DIR;
100101// File outputDir = new File(sourceDir.getParentFile(), sourceDir.getName()+"-gmTreeCalcs"+dirSuffix);
101102// // supra-seis only
102- // File sourceTreeFile = new File(sourceDir, "logic_tree.json");
103- // int mins = 1440;
104- // IncludeBackgroundOption bgOp = IncludeBackgroundOption.EXCLUDE;
103+ //// File sourceTreeFile = new File(sourceDir, "logic_tree.json");
104+ //// int mins = 1440;
105+ //// IncludeBackgroundOption bgOp = IncludeBackgroundOption.EXCLUDE;
105106// // interface gridded only
106107//// int mins = 1440;
107108////// File sourceTreeFile = new File(sourceDir, "logic_tree_gridded_only.json");
@@ -115,57 +116,57 @@ public static void main(String[] args) throws IOException {
115116//// jobSuffix = "_interface";
116117//// outputSuffix = jobSuffix;
117118// // interface both (combine only)
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;
119+ // combineOnly = true;
120+ // int mins = 1440;
121+ // forceInputFileName = "results_full_gridded_interface_only.zip";
122+ // File sourceTreeFile = new File(sourceDir, "logic_tree_full_gridded.json");
123+ // logicTreeOutputName = "logic_tree_full_gridded_interface_only.json";
124+ // IncludeBackgroundOption bgOp = IncludeBackgroundOption.INCLUDE;
125+ // jobSuffix = "_interface";
126+ // outputSuffix = jobSuffix;
126127
127128 /*
128129 * Slab
129130 *
130131 * the logic_tree_gridded_only.json file you need is generated by subduction_slt_split.slurm
131132 */
132- // List<LogicTreeLevel<? extends LogicTreeNode>> gmmLevels = PRVI25_LogicTree.levelsSlabGMM;
133- // File sourceDir = SUBDUCTION_DIR;
134- // File outputDir = new File(sourceDir.getParentFile(), sourceDir.getName()+"-gmTreeCalcs"+dirSuffix);
135- // // always slab gridded only
136- // int mins = 1440;
137- // File sourceTreeFile = new File(sourceDir, "logic_tree_gridded_only.json");
138- // logicTreeOutputName = "logic_tree_gridded_slab_only.json";
139- // IncludeBackgroundOption bgOp = IncludeBackgroundOption.ONLY;
140- // forceInputFileName = "results_gridded_branches_slab_only.zip";
141- // jobSuffix = "_slab";
142- // outputSuffix = jobSuffix;
133+ List <LogicTreeLevel <? extends LogicTreeNode >> gmmLevels = PRVI25_LogicTree .levelsSlabGMM ;
134+ File sourceDir = SUBDUCTION_DIR ;
135+ File outputDir = new File (sourceDir .getParentFile (), sourceDir .getName ()+"-gmTreeCalcs" +dirSuffix );
136+ // always slab gridded only
137+ int mins = 1440 ;
138+ File sourceTreeFile = new File (sourceDir , "logic_tree_gridded_only.json" );
139+ logicTreeOutputName = "logic_tree_gridded_slab_only.json" ;
140+ IncludeBackgroundOption bgOp = IncludeBackgroundOption .ONLY ;
141+ forceInputFileName = "results_gridded_branches_slab_only.zip" ;
142+ jobSuffix = "_slab" ;
143+ outputSuffix = jobSuffix ;
143144
144145 /*
145146 * Branch averaged (GMM-only)
146147 */
147- List <LogicTreeLevel <? extends LogicTreeNode >> gmmLevels = PRVI25_LogicTree .levelsCombinedGMM ;
148- File sourceDir = COMBINED_DIR ;
149- // File sourceDir = new File(INV_DIR, "2025_01_02-prvi25_crustal_subduction_combined_branches");
150- File outputDir = new File (sourceDir .getParentFile (), sourceDir .getName ()+"-ba_only-gmTreeCalcs" +dirSuffix );
151- // write out a SLT that only contains that node
152- Preconditions .checkState (outputDir .exists () || outputDir .mkdir ());
153- File sourceTreeFile = new File (outputDir , "fake_erf_logic_tree.json" );
154- FileBackedLevel fakeLevel = new FileBackedLevel ("ERF Model" , "ERF" ,
155- List .of (new FileBackedNode ("Branch Averaged ERF" , "BranchAveragedERF" , 1d , "BA_ERF" )));
156- LogicTree <?> tempTree = LogicTree .buildExhaustive (List .of (fakeLevel ), true );
157- Preconditions .checkState (tempTree .size () == 1 );
158- File sourceFile = new File (outputDir , "fake_erf_slt.zip" );
159- SolutionLogicTree .FileBuilder builder = new SolutionLogicTree .FileBuilder (sourceFile );
160- builder .setSerializeGridded (true );
161- builder .solution (FaultSystemSolution .load (new File (sourceDir , COMBINED_SOL .getName ())), tempTree .getBranch (0 ));
162- builder .close ();
163- forceInputFileName = sourceFile .getName ();
164- tempTree .write (sourceTreeFile );
165- logicTreeOutputName = "logic_tree.json" ;
166- sourceDir = outputDir ;
167- int mins = 1440 ;
168- IncludeBackgroundOption bgOp = IncludeBackgroundOption .INCLUDE ;
148+ // List<LogicTreeLevel<? extends LogicTreeNode>> gmmLevels = PRVI25_LogicTree.levelsCombinedGMM;
149+ // File sourceDir = COMBINED_DIR;
150+ //// File sourceDir = new File(INV_DIR, "2025_01_02-prvi25_crustal_subduction_combined_branches");
151+ // File outputDir = new File(sourceDir.getParentFile(), sourceDir.getName()+"-ba_only-gmTreeCalcs"+dirSuffix);
152+ // // write out a SLT that only contains that node
153+ // Preconditions.checkState(outputDir.exists() || outputDir.mkdir());
154+ // File sourceTreeFile = new File(outputDir, "fake_erf_logic_tree.json");
155+ // FileBackedLevel fakeLevel = new FileBackedLevel("ERF Model", "ERF",
156+ // List.of(new FileBackedNode("Branch Averaged ERF", "BranchAveragedERF", 1d, "BA_ERF")));
157+ // LogicTree<?> tempTree = LogicTree.buildExhaustive(List.of(fakeLevel), true);
158+ // Preconditions.checkState(tempTree.size() == 1);
159+ // File sourceFile = new File(outputDir, "fake_erf_slt.zip");
160+ // SolutionLogicTree.FileBuilder builder = new SolutionLogicTree.FileBuilder(sourceFile);
161+ // builder.setSerializeGridded(true);
162+ // builder.solution(FaultSystemSolution.load(new File(sourceDir, COMBINED_SOL.getName())), tempTree.getBranch(0));
163+ // builder.close();
164+ // forceInputFileName = sourceFile.getName();
165+ // tempTree.write(sourceTreeFile);
166+ // logicTreeOutputName = "logic_tree.json";
167+ // sourceDir = outputDir;
168+ // int mins = 1440;
169+ // IncludeBackgroundOption bgOp = IncludeBackgroundOption.INCLUDE;
169170
170171
171172 // FOR ALL
0 commit comments