Skip to content

Commit 69ca1c7

Browse files
author
Kevin Milner
committed
updates for 12/12 draft model
1 parent e8188ab commit 69ca1c7

File tree

5 files changed

+24
-50
lines changed

5 files changed

+24
-50
lines changed

src/main/java/scratch/kevin/nshm23/BranchAveragedHazardScriptWriter.java

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,31 +70,34 @@ public static void main(String[] args) throws IOException {
7070
gridSpacing = 0.01;
7171

7272
gmms = new AttenRelRef[] { AttenRelRef.USGS_PRVI_ACTIVE, AttenRelRef.USGS_PRVI_INTERFACE, AttenRelRef.USGS_PRVI_SLAB };
73+
periods = new double[] { 0d, 0.2d, 1d, 5d };
74+
supersample = true;
7375

7476
// String suffix = "ba_only-LARGE";
7577
// String solFileName = "results_PRVI_SUB_FM_LARGE_branch_averaged_gridded.zip";
7678

7779
// String suffix = "ba_only-LARGE-true_pt_src";
7880
// String solFileName = "results_PRVI_SUB_FM_LARGE_branch_averaged_gridded.zip";
7981

80-
String baseDirName = "2024_11_19-prvi25_crustal_subduction_combined_branches";
82+
// String baseDirName = "2024_12_12-prvi25_crustal_subduction_combined_branches";
8183
// String suffix = "ba_only";
82-
// String suffix = "ba_only-test_grid_branch";
83-
String suffix = "ba_only-test_grid_branch-supersample"; supersample = true;
84-
String solFileName = "combined_branch_averaged_solution.zip";
84+
// String solFileName = "combined_branch_averaged_solution.zip";
8585

86-
// String baseDirName = "2024_11_19-prvi25_crustal_branches-dmSample5x";
86+
// String baseDirName = "2024_12_12-prvi25_crustal_branches-dmSample5x";
8787
// String suffix = "ba_only";
8888
// String solFileName = "results_PRVI_CRUSTAL_FM_V1p1_branch_averaged_gridded.zip";
8989

90-
// String baseDirName = "2024_11_19-prvi25_subduction_branches";
91-
// String suffix = "ba_only-SLAB_only";
92-
// String solFileName = "results_PRVI_SLAB_ONLY_branch_averaged_gridded.zip";
93-
// bgOps = new IncludeBackgroundOption[] { IncludeBackgroundOption.ONLY };
94-
//// String suffix = "ba_only-INTERFACE_only";
95-
//// String solFileName = "results_PRVI_INTERFACE_ONLY_branch_averaged_gridded.zip";
96-
//// String suffix = "ba_only-both_fms";
97-
//// String solFileName = "results_PRVI_SUB_FMs_combined_branch_averaged_gridded.zip";
90+
String baseDirName = "2024_12_12-prvi25_subduction_branches";
91+
String suffix = "ba_only-SLAB_only";
92+
String solFileName = "results_PRVI_SLAB_ONLY_branch_averaged_gridded.zip";
93+
bgOps = new IncludeBackgroundOption[] { IncludeBackgroundOption.ONLY };
94+
// String suffix = "ba_only-INTERFACE_only";
95+
// String solFileName = "results_PRVI_INTERFACE_ONLY_branch_averaged_gridded.zip";
96+
// String suffix = "ba_only-both_fms";
97+
// String solFileName = "results_PRVI_SUB_FMs_combined_branch_averaged_gridded.zip";
98+
99+
// vs30 = 760d; suffix += "-vs760";
100+
vs30 = 260d; suffix += "-vs260";
98101

99102
/*
100103
* RSQSim

src/main/java/scratch/kevin/nshm23/MPJ_LogicTreeInversionRunnerScriptWriter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public static void main(String[] args) throws IOException {
158158
int samplingBranchCountMultiplier = 1;
159159

160160
String dirName = new SimpleDateFormat("yyyy_MM_dd").format(new Date());
161-
// String dirName = "2024_11_19";
161+
// String dirName = "2024_12_12";
162162
String dirSuffix = null;
163163

164164
/*
@@ -653,7 +653,7 @@ public static void main(String[] args) throws IOException {
653653

654654
// dirName += "-proxyGriddedTests";
655655

656-
// Class<? extends InversionConfigurationFactory> factoryClass = PRVI25_InvConfigFactory.class;
656+
Class<? extends InversionConfigurationFactory> factoryClass = PRVI25_InvConfigFactory.class;
657657

658658
// Class<? extends InversionConfigurationFactory> factoryClass = PRVI25_InvConfigFactory.GriddedUseM1Bounds.class;
659659
// dirName += "-grid_bounds_m1";
@@ -673,8 +673,8 @@ public static void main(String[] args) throws IOException {
673673
// Class<? extends InversionConfigurationFactory> factoryClass = PRVI25_InvConfigFactory.GriddedForceSlab2Depths.class;
674674
// dirName += "-gridded_use_slab2";
675675

676-
Class<? extends InversionConfigurationFactory> factoryClass = PRVI25_InvConfigFactory.NoProxyLengthLimit.class;
677-
dirName += "-no_proxy_len_limit";
676+
// Class<? extends InversionConfigurationFactory> factoryClass = PRVI25_InvConfigFactory.NoProxyLengthLimit.class;
677+
// dirName += "-no_proxy_len_limit";
678678

679679
if (!factoryClass.equals(PRVI25_InvConfigFactory.class)) {
680680
// try instantiate it to make sure we get any static modifiers that might change branch weights

src/main/java/scratch/kevin/prvi25/CrustalSubductionTrueMeanCreator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public static void main(String[] args) throws IOException {
100100
subductionBASols.put(fm, sol);
101101
}
102102
}
103-
Preconditions.checkState(!subductionBASols.isEmpty());
103+
Preconditions.checkState(subductionBASols.size() == 2);
104104

105105
List<LogicTreeLevel<? extends LogicTreeNode>> levels = new ArrayList<>();
106106
List<LogicTreeBranch<LogicTreeNode>> branches = new ArrayList<>();

src/main/java/scratch/kevin/prvi25/figures/BranchSensitivityColorScaleWriter.java

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/main/java/scratch/kevin/prvi25/figures/PRVI_Paths.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ public class PRVI_Paths {
99

1010
public static final File INV_DIR = new File("/data/kevin/nshm23/batch_inversions/");
1111

12-
public static final File CRUSTAL_DIR = new File(INV_DIR, "2024_11_19-prvi25_crustal_branches-dmSample5x");
12+
public static final File CRUSTAL_DIR = new File(INV_DIR, "2024_12_12-prvi25_crustal_branches-dmSample5x");
1313
public static final File CRUSTAL_SOL_GRIDDED = new File(CRUSTAL_DIR, "results_PRVI_CRUSTAL_FM_V1p1_branch_averaged_gridded.zip");
1414
public static final File CRUSTAL_SOL_SUPRA_ONLY = new File(CRUSTAL_DIR, "results_PRVI_CRUSTAL_FM_V1p1_branch_averaged.zip");
1515

16-
public static final File SUBDUCTION_DIR = new File(INV_DIR, "2024_11_19-prvi25_subduction_branches");
16+
public static final File SUBDUCTION_DIR = new File(INV_DIR, "2024_12_12-prvi25_subduction_branches");
1717
public static final File SUBDUCTION_SOL_LARGE = new File(SUBDUCTION_DIR, "results_PRVI_SUB_FM_LARGE_branch_averaged_gridded.zip");
1818
public static final File SUBDUCTION_SOL_SMALL = new File(SUBDUCTION_DIR, "results_PRVI_SUB_FM_SMALL_branch_averaged_gridded.zip");
1919

20-
public static final File COMBINED_DIR = new File(INV_DIR, "2024_11_19-prvi25_crustal_subduction_combined_branches");
20+
public static final File COMBINED_DIR = new File(INV_DIR, "2024_12_12-prvi25_crustal_subduction_combined_branches");
2121
public static final File COMBINED_SOL = new File(COMBINED_DIR, "combined_branch_averaged_solution.zip");
2222

2323
}

0 commit comments

Comments
 (0)