Skip to content

Commit 8c2a8c1

Browse files
Merge pull request #432 from pmpowers-usgs/basin-cleanup-javadoc
docs and cleanup
2 parents f797bf6 + 056416d commit 8c2a8c1

6 files changed

Lines changed: 11 additions & 27 deletions

File tree

src/gov/usgs/earthquake/nshmp/gmm/AbrahamsonEtAl_2014.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
*
4646
* @author Peter Powers
4747
* @see Gmm#ASK_14
48-
* @see Gmm#ASK_14_BASIN_AMP
48+
* @see Gmm#ASK_14_BASIN
4949
*/
5050
public class AbrahamsonEtAl_2014 implements GroundMotionModel {
5151

src/gov/usgs/earthquake/nshmp/gmm/AtkinsonMacias_2009.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
*
6565
* @author Peter Powers
6666
* @see Gmm#AM_09_INTERFACE
67-
* @see Gmm#AM_09_INTERFACE_BASIN_AMP
67+
* @see Gmm#AM_09_INTERFACE_BASIN
6868
*/
6969
public class AtkinsonMacias_2009 implements GroundMotionModel {
7070

@@ -147,10 +147,7 @@ public final ScalarGroundMotion calc(final GmmInput in) {
147147
double site = siteAmp.siteAmp(μPga, in.vs30);
148148
double μAm = μRef + site;
149149

150-
/*
151-
* Add CB14 deep basin amplification term if (1) z2p5 is non-NaN, (2) this
152-
* instance is basin amplifying and (3) T>0.5s (handled in CB14)
153-
*/
150+
/* Add (possibly depth-tapered) CB14 deep basin term. */
154151
if (deepBasinEffect()) {
155152
μAm += cb14.deepBasinScaling(in.z2p5);
156153
}

src/gov/usgs/earthquake/nshmp/gmm/BcHydro_2012.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@
7979
* @author Peter Powers
8080
* @see Gmm#BCHYDRO_12_INTERFACE
8181
* @see Gmm#BCHYDRO_12_SLAB
82-
* @see Gmm#BCHYDRO_12_INTERFACE_BASIN_AMP
83-
* @see Gmm#BCHYDRO_12_SLAB_BASIN_AMP
82+
* @see Gmm#BCHYDRO_12_INTERFACE_BASIN
83+
* @see Gmm#BCHYDRO_12_SLAB_BASIN
8484
*/
8585
public abstract class BcHydro_2012 implements GroundMotionModel {
8686

@@ -165,10 +165,7 @@ public final ScalarGroundMotion calc(final GmmInput in) {
165165
double pgaRock = exp(calcMean(coeffsPGA, isSlab(), 0.0, in.Mw, in.rRup, in.zTop, VS30_ROCK));
166166
double μAsk = calcMean(coeffs, isSlab(), pgaRock, in.Mw, in.rRup, in.zTop, in.vs30);
167167

168-
/*
169-
* Add CB14 deep basin amplification term if (1) z2p5 is non-NaN, (2) this
170-
* instance is basin amplifying and (3) T>0.5s (handled in CB14)
171-
*/
168+
/* Add (possibly depth-tapered) CB14 deep basin term. */
172169
if (deepBasinEffect()) {
173170
μAsk += cb14.deepBasinScaling(in.z2p5);
174171
}

src/gov/usgs/earthquake/nshmp/gmm/BooreEtAl_2014.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,7 @@ private static final double calcDeltaZ1(
236236

237237
double vsPow4 = vs30 * vs30 * vs30 * vs30;
238238
double z1ref = exp(-7.15 / 4.0 * log((vsPow4 + A) / B)) / 1000.0;
239-
double Δz1 = z1p0 - z1ref;
240-
241-
// if (basinAmpOnly) {
242-
// double Δz1scale = GmmUtils.deltaZ1scale(imt, z1p0);
243-
// return Δz1 * Δz1scale;
244-
// }
245-
return Δz1;
239+
return z1p0 - z1ref;
246240
}
247241

248242
// Aleatory uncertainty model

src/gov/usgs/earthquake/nshmp/gmm/CampbellBozorgnia_2014.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ private static ScalarGroundMotion calc(
179179
}
180180

181181
/*
182-
* Return the CB14 basin amplification term for deep basins. If z2.5 > 3km,
182+
* Return the CB14 basin term for deep basins. If z2.5 > 3km,
183183
* returns full scaling term; tapers to 0 weight at 1km. Only returns non-zero
184184
* value at long periods T > 0.5s (blending 0.75s using log T scaling of
185185
* 0.585)
@@ -335,7 +335,6 @@ private static double basinResponseTerm(
335335
return zRefTerm;
336336
}
337337
}
338-
339338
return z2p5Term;
340339
}
341340

src/gov/usgs/earthquake/nshmp/gmm/ZhaoEtAl_2006.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@
8484
* @author Peter Powers
8585
* @see Gmm#ZHAO_06_INTERFACE
8686
* @see Gmm#ZHAO_06_SLAB
87-
* @see Gmm#ZHAO_06_INTERFACE_BASIN_AMP
88-
* @see Gmm#ZHAO_06_SLAB_BASIN_AMP
87+
* @see Gmm#ZHAO_06_INTERFACE_BASIN
88+
* @see Gmm#ZHAO_06_SLAB_BASIN
8989
*/
9090
public abstract class ZhaoEtAl_2006 implements GroundMotionModel {
9191

@@ -219,10 +219,7 @@ public final ScalarGroundMotion calc(GmmInput in) {
219219
double zSiteVs30 = siteTermStep(coeffs, in.vs30);
220220
double μZhao = calcMean(coeffs, isSlab(), zSiteVs30, in);
221221

222-
/*
223-
* Add CB14 deep basin amplification term if (1) z2p5 is non-NaN, (2) this
224-
* instance is basin amplifying and (3) T>0.5s (handled in CB14)
225-
*/
222+
/* Add (possibly depth-tapered) CB14 deep basin term. */
226223
if (basinEffect()) {
227224
μZhao += cb14.deepBasinScaling(in.z2p5);
228225
}

0 commit comments

Comments
 (0)