The output format is a NSHMP file format that works with a number of 31 | * legacy fortran codes still in use. See nshmp-haz-fortran. Users should be aware that the format 34 | * has certain restrictions, for instance, the maximum number of intensity 35 | * measure levels that can be accomodated is 20. Buyer beware. 36 | */ 37 | BINARY; 38 | } 39 | -------------------------------------------------------------------------------- /src/gov/usgs/earthquake/nshmp/calc/DistributionFormat.java: -------------------------------------------------------------------------------- 1 | package gov.usgs.earthquake.nshmp.calc; 2 | 3 | /** 4 | * Distribution format. 5 | * 6 | * @author Peter Powers 7 | */ 8 | @SuppressWarnings("javadoc") 9 | public enum DistributionFormat { 10 | 11 | INCREMENTAL, 12 | CUMULATIVE; 13 | 14 | } 15 | -------------------------------------------------------------------------------- /src/gov/usgs/earthquake/nshmp/calc/HazardInput.java: -------------------------------------------------------------------------------- 1 | package gov.usgs.earthquake.nshmp.calc; 2 | 3 | import gov.usgs.earthquake.nshmp.eq.model.Rupture; 4 | import gov.usgs.earthquake.nshmp.gmm.GmmInput; 5 | import gov.usgs.earthquake.nshmp.gmm.GroundMotionModel; 6 | 7 | /** 8 | * A {@link GroundMotionModel} input that carries {@link Rupture} rate 9 | * information along with it 10 | * 11 | * @author Peter Powers 12 | * @see GmmInput 13 | */ 14 | public final class HazardInput extends GmmInput { 15 | // TODO package rpivatize 16 | 17 | final double rate; 18 | 19 | public HazardInput( 20 | double rate, 21 | double Mw, double rJB, double rRup, double rX, 22 | double dip, double width, double zTop, double zHyp, double rake, 23 | double vs30, boolean vsInf, double z1p0, double z2p5) { 24 | 25 | super(Mw, rJB, rRup, rX, dip, width, zTop, zHyp, rake, vs30, vsInf, z1p0, z2p5); 26 | this.rate = rate; 27 | } 28 | 29 | @Override 30 | public String toString() { 31 | return getClass().getSimpleName() + " [rate=" + String.format("%.4g", rate) + " " + 32 | super.toString() + "]"; 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/gov/usgs/earthquake/nshmp/calc/SourceInputList.java: -------------------------------------------------------------------------------- 1 | package gov.usgs.earthquake.nshmp.calc; 2 | 3 | import static com.google.common.base.Preconditions.checkNotNull; 4 | 5 | import gov.usgs.earthquake.nshmp.eq.model.Source; 6 | 7 | /** 8 | * A {@code List} of {@code HazardInput}s that contains a reference to the 9 | * single parent {@code Source} from which the inputs were derived. This allows 10 | * for downstream access to parent source properties. 11 | * 12 | * @author Peter Powers 13 | */ 14 | final class SourceInputList extends InputList { 15 | 16 | final Source parent; 17 | 18 | SourceInputList(Source parent) { 19 | this.parent = checkNotNull(parent); 20 | } 21 | 22 | @Override 23 | String parentName() { 24 | return parent.name(); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/gov/usgs/earthquake/nshmp/calc/ValueFormat.java: -------------------------------------------------------------------------------- 1 | package gov.usgs.earthquake.nshmp.calc; 2 | 3 | import gov.usgs.earthquake.nshmp.internal.Parsing; 4 | 5 | /** 6 | * Hazard curve value types. 7 | * 8 | * @author Peter Powers 9 | */ 10 | public enum ValueFormat { 11 | 12 | /** Annual-rate. */ 13 | ANNUAL_RATE, 14 | 15 | /** Poisson probability. */ 16 | POISSON_PROBABILITY; 17 | 18 | @Override 19 | public String toString() { 20 | return Parsing.enumLabelWithSpaces(this, true); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/gov/usgs/earthquake/nshmp/calc/Vs30.java: -------------------------------------------------------------------------------- 1 | package gov.usgs.earthquake.nshmp.calc; 2 | 3 | /** 4 | * Identifiers for commonly used values of Vs30. These correspond to the NEHERP 5 | * site classes that have histroically been supported by the NSHMp in hazard 6 | * calculations. 7 | * 8 | * @author Peter Powers 9 | */ 10 | public enum Vs30 { 11 | 12 | /** NEHRP site class A. */ 13 | VS_2000("Site class A"), 14 | 15 | /** NEHRP site class B. */ 16 | VS_1150("Site class B"), 17 | 18 | /** NEHRP B/C boundary site class. */ 19 | VS_760("B/C boundary"), 20 | 21 | /** NEHRP site class C. */ 22 | VS_537("Site class C"), 23 | 24 | /** NEHRP C/D boundary site class. */ 25 | VS_360("C/D boundary"), 26 | 27 | /** NEHRP site class D. */ 28 | VS_259("Site class D"), 29 | 30 | /** NEHRP D/E boundary site class. */ 31 | VS_180("D/E boundary"); 32 | 33 | private String label; 34 | private double value; 35 | 36 | private Vs30(String label) { 37 | this.label = label; 38 | this.value = Double.valueOf(name().substring(3)); 39 | } 40 | 41 | @Override 42 | public String toString() { 43 | return this.name().substring(3) + " m/s (" + label + ")"; 44 | } 45 | 46 | /** 47 | * Return the Vs30 value for this identifier. 48 | */ 49 | public double value() { 50 | return value; 51 | } 52 | 53 | /** 54 | * Create a Vs30 constant from a Vs30 {@code value}. 55 | * @param value to process 56 | */ 57 | public static Vs30 fromValue(double value) { 58 | String name = "VS_" + (int) value; 59 | return Enum.valueOf(Vs30.class, name); 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /src/gov/usgs/earthquake/nshmp/calc/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Hazard calculation classes and utilties. 3 | */ 4 | package gov.usgs.earthquake.nshmp.calc; 5 | -------------------------------------------------------------------------------- /src/gov/usgs/earthquake/nshmp/data/RegularDataArray.java: -------------------------------------------------------------------------------- 1 | package gov.usgs.earthquake.nshmp.data; 2 | 3 | import java.util.Arrays; 4 | import java.util.Spliterator; 5 | 6 | public class RegularDataArray implements DataArray { 7 | 8 | private final double[] data; 9 | 10 | RegularDataArray(double[] data) { 11 | this.data = data; 12 | } 13 | 14 | @Override 15 | public Spliterator.OfDouble spliterator() { 16 | return Arrays.spliterator(data); 17 | } 18 | 19 | @Override 20 | public double get(int index) { 21 | return data[index]; 22 | } 23 | 24 | @Override 25 | public int size() { 26 | return data.length; 27 | } 28 | 29 | @Override 30 | public double[] toArray() { 31 | return Arrays.copyOf(data, data.length); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/gov/usgs/earthquake/nshmp/data/XyPoint.java: -------------------------------------------------------------------------------- 1 | package gov.usgs.earthquake.nshmp.data; 2 | 3 | /** 4 | * Wrapper interface for xy-value data pairs. Implementations that permit 5 | * setting the y-value will propogate through to any backing data structure 6 | * (e.g. a {@link XySequence}). 7 | * 8 | * @author Peter Powers 9 | * @see XySequence 10 | */ 11 | public interface XyPoint { 12 | 13 | /** 14 | * Return the x-value of this point. 15 | * @return x 16 | */ 17 | double x(); 18 | 19 | /** 20 | * Return the y-value of this point. 21 | * @return y 22 | */ 23 | double y(); 24 | 25 | /** 26 | * Set the y-value of this point. 27 | * @param y the y-value to set 28 | */ 29 | void set(double y); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/gov/usgs/earthquake/nshmp/data/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Double-valued data utilities. 3 | */ 4 | package gov.usgs.earthquake.nshmp.data; 5 | -------------------------------------------------------------------------------- /src/gov/usgs/earthquake/nshmp/eq/TectonicSetting.java: -------------------------------------------------------------------------------- 1 | package gov.usgs.earthquake.nshmp.eq; 2 | 3 | import gov.usgs.earthquake.nshmp.internal.Parsing; 4 | 5 | /** 6 | * Tectonic setting identifier. 7 | * @author Peter Powers 8 | */ 9 | public enum TectonicSetting { 10 | 11 | /** Active shallow crust tectonic setting identifier. */ 12 | ACTIVE_SHALLOW_CRUST, 13 | 14 | /** Stable shallow crust tectonic setting identifier. */ 15 | STABLE_SHALLOW_CRUST, 16 | 17 | /** Subduction Interface tectonic setting identifier. */ 18 | SUBDUCTION_INTERFACE, 19 | 20 | /** Subduction IntraSlab tectonic setting identifier. */ 21 | SUBDUCTION_INTRASLAB, 22 | 23 | /** Volcanic tectonic setting identifier. */ 24 | VOLCANIC; 25 | 26 | @Override 27 | public String toString() { 28 | return Parsing.enumLabelWithSpaces(this, true); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/gov/usgs/earthquake/nshmp/eq/fault/FocalMech.java: -------------------------------------------------------------------------------- 1 | package gov.usgs.earthquake.nshmp.eq.fault; 2 | 3 | import gov.usgs.earthquake.nshmp.internal.Parsing; 4 | 5 | /** 6 | * Generalized identifier for different focal mechanism types. 7 | * @author Peter Powers 8 | */ 9 | public enum FocalMech { 10 | 11 | // TODO can this be reconciled with FaultStyle 12 | 13 | /** A strike-slip focal mechanism. */ 14 | STRIKE_SLIP(90.0, 0.0), 15 | 16 | /** A reverse slip (or thrust) focal mechanism. */ 17 | REVERSE(50.0, 90.0), 18 | 19 | /** A normal slip focal mechanism. */ 20 | NORMAL(50.0, -90.0); 21 | 22 | private double dip; 23 | private double rake; 24 | 25 | private FocalMech(double dip, double rake) { 26 | this.dip = dip; 27 | this.rake = rake; 28 | } 29 | 30 | /** 31 | * Returns a 'standard' dip value for this mechanism. 32 | * @return the dip 33 | */ 34 | public double dip() { 35 | return dip; 36 | } 37 | 38 | /** 39 | * Returns a 'standard' rake value for this mechanism. 40 | * 41 | *
NOTE: This value may not be appropriate for future PSHA if
42 | * directivity is considered. For example, {@code STRIKE_SLIP} currently
43 | * returns a left-lateral rake. Furthermore, oblique focal mechanisms will
44 | * need to specify right- or left-lateral reverse and normal combinations.
45 | *
46 | * @return the rake
47 | */
48 | public double rake() {
49 | return rake;
50 | }
51 |
52 | @Override
53 | public String toString() {
54 | return Parsing.enumLabelWithDashes(this, true);
55 | }
56 |
57 | }
58 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/eq/fault/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Fault representations.
3 | */
4 | package gov.usgs.earthquake.nshmp.eq.fault;
5 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/eq/fault/surface/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Fault surfaces.
3 | */
4 | package gov.usgs.earthquake.nshmp.eq.fault.surface;
5 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/eq/model/PointSourceType.java:
--------------------------------------------------------------------------------
1 | package gov.usgs.earthquake.nshmp.eq.model;
2 |
3 | /**
4 | * Point source implementation identifier.
5 | *
6 | * @author Peter Powers
7 | */
8 | @SuppressWarnings("javadoc")
9 | public enum PointSourceType {
10 | POINT,
11 | FINITE,
12 | FIXED_STRIKE;
13 | }
14 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/eq/model/SlabParser.java:
--------------------------------------------------------------------------------
1 | package gov.usgs.earthquake.nshmp.eq.model;
2 |
3 | import static gov.usgs.earthquake.nshmp.eq.model.SourceType.SLAB;
4 |
5 | import java.io.IOException;
6 | import java.io.InputStream;
7 |
8 | import javax.xml.parsers.SAXParser;
9 |
10 | import org.xml.sax.SAXException;
11 |
12 | /*
13 | * Placeholder parser; delegates to GridParser.
14 | *
15 | * @author Peter Powers
16 | */
17 | class SlabParser {
18 |
19 | private GridParser gridParser;
20 |
21 | private SlabParser(SAXParser sax) {
22 | gridParser = GridParser.create(sax);
23 | gridParser.type = SLAB;
24 | }
25 |
26 | static SlabParser create(SAXParser sax) {
27 | return new SlabParser(sax);
28 | }
29 |
30 | SlabSourceSet parse(
31 | InputStream in,
32 | GmmSet gmmSet,
33 | ModelConfig config) throws SAXException, IOException {
34 |
35 | GridSourceSet delegate = gridParser.parse(in, gmmSet, config);
36 | return new SlabSourceSet(delegate);
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/eq/model/Source.java:
--------------------------------------------------------------------------------
1 | package gov.usgs.earthquake.nshmp.eq.model;
2 |
3 | import java.util.List;
4 |
5 | import gov.usgs.earthquake.nshmp.data.XySequence;
6 | import gov.usgs.earthquake.nshmp.geo.Location;
7 | import gov.usgs.earthquake.nshmp.mfd.IncrementalMfd;
8 | import gov.usgs.earthquake.nshmp.util.Named;
9 |
10 | /**
11 | * An earthquake {@code Source}; usually some physical or pseudo-representation
12 | * of a fault and associated {@link IncrementalMfd}s governing the size and rate
13 | * of all possible {@link Rupture}s.
14 | *
15 | * @author Peter Powers
16 | */
17 | public interface Source extends Named, Iterable
8 | *
9 | * Description: This interface must be implemented by all comparators of
10 | * DataPoint2D. The comparator uses a tolerance to specify when two values are
11 | * within tolerance of each other, they are equal
12 | *
13 | * @author Steven W. Rock
14 | * @version 1.0
15 | */
16 |
17 | public interface Point2DComparator extends Comparator See {@link gov.usgs.earthquake.nshmp.geo.json.GeoJson} for usage and
5 | * examples.
6 | */
7 | package gov.usgs.earthquake.nshmp.geo.json;
8 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/geo/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Geographic data classes and utilities.
3 | *
4 | * All objects and methods in this package assume that depths are
5 | * positive-down, consistent with seismological convention.
6 | *
7 | * Note that while the objects and methods of this package produce reliable
8 | * results for most regions of the globe, situations may arise in which users
9 | * encounter unexpected behaviour and results. For instance, the 'fast'
10 | * algorithms in {@link gov.usgs.earthquake.nshmp.geo.Locations} (e.g.
11 | * {@link gov.usgs.earthquake.nshmp.geo.Locations#horzDistanceFast(Location, Location)}
12 | * ) will not produce accurate results when used in close proximity to the poles
13 | * or when locations span the antimeridian (the -180° +180° transition). In such
14 | * cases, users should consider substituting slower, but more accurate
15 | * algorithms. In the latter case, one could alternatively opt to use locations
16 | * referenced to 0° to 360° instead. Exceptional behavior is well documented in
17 | * the {@link gov.usgs.earthquake.nshmp.geo.Locations} class.
18 | */
19 | package gov.usgs.earthquake.nshmp.geo;
20 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/ConvertsMag.java:
--------------------------------------------------------------------------------
1 | package gov.usgs.earthquake.nshmp.gmm;
2 |
3 | /**
4 | * Implemented by ground motion models (GMMs) that perform a magnitude
5 | * conversion prior to using the value.
6 | *
7 | * At present such conversions are restricted to the 7 ground motion models
8 | * (GMMs) used for 2008 CEUS gridded seismicity sources. All are designed to
9 | * work with Mw but the grid source magnitudes are presented as
10 | * mb. Note that {@link ToroEtAl_1997} provides mb
11 | * specific coefficients and does not need to implement to this interface.
12 | *
13 | * @author Peter Powers
14 | * @see MagConverter
15 | * @see CeusMb
16 | * @see AtkinsonBoore_2006
17 | * @see Campbell_2003
18 | * @see FrankelEtAl_1996
19 | * @see SilvaEtAl_2002
20 | * @see TavakoliPezeshk_2005
21 | */
22 | public interface ConvertsMag {
23 |
24 | /**
25 | * Returns a magnitude scale converter.
26 | * @return a magnitude converter
27 | */
28 | public MagConverter converter();
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/DefaultScalarGroundMotion.java:
--------------------------------------------------------------------------------
1 | package gov.usgs.earthquake.nshmp.gmm;
2 |
3 | /**
4 | * Default wrapper for ground motion prediction equation (GMPE) results.
5 | *
6 | * @author Peter Powers
7 | */
8 | public class DefaultScalarGroundMotion implements ScalarGroundMotion {
9 |
10 | private double mean;
11 | private double sigma;
12 |
13 | DefaultScalarGroundMotion(double mean, double sigma) {
14 | this.mean = mean;
15 | this.sigma = sigma;
16 | }
17 |
18 | /**
19 | * Create a new ground motion container.
20 | *
21 | * @param mean ground motion (in natural log units)
22 | * @param sigma aleatory uncertainty
23 | * @return a new scalar ground motion container.
24 | */
25 | public static DefaultScalarGroundMotion create(double mean, double sigma) {
26 | return new DefaultScalarGroundMotion(mean, sigma);
27 | }
28 |
29 | @Override
30 | public double mean() {
31 | return mean;
32 | }
33 |
34 | @Override
35 | public double sigma() {
36 | return sigma;
37 | }
38 |
39 | @Override
40 | public String toString() {
41 | return new StringBuilder(getClass().getSimpleName())
42 | .append(" [Median: ")
43 | .append(String.format("%.6f", Math.exp(mean)))
44 | .append(" Sigma: ")
45 | .append(String.format("%.6f", sigma))
46 | .append("]")
47 | .toString();
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/FaultStyle.java:
--------------------------------------------------------------------------------
1 | package gov.usgs.earthquake.nshmp.gmm;
2 |
3 | import gov.usgs.earthquake.nshmp.internal.Parsing;
4 |
5 | /**
6 | * Style-of-faulting identifier.
7 | * @author Peter Powers
8 | */
9 | public enum FaultStyle {
10 |
11 | // TODO can this be reconciled with FocalMech
12 |
13 | /** Strike-slip fault identifier. */
14 | STRIKE_SLIP,
15 |
16 | /** Normal fault identifier. */
17 | NORMAL,
18 |
19 | /** Reverse fault identifier. */
20 | REVERSE,
21 |
22 | /** Reverse-oblique identifier. */
23 | REVERSE_OBLIQUE,
24 |
25 | /** Unknown fault style identifier. */
26 | UNKNOWN;
27 |
28 | @Override
29 | public String toString() {
30 | return Parsing.enumLabelWithDashes(this, true);
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/GmmAttribute.java:
--------------------------------------------------------------------------------
1 | package gov.usgs.earthquake.nshmp.gmm;
2 |
3 | import static com.google.common.base.CaseFormat.LOWER_CAMEL;
4 | import static com.google.common.base.CaseFormat.UPPER_UNDERSCORE;
5 |
6 | import com.google.common.base.CaseFormat;
7 |
8 | /**
9 | * Ground motion model (Gmm) XML attributes.
10 | * @author Peter Powers
11 | */
12 | @SuppressWarnings("javadoc")
13 | public enum GmmAttribute {
14 |
15 | ID,
16 | WEIGHT,
17 |
18 | VALUES,
19 | WEIGHTS,
20 |
21 | MAX_DISTANCE;
22 |
23 | /**
24 | * Returns a {@code CaseFormat#LOWER_CAMEL} {@code String} representation of
25 | * this {@code GmmAttribute}.
26 | * @see CaseFormat
27 | */
28 | @Override
29 | public String toString() {
30 | return UPPER_UNDERSCORE.to(LOWER_CAMEL, name());
31 | }
32 |
33 | /**
34 | * Converts supplied {@code String} to the equivalent {@code GmmAttribute}.
35 | * Method expects a {@code String} with {@code CaseFormat#LOWER_CAMEL}
36 | * @param s {@code String} to convert
37 | * @return the corresponding {@code GmmAttribute}
38 | * @see CaseFormat
39 | * @throws IllegalArgumentException if supplied {@code String} is incorrectly
40 | * formatted or no matching {@code GmmAttribute} exists
41 | */
42 | public static GmmAttribute fromString(String s) {
43 | return valueOf(LOWER_CAMEL.to(UPPER_UNDERSCORE, s));
44 | }
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/GmmElement.java:
--------------------------------------------------------------------------------
1 | package gov.usgs.earthquake.nshmp.gmm;
2 |
3 | import static com.google.common.base.CaseFormat.UPPER_CAMEL;
4 | import static com.google.common.base.CaseFormat.UPPER_UNDERSCORE;
5 |
6 | import com.google.common.base.CaseFormat;
7 |
8 | /**
9 | * Ground motion model (Gmm) XML elements.
10 | * @author Peter Powers
11 | */
12 | @SuppressWarnings("javadoc")
13 | public enum GmmElement {
14 |
15 | GROUND_MOTION_MODELS,
16 | UNCERTAINTY,
17 | MODEL_SET,
18 | MODEL;
19 |
20 | /**
21 | * Returns a {@code CaseFormat#UPPER_CAMEL} {@code String} representation of
22 | * this {@code GmmElement}.
23 | */
24 | @Override
25 | public String toString() {
26 | return UPPER_UNDERSCORE.to(UPPER_CAMEL, name());
27 | }
28 |
29 | /**
30 | * Converts supplied {@code String} to equivalent {@code GmmElement}. Method
31 | * expects a {@code String} with {@code CaseFormat#UPPER_CAMEL}
32 | * @param s {@code String} to convert
33 | * @return the corresponding {@code GmmElement}
34 | * @see CaseFormat
35 | * @throws IllegalArgumentException if supplied {@code String} is incorrectly
36 | * formatted or no matching {@code GmmElement} exists
37 | */
38 | public static GmmElement fromString(String s) {
39 | return valueOf(UPPER_CAMEL.to(UPPER_UNDERSCORE, s));
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/GmmPostProcessor.java:
--------------------------------------------------------------------------------
1 | package gov.usgs.earthquake.nshmp.gmm;
2 |
3 | import gov.usgs.earthquake.nshmp.calc.CalcConfig;
4 |
5 | /**
6 | * Interface implemented by any model designed to modify scalar ground motions
7 | * computed from any {@link GroundMotionModel} (GMM).
8 | *
9 | * @author Peter Powers
10 | */
11 | public interface GmmPostProcessor {
12 |
13 | /**
14 | * Update the supplied {@code ScalarGroundMotion}.
15 | *
16 | * @param sgm the {@code ScalarGroundMotion} to modify
17 | * @param in the source-site parameterization
18 | * @param imt the intensity measure type being considered
19 | * @param gmm the ground motion model in use
20 | */
21 | ScalarGroundMotion apply(ScalarGroundMotion sgm, GmmInput in, Imt imt, Gmm gmm);
22 |
23 | /**
24 | * Ground motion post processors identifiers
25 | */
26 | public enum Model {
27 |
28 | /**
29 | * The Rezaeian et al. (2014) viscous damping model.
30 | *
31 | * @see RezaeianDamping_2014
32 | */
33 | REZAEIAN_DAMPING_2014 {
34 | @Override
35 | public GmmPostProcessor instance(CalcConfig config) {
36 | return new RezaeianDamping_2014(config);
37 | }
38 | };
39 |
40 | /**
41 | * Create an instance of the post processor.
42 | * @param config for instance intialization
43 | * @return a concrete {@code GmmPostProcessor} instance
44 | */
45 | public abstract GmmPostProcessor instance(CalcConfig config);
46 |
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/GroundMotionModel.java:
--------------------------------------------------------------------------------
1 | package gov.usgs.earthquake.nshmp.gmm;
2 |
3 | /**
4 | * Interface implemented by all ground motion models (GMMs); these are also
5 | * commonly referred to as ground motion prediction equations (GMPEs) or
6 | * attenuation relationships. Direct instantiation of GMMs is discouraged in
7 | * concrete implementations in favor of using the corresponding {@link Gmm}
8 | * {@code enum} identifier and its {@link Gmm#instance(Imt)} method. Concrete
9 | * implementations are public solely for the purpose of documentation.
10 | *
11 | * Models generally have a single concrete implementation. However, for those
12 | * supplying region- or source-specific variants, there will typically be an
13 | * abstract base-model implementation and subclasses to handle each flavor (e.g.
14 | * {@link ZhaoEtAl_2006}. Each flavor has a unique {@link Gmm} identifier.
15 | *
16 | * @author Peter Powers
17 | * @see Gmm
18 | */
19 | public interface GroundMotionModel {
20 |
21 | /**
22 | * Compute the scalar ground motion and its standard deviation for the
23 | * supplied arguments.
24 | * @param args a ground motion model input argument container
25 | * @return a scalar ground motion wrapper
26 | */
27 | ScalarGroundMotion calc(GmmInput args);
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/ScalarGroundMotion.java:
--------------------------------------------------------------------------------
1 | package gov.usgs.earthquake.nshmp.gmm;
2 |
3 | /**
4 | * Ground motion model (Gmm) result container.
5 | *
6 | * @author Peter Powers
7 | */
8 | public interface ScalarGroundMotion {
9 |
10 | /**
11 | * Returns the mean (natural log of the median) ground motion.
12 | * @return the mean
13 | */
14 | double mean();
15 |
16 | /**
17 | * Returns the standard deviation in natural log units.
18 | * @return the standard deviation
19 | */
20 | double sigma();
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/A08P.csv:
--------------------------------------------------------------------------------
1 | T,bcfac
2 | 5.0,0.06
3 | 3.0,0.08
4 | 2.0,0.09
5 | 1.0,0.11
6 | 0.5,0.14
7 | 0.3,0.14
8 | 0.2,0.12
9 | 0.1,0.03
10 | 0.05,-0.02
11 | 0.03,-0.045
12 | 0.02,-0.045
13 | PGA,-0.045
14 | PGV,0.09
15 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/AB03_cascadia_interface.csv:
--------------------------------------------------------------------------------
1 | T,c1,c2,c3,c4,c5,c6,c7,sig
2 | PGA,2.79,0.03525,0.00759,-0.00206,0.19,0.24,0.29,0.23
3 | 0.2,2.54,0.12386,0.00884,-0.0028,0.15,0.23,0.25,0.28
4 | 1,2.18,0.1345,0.00521,-0.0011,0.1,0.3,0.55,0.34
5 | 0.1,2.5,0.09841,0.00974,-0.00287,0.15,0.23,0.2,0.27
6 | 0.3,2.516,0.1373,0.00789,-0.00252,0.14,0.253,0.319,0.286
7 | 0.5,2.418,0.1444,0.00671,-0.00195,0.12,0.277,0.416,0.31
8 | 0.75,2.2416,0.14505,0.0059208,-0.0015904,0.10635,0.34101,0.53479,0.34
9 | 2,2.33,0.07148,0.00224,0,0.1,0.25,0.4,0.34
10 | 3,2.36,0.02237,0.00012,0,0.1,0.25,0.36,0.36
11 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/AB03_cascadia_slab.csv:
--------------------------------------------------------------------------------
1 | T,c1,c2,c3,c4,c5,c6,c7,sig
2 | PGA,-0.25,0.6909,0.0113,-0.00202,0.19,0.24,0.29,0.27
3 | 0.2,0.4,0.69186,0.00572,-0.00192,0.15,0.27,0.25,0.28
4 | 1,-0.98,0.8789,0.0013,-0.00173,0.1,0.3,0.55,0.29
5 | 0.1,0.16,0.66675,0.0108,-0.00219,0.15,0.23,0.2,0.28
6 | 0.3,0.195,0.73228,0.00372,-0.00185,0.1383,0.3285,0.3261,0.28
7 | 0.5,-0.172,0.7904,0.00166,-0.00177,0.125,0.353,0.4214,0.282
8 | 0.75,-0.67648,0.84559,0.0014349,-0.0017457,0.10941,0.322,0.4966,0.2869
9 | 2,-2.25,0.9964,0.00364,-0.00118,0.1,0.25,0.4,0.3
10 | 3,-3.64,1.1169,0.00615,-0.00045,0.1,0.25,0.36,0.3
11 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/AB03_global_interface.csv:
--------------------------------------------------------------------------------
1 | T,c1,c2,c3,c4,c5,c6,c7,sig
2 | PGA,2.991,0.03525,0.00759,-0.00206,0.19,0.24,0.29,0.23
3 | 0.2,2.5712,0.13976,0.0077995,-0.0024999,0.13666,0.32338,0.33671,0.28
4 | 1,2.1442,0.1345,0.00521,-0.0011,0.1,0.3,0.55,0.34
5 | 0.1,2.7789,0.09841,0.00974,-0.00287,0.15,0.23,0.2,0.27
6 | 0.3,2.6169,0.13694,0.0081225,-0.0026354,0.1429,0.30005,0.29974,0.286
7 | 0.5,2.536,0.13242,0.0079514,-0.002456,0.1358,0.32513,0.34473,0.31
8 | 0.75,2.2884,0.13728,0.0064291,-0.001737,0.11287,0.2954,0.49244,0.34
9 | 2,2.1907,0.07148,0.00224,0,0.1,0.25,0.4,0.34
10 | 3,2.301,0.02237,0.00012,0,0.1,0.25,0.36,0.36
11 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/AB03_global_slab.csv:
--------------------------------------------------------------------------------
1 | T,c1,c2,c3,c4,c5,c6,c7,sig
2 | PGA,-0.04713,0.6909,0.0113,-0.00202,0.19,0.24,0.29,0.27
3 | 0.2,0.51589,0.69186,0.00572,-0.00192,0.15,0.27,0.25,0.28
4 | 1,-1.0213,0.8789,0.0013,-0.00173,0.1,0.3,0.55,0.29
5 | 0.1,0.43928,0.66675,0.0108,-0.00219,0.15,0.23,0.2,0.28
6 | 0.3,0.26067,0.73228,0.00372,-0.00185,0.1383,0.3285,0.3261,0.28
7 | 0.5,-0.16568,0.7904,0.00166,-0.00177,0.125,0.353,0.4214,0.282
8 | 0.75,-0.69924,0.84559,0.0014349,-0.0017457,0.10941,0.322,0.4966,0.2869
9 | 2,-2.3923,0.9964,0.00364,-0.00118,0.1,0.25,0.4,0.3
10 | 3,-3.7001,1.1169,0.00615,-0.00045,0.1,0.25,0.36,0.3
11 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/AB06P.csv:
--------------------------------------------------------------------------------
1 | T,bcfac
2 | 5.0,0.06
3 | 3.0,0.08
4 | 2.0,0.09
5 | 1.0,0.11
6 | 0.5,0.14
7 | 0.3,0.14
8 | 0.2,0.12
9 | 0.1,0.03
10 | 0.05,-0.02
11 | 0.03,-0.045
12 | PGA,-0.045
13 | PGV,0.09
14 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/AM09.csv:
--------------------------------------------------------------------------------
1 | T,c0,c1,c2,c3,c4,sig
2 | PGA,5.006,-1.5573,-0.00034,0.1774,0.0827,0.24
3 | 0.01,5.006,-1.5573,-0.00034,0.1774,0.0827,0.24
4 | 0.02,0.0,0.0,0.0,0.0,0.0,0.0
5 | 0.03,0.0,0.0,0.0,0.0,0.0,0.0
6 | 0.05,5.843,-1.9391,0,0.1813,0.0199,0.26
7 | 0.075,0.0,0.0,0.0,0.0,0.0,0.0
8 | 0.1,5.49,-1.6257,-0.00115,0.1736,0.0261,0.27
9 | 0.15,0.0,0.0,0.0,0.0,0.0,0.0
10 | 0.2,4.746,-1.1691,-0.00212,0.1593,0.0432,0.27
11 | 0.25,0.0,0.0,0.0,0.0,0.0,0.0
12 | 0.3,4.303,-0.9322,-0.00231,0.1713,0.027,0.27
13 | 0.4,4.167,-0.8854,-0.00211,0.1802,0.0258,0.27
14 | 0.5,3.999,-0.8211,-0.00195,0.187,0.0271,0.27
15 | 0.75,3.764,-0.7541,-0.00164,0.2029,0.0257,0.28
16 | 1,3.621,-0.7376,-0.00128,0.2116,0.0328,0.29
17 | 1.5,0.0,0.0,0.0,0.0,0.0,0.0
18 | 2,3.241,-0.6741,-0.00081,0.2696,-0.0064,0.3
19 | # 2.5,3.104,-0.6585,-0.00063,0.299,-0.0074,0.3
20 | 3,2.978,-0.6431,-0.00057,0.3258,-0.0103,0.3
21 | 4,2.814,-0.6108,-0.00046,0.349,-0.0299,0.3
22 | 5,2.671,-0.5942,-0.0004,0.3822,-0.0417,0.32
23 | 7.5,2.489,-0.6412,-3.00E-05,0.476,-0.0629,0.35
24 | 10,2.338,-0.6311,0,0.5357,-0.0737,0.38
25 | PGV,0.0,0.0,0.0,0.0,0.0,0.0
26 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/Atkinson10.csv:
--------------------------------------------------------------------------------
1 | T, scale
2 | PGA, -1.16747
3 | 0.01, -1.16747
4 | 0.02, -1.09389
5 | 0.03, -1.08627
6 | 0.05, -1.17299
7 | 0.075, -1.21352
8 | 0.1, -1.29451
9 | 0.15, -1.26160
10 | 0.2, -1.19063
11 | 0.25, -1.11016
12 | 0.3, -1.06665
13 | 0.4, -0.98485
14 | 0.5, -0.888792
15 | 0.75, -0.690194
16 | 1, -0.536735
17 | 1.5, -0.253715
18 | 2, -0.079988
19 | 3, 0.183324
20 | 4, 0.168375
21 | 5, 0.0778986
22 | 7.5, -0.0603764
23 | 10, -0.0713811
24 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/Atkinson15.csv:
--------------------------------------------------------------------------------
1 | T,c0,c1,c2,c3,c4,phi,tau,sigma
2 | PGA,-2.376,1.818,-0.1153,-1.752,-0.002,0.28,0.24,0.37
3 | PGV,-4.151,1.762,-0.09509,-1.669,-0.0006,0.27,0.19,0.33
4 | 0.03,-2.283,1.842,-0.1189,-1.785,-0.002,0.28,0.27,0.39
5 | 0.05,-2.018,1.826,-0.1192,-1.831,-0.002,0.28,0.3,0.41
6 | 0.1,-1.954,1.83,-0.1185,-1.774,-0.002,0.29,0.25,0.39
7 | 0.2,-2.266,1.785,-0.1061,-1.657,-0.0014,0.3,0.21,0.37
8 | 0.3,-2.794,1.852,-0.1078,-1.608,-0.00105,0.3,0.19,0.36
9 | 0.5,-3.873,2.06,-0.1212,-1.544,-0.0006,0.29,0.2,0.35
10 | 1,-4.081,1.742,-0.07381,-1.481,0,0.26,0.22,0.34
11 | 2,-4.462,1.485,-0.03815,-1.361,0,0.24,0.23,0.33
12 | 3,-3.827,1.06,0.009086,-1.398,0,0.24,0.22,0.32
13 | 5,-4.321,1.08,0.009376,-1.378,0,0.25,0.18,0.31
14 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/BJF97.csv:
--------------------------------------------------------------------------------
1 | T,b1ss,b1rv,b1all,b2,b3,b5,bv,va,h,sig_1,sig_C,sig_r,sig_e,sig_lnY
2 | PGA,-0.313,-0.117,-0.242,0.527,0,-0.778,-0.371,1396,5.57,0.431,0.16,0.46,0.184,0.495
3 | 0.1,1.006,1.087,1.059,0.753,-0.226,-0.934,-0.212,1112,6.27,0.44,0.134,0.46,0,0.46
4 | 0.15,1.128,1.264,1.204,0.702,-0.228,-0.937,-0.238,1820,7.23,0.435,0.163,0.464,0,0.464
5 | 0.2,0.999,1.17,1.089,0.711,-0.207,-0.924,-0.292,2118,7.02,0.435,0.177,0.47,0.009,0.47
6 | 0.3,0.598,0.803,0.7,0.769,-0.161,-0.893,-0.401,2133,5.94,0.44,0.195,0.481,0.048,0.484
7 | 0.4,0.212,0.423,0.311,0.831,-0.12,-0.867,-0.487,1954,4.91,0.447,0.204,0.491,0.085,0.499
8 | 0.5,-0.122,0.087,-0.025,0.884,-0.09,-0.846,-0.553,1782,4.13,0.454,0.211,0.501,0.115,0.514
9 | 0.6,-0.401,-0.203,-0.314,0.928,-0.069,-0.83,-0.602,1644,3.57,0.458,0.216,0.507,0.143,0.526
10 | 0.7,-0.634,-0.452,-0.555,0.962,-0.053,-0.818,-0.639,1545,3.2,0.463,0.22,0.513,0.166,0.539
11 | 0.75,-0.737,-0.562,-0.661,0.979,-0.046,-0.813,-0.653,1507,3.07,0.465,0.221,0.515,0.175,0.544
12 | 0.8,-0.829,-0.666,-0.76,0.992,-0.041,-0.809,-0.666,1476,2.98,0.467,0.223,0.517,0.184,0.549
13 | 0.9,-0.993,-0.848,-0.933,1.018,-0.035,-0.802,-0.685,1432,2.89,0.47,0.228,0.522,0.2,0.559
14 | 1,-1.133,-1.009,-1.08,1.036,-0.032,-0.798,-0.698,1406,2.9,0.474,0.23,0.527,0.214,0.569
15 | 1.5,-1.552,-1.538,-1.55,1.085,-0.044,-0.796,-0.704,1479,3.92,0.486,0.244,0.544,0.256,0.601
16 | 2,-1.699,-1.801,-1.743,1.085,-0.085,-0.812,-0.655,1795,5.85,0.495,0.256,0.557,0.276,0.622
17 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/CB03.csv:
--------------------------------------------------------------------------------
1 | T,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16,c17,n,r2
2 | PGA,-4.033,0.812,0.036,-1.061,0.041,-0.005,-0.018,0.766,0.034,0.343,0.351,-0.123,-0.138,-0.289,0.37,0.92,0.219,443,0.949
3 | 0.1,-2.661,0.812,0.06,-1.308,0.166,-0.009,-0.068,0.621,0.046,0.224,0.313,-0.146,-0.253,-0.258,0.37,0.958,0.257,439,0.901
4 | 0.15,-2.27,0.812,0.041,-1.324,0.212,-0.033,-0.081,0.613,0.031,0.318,0.344,-0.176,-0.267,-0.284,0.37,0.974,0.273,439,0.862
5 | 0.2,-2.771,0.812,0.03,-1.153,0.098,-0.014,-0.038,0.704,0.026,0.296,0.342,-0.148,-0.183,-0.359,0.37,0.981,0.28,439,0.844
6 | 0.3,-2.999,0.812,0.007,-1.08,0.059,-0.007,-0.022,0.752,0.007,0.359,0.385,-0.162,-0.157,-0.585,0.37,0.984,0.283,439,0.859
7 | 0.4,-3.511,0.812,-0.015,-0.964,0.024,-0.002,-0.005,0.842,-0.016,0.379,0.438,-0.078,-0.129,-0.557,0.37,0.987,0.286,439,0.871
8 | 0.5,-3.556,0.812,-0.035,-0.964,0.023,-0.002,-0.004,0.842,-0.036,0.406,0.479,-0.122,-0.13,-0.701,0.37,0.99,0.289,439,0.89
9 | 0.75,-3.709,0.812,-0.071,-0.964,0.021,-0.002,-0.002,0.842,-0.074,0.347,0.419,-0.108,-0.124,-0.796,0.331,1.021,0.32,438,0.917
10 | 1,-3.867,0.812,-0.101,-0.964,0.019,0,0,0.842,-0.105,0.329,0.338,-0.073,-0.072,-0.858,0.281,1.021,0.32,438,0.935
11 | 1.5,-4.093,0.812,-0.15,-0.964,0.019,0,0,0.842,-0.155,0.217,0.188,-0.079,-0.056,-0.954,0.21,1.021,0.32,428,0.96
12 | 2,-4.311,0.812,-0.18,-0.964,0.019,0,0,0.842,-0.187,0.06,0.064,-0.124,-0.116,-0.916,0.16,1.021,0.32,405,0.971
13 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/Campbell03.csv:
--------------------------------------------------------------------------------
1 | T,c1,c1h,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13
2 | PGA,0.4492,0.0305,0.633,-0.0427,-1.591,0.683,0.416,1.14,-0.873,-0.00428,0.000483,1.03,-0.086,0.414
3 | 0.2,0.1325,-0.4328,0.617,-0.0586,-1.32,0.399,0.493,1.25,-0.928,-0.0046,0.000337,1.077,-0.0838,0.478
4 | 1,-0.3177,-0.6104,0.451,-0.209,-1.158,0.299,0.503,1.067,-0.482,-0.00255,0.000141,1.11,-0.0793,0.543
5 | 0.1,0.4064,-0.1475,0.613,-0.0353,-1.369,0.484,0.467,1.096,-1.284,-0.00454,0.00046,1.059,-0.0838,0.46
6 | 0.3,-0.1483,-0.6906,0.609,-0.0786,-1.28,0.349,0.502,1.241,-0.753,-0.00414,0.000263,1.081,-0.0838,0.482
7 | 0.4,-0.17039,-0.67077,0.57226,-0.1094,-1.2441,0.32604,0.50407,1.1833,-0.65295,-0.0037463,0.00021879,1.0902,-0.083181,0.49512
8 | 0.5,-0.1333,-0.5907,0.534,-0.1379,-1.216,0.318,0.503,1.116,-0.606,-0.00341,0.000194,1.098,-0.0824,0.508
9 | 2,-1.2483,-1.4306,0.459,-0.2552,-1.124,0.31,0.499,1.015,-0.417,-0.00187,0.000103,1.093,-0.0758,0.551
10 | 0.03,1.68,1.186,0.622,-0.0362,-1.691,0.922,0.376,0.759,-0.922,-0.00367,0.000501,1.03,-0.086,0.414
11 | #0.04,1.28,0.72857,0.61862,-0.035693,-1.566,0.75759,0.40246,0.76576,-1.1005,-0.0037319,0.00050044,1.037,-0.0848,0.43
12 | 0.05,0.87,0.3736,0.616,-0.0353,-1.469,0.63,0.423,0.771,-1.239,-0.00378,0.0005,1.042,-0.0838,0.443
13 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/Campbell97.csv:
--------------------------------------------------------------------------------
1 | T,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12
2 | PGA,-3.512,0.904,-1.328,0.149,0.647,1.125,-0.112,-0.0957,0.44,-0.171,0.405,-0.222
3 | 0.05,0.05,0,0,-0.0011,0.000055,0.2,0,0,0,0,0,0
4 | 0.075,0.27,0,0,-0.0024,0.000095,0.22,0,0,0,0,0,0
5 | 0.1,0.48,0,0,-0.0024,0.000007,0.14,0,0,0,0,0,0
6 | 0.15,0.72,0,0,-0.001,-0.00027,-0.02,0,0,0,0,0,0
7 | 0.2,0.79,0,0,0.0011,-0.00053,-0.18,0,0,0,0,0,0
8 | 0.3,0.77,0,0,0.0035,-0.00072,-0.4,0,0,0,0,0,0
9 | 0.5,-0.28,0.74,0.66,0.0068,-0.001,-0.42,0.25,0.62,0,0,0,0
10 | 0.75,-1.08,1.23,0.66,0.0077,-0.001,-0.44,0.37,0.62,0,0,0,0
11 | 1,-1.79,1.59,0.66,0.0085,-0.001,-0.38,0.57,0.62,0,0,0,0
12 | 1.5,-2.65,1.98,0.66,0.0094,-0.001,-0.32,0.72,0.62,0,0,0,0
13 | 2,-3.28,2.23,0.66,0.01,-0.001,-0.36,0.83,0.62,0,0,0,0
14 | 3,-4.07,2.39,0.66,0.0108,-0.001,-0.22,0.86,0.62,0,0,0,0
15 | 4,-4.26,2.03,0.66,0.0112,-0.001,-0.3,1.05,0.62,0,0,0,0
16 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/Frankel96.csv:
--------------------------------------------------------------------------------
1 | T,bsigma
2 | PGA,0.326
3 | 0.2,0.326
4 | 1,0.347
5 | 0.1,0.326
6 | 0.3,0.326
7 | 0.5,0.326
8 | 2,0.347
9 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/GK15.csv:
--------------------------------------------------------------------------------
1 | T,dummy
2 | 0.01,0.0
3 | 0.02,0.0
4 | 0.03,0.0
5 | 0.05,0.0
6 | 0.075,0.0
7 | 0.1,0.0
8 | 0.15,0.0
9 | 0.2,0.0
10 | 0.25,0.0
11 | 0.3,0.0
12 | 0.4,0.0
13 | 0.5,0.0
14 | 0.75,0.0
15 | 1.0,0.0
16 | 1.5,0.0
17 | 2.0,0.0
18 | 3.0,0.0
19 | 4.0,0.0
20 | 5.0,0.0
21 | 7.5,0.0
22 | 10.0,0.0
23 | PGA,0.0
24 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/MT97.csv:
--------------------------------------------------------------------------------
1 | T,no_coeffs
2 | PGA,0
3 | 0.2,0
4 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/P11.csv:
--------------------------------------------------------------------------------
1 | T,c12,c13,c14,bcfac
2 | 5.0,-6.9e-3,3.577e-1,3.58e-1,0.06
3 | 3.0,-8.509e-3,3.54e-1,3.43e-1,0.08
4 | 2.0,-9.443e-3,3.56e-1,3.387e-1,0.09
5 | 1.0,-1.18e-2,3.588e-1,3.249e-1,0.11
6 | 0.5,-1.556e-2,3.722e-1,3.119e-1,0.14
7 | 0.3,-1.837e-2,3.867e-1,3.068e-1,0.14
8 | 0.2,-2.046e-2,3.979e-1,3.033e-1,0.12
9 | 0.1,-2.259e-2,4.102e-1,3.007e-1,0.03
10 | 0.05,-2.244e-2,3.990e-1,2.905e-1,-0.02
11 | 0.03,-2.094e-2,3.817e-1,2.838e-1,-0.045
12 | 0.02,-1.974e-2,3.691e-1,2.796e-1,-0.045
13 | PGA,-2.105e-2,3.778e-1,2.791e-1,-0.045
14 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/Sadigh97_BChi.csv:
--------------------------------------------------------------------------------
1 | IMT,c1r,c1ss,c2,c3,c4,c5,c6r,c6ss,c7,sig0,cM,sigMax
2 | PGA,-1.274,-1.274,1.1,0.000,-2.100,-0.48451,0.524,0.524,0.000,1.39,-0.14,0.38
3 | 0.075,-0.540,-0.540,1.1,0.006,-2.128,-0.48451,0.524,0.524,-0.082,1.40,-0.14,0.39
4 | 0.1,-0.375,-0.375,1.1,0.006,-2.148,-0.48451,0.524,0.524,-0.041,1.41,-0.14,0.40
5 | 0.2,-0.497,-0.497,1.1,-0.004,-2.080,-0.48451,0.524,0.524,0.000,1.43,-0.14,0.42
6 | 0.3,-0.707,-0.707,1.1,-0.017,-2.028,-0.48451,0.524,0.524,0.000,1.45,-0.14,0.44
7 | 0.4,-0.948,-0.948,1.1,-0.028,-1.990,-0.48451,0.524,0.524,0.000,1.48,-0.14,0.47
8 | 0.5,-1.238,-1.238,1.1,-0.040,-1.945,-0.48451,0.524,0.524,0.000,1.50,-0.14,0.49
9 | 0.75,-1.858,-1.858,1.1,-0.050,-1.865,-0.48451,0.524,0.524,0.000,1.52,-0.14,0.51
10 | 1.0,-2.355,-2.355,1.1,-0.055,-1.800,-0.48451,0.524,0.524,0.000,1.53,-0.14,0.52
11 | 1.5,-3.057,-3.057,1.1,-0.065,-1.725,-0.48451,0.524,0.524,0.000,1.53,-0.14,0.52
12 | 2.0,-3.595,-3.595,1.1,-0.070,-1.670,-0.48451,0.524,0.524,0.000,1.53,-0.14,0.52
13 | 3.0,-4.350,-4.350,1.1,-0.080,-1.610,-0.48451,0.524,0.524,0.000,1.53,-0.14,0.52
14 | 4.0,-4.880,-4.880,1.1,-0.100,-1.570,-0.48451,0.524,0.524,0.000,1.53,-0.14,0.52
15 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/Sadigh97_BClo.csv:
--------------------------------------------------------------------------------
1 | IMT,c1r,c1ss,c2,c3,c4,c5,c6r,c6ss,c7,sig0,cM,sigMax
2 | PGA,-0.624,-0.624,1.0,0.000,-2.100,1.29649,0.25,0.25,0.000,1.39,-0.14,0.38
3 | 0.075,0.110,0.110,1.0,0.006,-2.128,1.29649,0.25,0.25,-0.082,1.40,-0.14,0.39
4 | 0.1,0.275,0.275,1.0,0.006,-2.148,1.29649,0.25,0.25,-0.041,1.41,-0.14,0.40
5 | 0.2,0.153,0.153,1.0,-0.004,-2.080,1.29649,0.25,0.25,0.000,1.43,-0.14,0.42
6 | 0.3,-0.057,-0.057,1.0,-0.017,-2.028,1.29649,0.25,0.25,0.000,1.45,-0.14,0.44
7 | 0.4,-0.298,-0.298,1.0,-0.028,-1.990,1.29649,0.25,0.25,0.000,1.48,-0.14,0.47
8 | 0.5,-0.588,-0.588,1.0,-0.040,-1.945,1.29649,0.25,0.25,0.000,1.50,-0.14,0.49
9 | 0.75,-1.208,-1.208,1.0,-0.050,-1.865,1.29649,0.25,0.25,0.000,1.52,-0.14,0.51
10 | 1.0,-1.705,-1.705,1.0,-0.055,-1.800,1.29649,0.25,0.25,0.000,1.53,-0.14,0.52
11 | 1.5,-2.407,-2.407,1.0,-0.065,-1.725,1.29649,0.25,0.25,0.000,1.53,-0.14,0.52
12 | 2.0,-2.945,-2.945,1.0,-0.070,-1.670,1.29649,0.25,0.25,0.000,1.53,-0.14,0.52
13 | 3.0,-3.700,-3.700,1.0,-0.080,-1.610,1.29649,0.25,0.25,0.000,1.53,-0.14,0.52
14 | 4.0,-4.230,-4.230,1.0,-0.100,-1.570,1.29649,0.25,0.25,0.000,1.53,-0.14,0.52
15 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/Sadigh97_Dhi.csv:
--------------------------------------------------------------------------------
1 | IMT,c1r,c1ss,c2,c3,c4,c5,c6r,c6ss,c7,sig0,cM,sigMax
2 | PGA,-1.92,-2.17,1.0,1.7,0.3825,0.5882,0.0000,0.0000,0.000,1.520,-0.16,0.400
3 | 0.075,-1.92,-2.17,1.0,1.7,0.3825,0.5882,0.4572,0.4572,0.005,1.540,-0.16,0.420
4 | 0.1,-1.92,-2.17,1.0,1.7,0.3825,0.5882,0.6395,0.6395,0.005,1.540,-0.16,0.420
5 | 0.2,-1.92,-2.17,1.0,1.7,0.3825,0.5882,0.9187,0.9187,-0.004,1.565,-0.16,0.445
6 | 0.3,-1.92,-2.17,1.0,1.7,0.3825,0.5882,0.9547,0.9547,-0.014,1.580,-0.16,0.460
7 | 0.4,-1.92,-2.17,1.0,1.7,0.3825,0.5882,0.9005,0.9251,-0.024,1.595,-0.16,0.475
8 | 0.5,-1.92,-2.17,1.0,1.7,0.3825,0.5882,0.8285,0.8494,-0.033,1.610,-0.16,0.490
9 | 0.75,-1.92,-2.17,1.0,1.7,0.3825,0.5882,0.6802,0.7010,-0.051,1.635,-0.16,0.515
10 | 1.0,-1.92,-2.17,1.0,1.7,0.3825,0.5882,0.5075,0.5665,-0.065,1.660,-0.16,0.540
11 | 1.5,-1.92,-2.17,1.0,1.7,0.3825,0.5882,0.2215,0.3235,-0.090,1.690,-0.16,0.570
12 | 2.0,-1.92,-2.17,1.0,1.7,0.3825,0.5882,-0.0526,0.1001,-0.108,1.700,-0.16,0.580
13 | 3.0,-1.92,-2.17,1.0,1.7,0.3825,0.5882,-0.4905,-0.2801,-0.139,1.710,-0.16,0.590
14 | 4.0,-1.92,-2.17,1.0,1.7,0.3825,0.5882,-0.8907,-0.6274,-0.160,1.710,-0.16,0.590
15 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/Sadigh97_Dlo.csv:
--------------------------------------------------------------------------------
1 | IMT,c1r,c1ss,c2,c3,c4,c5,c6r,c6ss,c7,sig0,cM,sigMax
2 | PGA,-1.92,-2.17,1.0,1.7,2.1863,0.32,0.0000,0.0000,0.000,1.520,-0.16,0.400
3 | 0.075,-1.92,-2.17,1.0,1.7,2.1863,0.32,0.4572,0.4572,0.005,1.540,-0.16,0.420
4 | 0.1,-1.92,-2.17,1.0,1.7,2.1863,0.32,0.6395,0.6395,0.005,1.540,-0.16,0.420
5 | 0.2,-1.92,-2.17,1.0,1.7,2.1863,0.32,0.9187,0.9187,-0.004,1.565,-0.16,0.445
6 | 0.3,-1.92,-2.17,1.0,1.7,2.1863,0.32,0.9547,0.9547,-0.014,1.580,-0.16,0.460
7 | 0.4,-1.92,-2.17,1.0,1.7,2.1863,0.32,0.9005,0.9251,-0.024,1.595,-0.16,0.475
8 | 0.5,-1.92,-2.17,1.0,1.7,2.1863,0.32,0.8285,0.8494,-0.033,1.610,-0.16,0.490
9 | 0.75,-1.92,-2.17,1.0,1.7,2.1863,0.32,0.6802,0.7010,-0.051,1.635,-0.16,0.515
10 | 1.0,-1.92,-2.17,1.0,1.7,2.1863,0.32,0.5075,0.5665,-0.065,1.660,-0.16,0.540
11 | 1.5,-1.92,-2.17,1.0,1.7,2.1863,0.32,0.2215,0.3235,-0.090,1.690,-0.16,0.570
12 | 2.0,-1.92,-2.17,1.0,1.7,2.1863,0.32,-0.0526,0.1001,-0.108,1.700,-0.16,0.580
13 | 3.0,-1.92,-2.17,1.0,1.7,2.1863,0.32,-0.4905,-0.2801,-0.139,1.710,-0.16,0.590
14 | 4.0,-1.92,-2.17,1.0,1.7,2.1863,0.32,-0.8907,-0.6274,-0.160,1.710,-0.16,0.590
15 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/Silva02.csv:
--------------------------------------------------------------------------------
1 | T,c1hr,c1,c2,c4,c6,c7,c10,sigma
2 | PGA,5.5346,5.9533,-0.11691,2.9,-3.4217,0.26461,-0.0681,0.8471
3 | 0.05,6.6394,7.023,-0.12193,3,-3.4548,0.26008,-0.06201,0.8753
4 | 0.1,5.4378,5.9917,-0.02059,2.9,-3.255,0.24527,-0.06853,0.8546
5 | 0.2,3.7195,4.2848,0.1249,2.8,-3.0459,0.22877,-0.08886,0.8338
6 | 0.3,2.6069,3.1492,0.23165,2.8,-2.9632,0.22112,-0.11352,0.8428
7 | 0.5,0.69539,1.1528,0.45254,2.8,-2.818,0.20613,-0.16423,0.8484
8 | 1,-2.8991,-2.6064,0.88116,2.8,-2.583,0.18098,-0.25757,0.8785
9 | 2,-7.4205,-7.2382,1.4195,2.7,-2.2643,0.14984,-0.33999,1.0142
10 | 5,-13.697,-13.39,2.0349,2.5,-1.9197,0.12052,-0.35463,1.2253
11 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/Somerville01.csv:
--------------------------------------------------------------------------------
1 | T,a1,a1h,a2,a3,a4,a5,a6,a7,sig0
2 | PGA,0.658,0.239,0.805,-0.679,0.0861,-0.00498,-0.477,0,0.587
3 | 0.2,1.358,0.793,0.805,-0.679,0.0861,-0.00498,-0.477,0,0.611
4 | 1,-0.0143,-0.307,0.805,-0.696,0.0861,-0.00362,-0.755,-0.102,0.693
5 | 0.1,1.442,0.888,0.805,-0.679,0.0861,-0.00498,-0.477,0,0.595
6 | 0.3,1.2353,0.693,0.805,-0.67023,0.0861,-0.0048045,-0.52379,-0.030298,0.6057
7 | 0.5,0.8532,0.3958,0.805,-0.67179,0.0861,-0.0044219,-0.60521,-0.064024,0.6242
8 | 2,-0.9497,-1.132,0.805,-0.728,0.0861,-0.00221,-0.946,-0.14,0.824
9 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/Toro97Mb.csv:
--------------------------------------------------------------------------------
1 | T,t1,t1h,t2,t3,t4,t5,t6,th,tsigma
2 | PGA,2.489,2.07,1.2,0,1.28,1.23,0.0018,9.3,0.7506
3 | 0.2,2.165,1.6,1.24,0,0.98,0.74,0.0039,7.5,0.7506
4 | 1,0.173,-0.12,2.05,-0.34,0.9,0.59,0.0019,6.8,0.799
5 | 0.1,2.91,2.36,1.23,0,1.12,1.05,0.0043,8.5,0.7506
6 | 0.3,1.7323,1.19,1.51,-0.11,0.96,0.6881,0.0034,7.35,0.7506
7 | 0.5,1.109,0.652,1.785,-0.2795,0.93,0.6354,0.002732,7.05,0.7506
8 | 2,-0.788,-0.97,2.52,-0.47,0.93,0.6,0.0012,7,0.799
9 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/Toro97Mw.csv:
--------------------------------------------------------------------------------
1 | T,t1,t1h,t2,t3,t4,t5,t6,th,tsigma
2 | PGA,2.619,2.2,0.81,0,1.27,1.16,0.0021,9.3,0.7506
3 | 0.2,2.295,1.73,0.84,0,0.98,0.66,0.0042,7.5,0.7506
4 | 1,0.383,0.09,1.42,-0.2,0.9,0.49,0.0023,6.8,0.799
5 | 0.1,2.92,2.37,0.81,0,1.1,1.02,0.004,8.3,0.7506
6 | 0.3,1.8823,1.34,0.964,-0.059,0.951,0.601,0.00367,7.26,0.7506
7 | 0.5,1.2887,0.8313,1.14,-0.1244,0.9227,0.5429,0.00306,7.027,0.7506
8 | 2,-0.558,-0.74,1.86,-0.31,0.92,0.46,0.0017,6.9,0.799
9 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/Wong15-1080.csv:
--------------------------------------------------------------------------------
1 | T, C1, C2, C3, C4, C5, C6
2 | 10.0, -9.94467, 2.03274, 5.4, -2.58611, 0.13184, -0.16348
3 | 7.5, 0, 0, 0, 0, 0, 0
4 | 5.0, -2.85757, 1.96038, 5.7, -3.15687, 0.10616, -0.24948
5 | 4.0, 0, 0, 0, 0, 0, 0
6 | 3.0, 9.50447, 1.37435, 6.0, -4.65042, 0.16201, -0.29654
7 | 2.0, 19.42515, 0.78887, 6.1, -5.88408, 0.22405, -0.31785
8 | 1.5, 27.22984, 0.39421, 6.2, -6.87085, 0.26668, -0.32407
9 | 1.0, 37.72668, -0.41228, 6.2, -8.24274, 0.36012, -0.31850
10 | 0.75, 44.39633, -0.89301, 6.2, -9.11520, 0.41483, -0.30422
11 | 0.5, 48.02106, -1.37182, 6.1, -9.61985, 0.47167, -0.27523
12 | 0.4, 53.04999, -1.76242, 6.1, -10.31090, 0.51995, -0.25320
13 | 0.3, 59.63075, -2.36002, 6.1, -11.25182, 0.60028, -0.22461
14 | 0.25, 58.88488, -2.54016, 6.0, -11.20858, 0.62655, -0.20009
15 | 0.2, 63.04949, -2.93622, 6.0, -11.82560, 0.68261, -0.18061
16 | 0.15, 69.46798, -3.57603, 6.0, -12.79463, 0.77593, -0.15330
17 | 0.10, 71.67037, -4.09398, 5.9, -13.25869, 0.86044, -0.12008
18 | 0.075, 0, 0, 0, 0, 0, 0
19 | 0.05, 63.57597, -4.17060, 5.6, -12.39880, 0.90097, -0.09330
20 | 0.03, 54.89888, -3.83474, 5.4, -11.25994, 0.86786, -0.09258
21 | 0.02, 49.10114, -3.52464, 5.3, -10.44304, 0.82905, -0.10110
22 | 0.01, 49.50914, -3.58029, 5.4, -10.45222, 0.83490, -0.11428
23 | PGA, 49.01306, -3.53963, 5.4, -10.36996, 0.82790, -0.11490
24 | PGV, 35.32381, -2.50490, 5.2, -8.04105, 0.76843, -0.14424
25 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/Wong15-150.csv:
--------------------------------------------------------------------------------
1 | T, C1, C2, C3, C4, C5, C6
2 | 10.0, 4.37553, 0.77975, 5.8, -4.59986, 0.30767, -0.14658
3 | 7.5, 0, 0, 0, 0, 0, 0
4 | 5.0, 6.55163, 1.33405, 5.9, -4.46379, 0.19195, -0.22300
5 | 4.0, 0, 0, 0, 0, 0, 0
6 | 3.0, 11.38311, 1.68224, 6.0, -4.85417, 0.10946, -0.26454
7 | 2.0, 30.98126, 0.54258, 6.3, -7.39710, 0.25264, -0.30809
8 | 1.5, 49.92847, -1.04082, 6.5, -9.86362, 0.46506, -0.33988
9 | 1.0, 84.68634, -4.87454, 6.7, -14.29627, 0.96980, -0.37189
10 | 0.75, 119.73380, -8.69895, 6.9, -18.67737, 1.45506, -0.35283
11 | 0.5, 135.07390, -10.27271, 6.9, -20.71831, 1.65558, -0.32696
12 | 0.4, 153.20490, -12.41574, 6.9, -23.23709, 1.95012, -0.32053
13 | 0.3, 233.34520, -20.53758, 7.2, -33.22908, 2.97031, -0.28776
14 | 0.25, 301.79760, -27.35859, 7.4, -41.47969, 3.79423, -0.24674
15 | 0.2, 284.11340, -26.06946, 7.3, -39.59374, 3.66270, -0.21950
16 | 0.15, 223.87440, -21.03829, 7.0, -32.65327, 3.09331, -0.18668
17 | 0.10, 220.67960, -21.50187, 6.9, -32.60587, 3.19304, -0.13747
18 | 0.075, 0, 0, 0, 0, 0, 0
19 | 0.05, 138.46650, -13.70573, 6.4, -22.37661, 2.23038, -0.11380
20 | 0.03, 109.66910, -10.69246, 6.2, -18.53750, 1.82857, -0.13173
21 | 0.02, 104.03920, -9.92014, 6.2, -17.70504, 1.71552, -0.15300
22 | 0.01, 101.61770, -9.58564, 6.2, -17.34384, 1.66611, -0.16184
23 | PGA, 101.44280, -9.55060, 6.2, -17.31475, 1.66075, -0.16232
24 | PGV, 52.29073, -3.78249, 5.7, -10.07493, 0.90801, -0.18440
25 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/Wong15-1500.csv:
--------------------------------------------------------------------------------
1 | T, C1, C2, C3, C4, C5, C6
2 | 10.0, -10.49826, 2.09582, 5.4, -2.51426, 0.12288, -0.16307
3 | 7.5, 0, 0, 0, 0, 0, 0
4 | 5.0, -3.07494, 1.97375, 5.7, -3.14119, 0.10461, -0.24902
5 | 4.0, 0, 0, 0, 0, 0, 0
6 | 3.0, 9.83182, 1.28979, 6.0, -4.73407, 0.17553, -0.29387
7 | 2.0, 19.75484, 0.70839, 6.1, -5.96460, 0.23664, -0.31617
8 | 1.5, 27.73978, 0.29543, 6.2, -6.97664, 0.28134, -0.32269
9 | 1.0, 37.47560, -0.37858, 6.2, -8.21498, 0.35451, -0.31819
10 | 0.75, 44.11293, -0.87037, 6.2, -9.08773, 0.41153, -0.30435
11 | 0.5, 47.47013, -1.27662, 6.1, -9.53965, 0.45639, -0.27493
12 | 0.4, 53.04236, -1.78513, 6.1, -10.32908, 0.52354, -0.25306
13 | 0.3, 59.67915, -2.38283, 6.1, -11.27705, 0.60363, -0.22401
14 | 0.25, 58.74831, -2.51538, 6.0, -11.19996, 0.62220, -0.19957
15 | 0.2, 63.04345, -2.93681, 6.0, -11.83945, 0.68231, -0.18005
16 | 0.15, 69.59005, -3.60960, 6.0, -12.83070, 0.78093, -0.15297
17 | 0.10, 72.01244, -4.18625, 5.9, -13.33419, 0.87497, -0.12009
18 | 0.075, 0, 0, 0, 0, 0, 0
19 | 0.05, 64.05569, -4.18264, 5.6, -12.48718, 0.90190, -0.09087
20 | 0.03, 51.68260, -3.48432, 5.3, -10.81647, 0.81431, -0.08616
21 | 0.02, 47.17186, -3.34137, 5.2, -10.20652, 0.80257, -0.09145
22 | 0.01, 51.14855, -3.75480, 5.4, -10.73373, 0.86222, -0.10771
23 | PGA, 50.38409, -3.69514, 5.4, -10.60943, 0.85235, -0.10911
24 | PGV, 35.63970, -2.57346, 5.2, -8.12670, 0.78163, -0.13717
25 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/Wong15-185.csv:
--------------------------------------------------------------------------------
1 | T, C1, C2, C3, C4, C5, C6
2 | 10.0, 2.23924, 0.88904, 5.7, -4.32670, 0.29496, -0.14503
3 | 7.5, 0, 0, 0, 0, 0, 0
4 | 5.0, 4.97610, 1.26923, 5.8, -4.27010, 0.20407, -0.22666
5 | 4.0, 0, 0, 0, 0, 0, 0
6 | 3.0, 10.39555, 1.40754, 5.9, -4.75552, 0.15144, -0.26862
7 | 2.0, 17.88831, 1.30809, 6.0, -5.63213, 0.14066, -0.28729
8 | 1.5, 29.04721, 0.80828, 6.2, -7.06492, 0.20046, -0.30768
9 | 1.0, 70.86868, -2.72757, 6.6, -12.54106, 0.67623, -0.35302
10 | 0.75, 106.11160, -6.43004, 6.8, -17.05878, 1.16334, -0.35750
11 | 0.5, 167.80150, -12.39433, 7.1, -24.73777, 1.91219, -0.32696
12 | 0.4, 162.43070, -12.23821, 7.0, -24.23815, 1.90310, -0.30798
13 | 0.3, 182.14450, -14.54356, 7.0, -26.93524, 2.21379, -0.28892
14 | 0.25, 218.53920, -18.39985, 7.1, -31.56796, 2.70736, -0.26152
15 | 0.2, 229.63580, -19.84729, 7.1, -33.07245, 2.90063, -0.23693
16 | 0.15, 221.03660, -19.64746, 7.0, -32.25693, 2.90152, -0.19915
17 | 0.10, 199.45500, -18.55872, 6.8, -29.97464, 2.81452, -0.15835
18 | 0.075, 0, 0, 0, 0, 0, 0
19 | 0.05, 127.56000, -12.18776, 6.3, -20.98351, 2.02746, -0.12309
20 | 0.03, 101.24280, -9.51463, 6.1, -17.44776, 1.66844, -0.13768
21 | 0.02, 104.96560, -9.60834, 6.2, -17.85769, 1.66995, -0.15902
22 | 0.01, 102.08580, -9.21284, 6.2, -17.42784, 1.61145, -0.16875
23 | PGA, 101.74880, -9.15899, 6.2, -17.37388, 1.60314, -0.16908
24 | PGV, 49.26893, -3.53262, 5.6, -9.70275, 0.87669, -0.18271
25 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/Wong15-260.csv:
--------------------------------------------------------------------------------
1 | T, C1, C2, C3, C4, C5, C6
2 | 10.0, -4.06428, 1.34282, 5.4, -3.45320, 0.23289, -0.14270
3 | 7.5, 0, 0, 0, 0, 0, 0
4 | 5.0, 2.52438, 1.35767, 5.7, -3.94546, 0.19376, -0.22802
5 | 4.0, 0, 0, 0, 0, 0, 0
6 | 3.0, 11.21896, 1.12792, 5.9, -4.89811, 0.19535, -0.27638
7 | 2.0, 16.13302, 1.01694, 5.9, -5.42645, 0.18666, -0.29415
8 | 1.5, 21.10197, 1.01206, 6.0, -6.00444, 0.17189, -0.29984
9 | 1.0, 30.96416, 0.74999, 6.1, -7.18627, 0.18324, -0.30587
10 | 0.75, 43.71734, -0.26484, 6.2, -8.88793, 0.31740, -0.30885
11 | 0.5, 80.53577, -3.34020, 6.5, -13.82011, 0.73594, -0.31268
12 | 0.4, 112.43970, -6.21106, 6.7, -17.97597, 1.11532, -0.29580
13 | 0.3, 139.22570, -8.85118, 6.8, -21.49511, 1.46421, -0.27930
14 | 0.25, 168.33290, -11.62806, 6.9, -25.29347, 1.82776, -0.25550
15 | 0.2, 197.68610, -14.40394, 7.0, -29.04471, 2.18513, -0.23960
16 | 0.15, 175.79600, -13.42590, 6.8, -26.60735, 2.09247, -0.21223
17 | 0.10, 177.03360, -14.59615, 6.7, -27.09436, 2.27932, -0.16581
18 | 0.075, 0, 0, 0, 0, 0, 0
19 | 0.05, 105.56700, -9.10250, 6.1, -18.07121, 1.59993, -0.12999
20 | 0.03, 91.89919, -7.77002, 6.0, -16.20113, 1.41794, -0.13896
21 | 0.02, 86.55507, -7.07048, 6.0, -15.40218, 1.31405, -0.15396
22 | 0.01, 83.82279, -6.70478, 6.0, -14.98769, 1.25899, -0.16222
23 | PGA, 83.41772, -6.63195, 6.0, -14.92092, 1.24728, -0.16212
24 | PGV, 43.61100, -3.09358, 5.4, -9.00818, 0.82445, -0.16302
25 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/Wong15-365.csv:
--------------------------------------------------------------------------------
1 | T, C1, C2, C3, C4, C5, C6
2 | 10.0, -5.89428, 1.54704, 5.4, -3.18565, 0.20388, -0.14813
3 | 7.5, 0, 0, 0, 0, 0, 0
4 | 5.0, 0.82909, 1.53292, 5.7, -3.69799, 0.16915, -0.23479
5 | 4.0, 0, 0, 0, 0, 0, 0
6 | 3.0, 10.22099, 1.15948, 5.9, -4.76276, 0.19303, -0.28367
7 | 2.0, 19.13934, 0.72139, 6.0, -5.85525, 0.23212, -0.30420
8 | 1.5, 25.40152, 0.53718, 6.1, -6.61504, 0.24338, -0.31135
9 | 1.0, 32.53355, 0.21408, 6.1, -7.43641, 0.26362, -0.31210
10 | 0.75, 43.69998, -0.48336, 6.2, -8.91529, 0.34927, -0.30116
11 | 0.5, 47.13694, -0.88354, 6.1, -9.38070, 0.39279, -0.27345
12 | 0.4, 66.01481, -2.09548, 6.3, -11.92174, 0.55460, -0.26212
13 | 0.3, 84.00746, -3.74371, 6.4, -14.36503, 0.77954, -0.24890
14 | 0.25, 92.99872, -4.78684, 6.4, -15.65712, 0.92627, -0.23303
15 | 0.2, 112.00830, -6.51004, 6.5, -18.24856, 1.16354, -0.22159
16 | 0.15, 138.31690, -9.24763, 6.6, -21.80543, 1.53773, -0.20243
17 | 0.10, 115.28580, -8.43449, 6.3, -19.10105, 1.46438, -0.16934
18 | 0.075, 0, 0, 0, 0, 0, 0
19 | 0.05, 96.17582, -7.83323, 6.0, -16.84412, 1.42371, -0.13404
20 | 0.03, 76.95651, -6.19404, 5.8, -14.21214, 1.20096, -0.13501
21 | 0.02, 72.02564, -5.58468, 5.8, -13.46659, 1.10935, -0.14657
22 | 0.01, 69.57445, -5.26972, 5.8, -13.08968, 1.06122, -0.15310
23 | PGA, 69.33356, -5.22513, 5.8, -13.04691, 1.05354, -0.15287
24 | PGV, 44.09953, -3.24840, 5.4, -9.16765, 0.85807, -0.15093
25 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/Youngs97.csv:
--------------------------------------------------------------------------------
1 | T,gc1,gc1s,gc2,gc2s,gc3,gc3s,gc4,gc5,blin,b1,b2
2 | PGA,0,0,0,0,-2.556,-2.329,1.45,-0.1,-0.36,-0.64,-0.14
3 | 0.1,1.188,2.516,-0.0011,-0.0019,-2.655,-2.697,1.45,-0.1,-0.25,-0.6,-0.13
4 | 0.2,0.722,1.549,-0.0027,-0.0019,-2.528,-2.464,1.45,-0.1,-0.31,-0.52,-0.19
5 | 0.3,0.246,0.793,-0.0036,-0.002,-2.454,-2.327,1.45,-0.1,-0.44,-0.52,-0.14
6 | 0.4,-0.115,0.144,-0.0042,-0.002,-2.401,-2.23,1.45,-0.1,-0.5,-0.51,-0.1
7 | 0.5,-0.4,-0.438,-0.0048,-0.0035,-2.36,-2.14,1.45,-0.1,-0.6,-0.5,-0.06
8 | 0.75,-1.149,-1.704,-0.0057,-0.0048,-2.286,-1.95,1.45,-0.1,-0.69,-0.47,0
9 | 1.0,-1.736,-2.87,-0.0064,-0.0066,-2.234,-1.785,1.45,-0.1,-0.7,-0.44,0
10 | 1.5,-2.634,-5.101,-0.0073,-0.0114,-2.16,-1.47,1.5,-0.1,-0.72,-0.4,0
11 | 2.0,-3.328,-6.433,-0.008,-0.0164,-2.107,-1.29,1.55,-0.1,-0.73,-0.38,0
12 | 3.0,-4.511,-6.672,-0.0089,-0.0221,-2.033,-1.347,1.65,-0.1,-0.74,-0.34,0
13 | 4.0,-5.35,-7.618,-0.0096,-0.0235,-1.98,-1.272,1.65,-0.1,-0.75,-0.31,0
14 | 5.0,-6.025,-8.352,-0.0101,-0.0246,-1.939,-1.214,1.65,-0.1,-0.75,-0.291,0
15 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/coeffs/nga-east-usgs-sigma-epri.csv:
--------------------------------------------------------------------------------
1 | T, tau_M5, phi_M5, tau_M6, phi_M6, tau_M7, phi_M7
2 | 0.01, 0.4320, 0.6269, 0.3779, 0.5168, 0.3525, 0.5039
3 | 0.02, 0.4710, 0.6682, 0.4385, 0.5588, 0.4138, 0.5462
4 | 0.03, 0.4710, 0.6682, 0.4385, 0.5588, 0.4138, 0.5462
5 | # 0.04, 0.4710, 0.6682, 0.4385, 0.5588, 0.4138, 0.5462
6 | 0.05, 0.4710, 0.6682, 0.4385, 0.5588, 0.4138, 0.5462
7 | 0.075, 0.4710, 0.6682, 0.4385, 0.5588, 0.4138, 0.5462
8 | 0.1, 0.4710, 0.6682, 0.4385, 0.5588, 0.4138, 0.5462
9 | 0.15, 0.4433, 0.6693, 0.4130, 0.5631, 0.3886, 0.5506
10 | 0.2, 0.4216, 0.6691, 0.3822, 0.5689, 0.3579, 0.5566
11 | 0.25, 0.4150, 0.6646, 0.3669, 0.5717, 0.3427, 0.5597
12 | 0.3, 0.4106, 0.6623, 0.3543, 0.5846, 0.3302, 0.5727
13 | 0.4, 0.4088, 0.6562, 0.3416, 0.5997, 0.3176, 0.5882
14 | 0.5, 0.4175, 0.6526, 0.3456, 0.6125, 0.3217, 0.6015
15 | 0.75, 0.4439, 0.6375, 0.3732, 0.6271, 0.3494, 0.6187
16 | 1.0, 0.4620, 0.6219, 0.3887, 0.6283, 0.3650, 0.6227
17 | 1.5, 0.4774, 0.5957, 0.4055, 0.6198, 0.3819, 0.6187
18 | 2.0, 0.4809, 0.5860, 0.4098, 0.6167, 0.3863, 0.6167
19 | 3.0, 0.4862, 0.5813, 0.4186, 0.6098, 0.3952, 0.6098
20 | 4.0, 0.4904, 0.5726, 0.4144, 0.6003, 0.3910, 0.6003
21 | 5.0, 0.4899, 0.5651, 0.4182, 0.5986, 0.3949, 0.5986
22 | 7.5, 0.4803, 0.5502, 0.4067, 0.5982, 0.3835, 0.5982
23 | 10.0, 0.4666, 0.5389, 0.3993, 0.5885, 0.3761, 0.5885
24 | PGA, 0.4320, 0.6269, 0.3779, 0.5168, 0.3525, 0.5039
25 | PGV, 0.3925, 0.5979, 0.3612, 0.5218, 0.3502, 0.5090
26 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Implementations of all
3 | * {@link gov.usgs.earthquake.nshmp.gmm.GroundMotionModel}s used in the 2008 and
4 | * 2014 USGS National Seismic Hazard Models.
5 | *
6 | * Most of the model implementations in this package may not be instantiated
7 | * directly. Rather, instances of each are/should be obtained via
8 | * {@link gov.usgs.earthquake.nshmp.gmm.Gmm#instance(Imt)}. The various models
9 | * are exposed publicly for the sake of documentation. In many cases, the public
10 | * implementations are {@code abstract}, and there are a variety of model
11 | * flavors that are available via the {@link gov.usgs.earthquake.nshmp.gmm.Gmm}
12 | * enum.
13 | */
14 | package gov.usgs.earthquake.nshmp.gmm;
15 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/gmm/tables/nga-east-seed-weights.dat:
--------------------------------------------------------------------------------
1 | model, weight
2 | B_bca10d, 0.06633
3 | B_ab95, 0.02211
4 | B_bs11, 0.02211
5 | 2CCSP, 0.055275
6 | 2CVSP, 0.055275
7 | Graizer16, 0.05445
8 | Graizer17, 0.05445
9 | PZCT15_M1SS, 0.05445
10 | PZCT15_M2ES, 0.05445
11 | SP16, 0.1089
12 | YA15, 0.1122
13 | HA15, 0.1122
14 | Frankel, 0.1122
15 | PEER_GP, 0.1156
16 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/internal/NuregSite.java:
--------------------------------------------------------------------------------
1 | package gov.usgs.earthquake.nshmp.internal;
2 |
3 | import gov.usgs.earthquake.nshmp.geo.Location;
4 | import gov.usgs.earthquake.nshmp.util.NamedLocation;
5 |
6 | /**
7 | * CEUS-SSCn NRC NUREG demonstration sites. Most are also present in
8 | * {@code NshmpSite}, but with less precise coordinates.
9 | *
10 | * @author Peter Powers
11 | */
12 | @SuppressWarnings("javadoc")
13 | public enum NuregSite implements NamedLocation {
14 |
15 | CENTRAL_IL(-90.000, 40.000),
16 | CHATTANOOGA_TN(-85.255, 35.064),
17 | HOUSTON_TX(-95.363, 29.760),
18 | JACKSON_MS(-90.187, 32.312),
19 | MANCHESTER_NH(-71.463, 42.991),
20 | SAVANNAH_GA(-81.097, 32.082),
21 | TOPEKA_KS(-95.682, 39.047);
22 |
23 | private final Location loc;
24 | private final UsRegion state;
25 |
26 | private NuregSite(double lon, double lat) {
27 | this.loc = Location.create(lat, lon);
28 | this.state = UsRegion.valueOf(name().substring(name().lastIndexOf('_') + 1));
29 | }
30 |
31 | public UsRegion state() {
32 | return state;
33 | }
34 |
35 | @Override
36 | public Location location() {
37 | return loc;
38 | }
39 |
40 | @Override
41 | public String id() {
42 | return this.name();
43 | }
44 |
45 | @Override
46 | public String toString() {
47 | String label = Parsing.enumLabelWithSpaces(this, true);
48 | int stripIndex = label.lastIndexOf(' ');
49 | return label.substring(0, stripIndex) + " " + state.name();
50 | }
51 |
52 | }
53 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/internal/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Internal helper classes that are not documented.
3 | */
4 | package gov.usgs.earthquake.nshmp.internal;
5 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/mfd/MfdType.java:
--------------------------------------------------------------------------------
1 | package gov.usgs.earthquake.nshmp.mfd;
2 |
3 | /**
4 | * Magnitude-frequency distribution (MFD) type identifier.
5 | *
6 | * @author Peter Powers
7 | * @see Mfds
8 | */
9 | public enum MfdType {
10 |
11 | /** An MFD with a single magnitude and rate. */
12 | SINGLE,
13 |
14 | /** An incremental Gutenberg-Richter MFD. */
15 | GR,
16 |
17 | /** A Gutenberg-Richter MFD with a tapered upper tail. */
18 | GR_TAPER,
19 |
20 | /**
21 | * An MFD defining multiple magnitudes with varying rates. This is only used
22 | * in the 2008 California model where the rates of magnitudes above 6.5 were
23 | * reduced by a fixed amount, yielding MFDs that no longer had a clean
24 | * functional form.
25 | */
26 | INCR;
27 | }
28 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/mfd/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Magnitude frequency distribution (MFDs) classes and utilties.
3 | */
4 | package gov.usgs.earthquake.nshmp.mfd;
5 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Entry points for conducting probabilisitic seismic hazard analyses (PSHA).
3 | */
4 | package gov.usgs.earthquake.nshmp;
5 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/util/Named.java:
--------------------------------------------------------------------------------
1 | package gov.usgs.earthquake.nshmp.util;
2 |
3 | /**
4 | * Interface indicating an object has a name, usually prettified for display and
5 | * distinct from {@code toString()}, which often provides a more complete
6 | * description of an object, or a raw data representation. This method should
7 | * never return {@code null} or an empty {@code String}.
8 | *
9 | * @author Peter Powers
10 | */
11 | public interface Named {
12 |
13 | /**
14 | * Returns an object's display name.
15 | * @return the name
16 | */
17 | String name();
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/util/NamedLocation.java:
--------------------------------------------------------------------------------
1 | package gov.usgs.earthquake.nshmp.util;
2 |
3 | import gov.usgs.earthquake.nshmp.geo.Location;
4 |
5 | /**
6 | * Marker interface for {@code enum}s of {@link Location}s. This interface is
7 | * distinct from {@link Named} due to shadowing of {@link Enum#name()}.
8 | * Typically, implementing enum types return a human-readable label via
9 | * {@code toString()} and return the value typically returned by
10 | * {@link Enum#name()} via {@link #id()} .
11 | *
12 | * @author Peter Powers
13 | */
14 | public interface NamedLocation {
15 |
16 | /**
17 | * Return the location.
18 | */
19 | Location location();
20 |
21 | /**
22 | * Return a unique id for the location. This is typically the value returned
23 | * by {@link Enum#name()}.
24 | */
25 | String id();
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/util/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Miscellaneous utilties.
3 | */
4 | package gov.usgs.earthquake.nshmp.util;
5 |
--------------------------------------------------------------------------------
/test/gov/usgs/earthquake/nshmp/data/ImmutableXySequenceTests.java:
--------------------------------------------------------------------------------
1 | package gov.usgs.earthquake.nshmp.data;
2 |
3 | import static org.junit.Assert.assertFalse;
4 |
5 | import org.junit.Test;
6 |
7 | @SuppressWarnings("javadoc")
8 | public class ImmutableXySequenceTests {
9 |
10 | @Test
11 | public final void testIsEmpty() {
12 |
13 | double[] xs = new double[] {0,1,2,3};
14 | double[] ys = new double[] {-1,0,1,0};
15 |
16 | XySequence xy = XySequence.createImmutable(xs, ys);
17 | assertFalse(xy.isClear());
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/test/gov/usgs/earthquake/nshmp/data/InterpolatorTests.java:
--------------------------------------------------------------------------------
1 | package gov.usgs.earthquake.nshmp.data;
2 |
3 | import static org.junit.Assert.*;
4 |
5 | import org.junit.Test;
6 |
7 | public class InterpolatorTests {
8 |
9 | /*
10 | * Developer notes:
11 | *
12 | * How are single valued XySequences handled; should
13 | * empty XySequences be allowed, probably not; singletons should be
14 | * however; so how would this behave in interpolator if extrapolation
15 | * is allowed for y-interpolation; answer: singletons shouldn't
16 | * be allowed as arguments; it's just simpler
17 | *
18 | * add checkArgument(xys.size() > 1), test with XySeq.size = 1; add to docs
19 | */
20 |
21 | // @Test
22 | // public void test() {
23 | //
24 | // fail("Not yet implemented");
25 | // }
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/test/gov/usgs/earthquake/nshmp/eq/fault/surface/DefaultGriddedSurfaceTest.java:
--------------------------------------------------------------------------------
1 | package gov.usgs.earthquake.nshmp.eq.fault.surface;
2 |
3 | import static org.junit.Assert.assertEquals;
4 |
5 | import org.junit.Test;
6 |
7 | import gov.usgs.earthquake.nshmp.geo.Location;
8 | import gov.usgs.earthquake.nshmp.geo.LocationList;
9 |
10 | @SuppressWarnings("javadoc")
11 | public class DefaultGriddedSurfaceTest {
12 |
13 | @Test
14 | public final void testBuilder() {
15 |
16 | DefaultGriddedSurface surface = createBasic();
17 |
18 | assertEquals(surface.dipSpacing, 1.0, 0.0);
19 | assertEquals(surface.strikeSpacing, 0.9884, 0.000001);
20 |
21 | assertEquals(surface.getNumRows(), 16);
22 | assertEquals(surface.getNumCols(), 46);
23 |
24 | }
25 |
26 | private static DefaultGriddedSurface createBasic() {
27 |
28 | LocationList trace = LocationList.create(
29 | Location.create(34.0, -118.0),
30 | Location.create(34.4, -118.0));
31 |
32 | DefaultGriddedSurface surface = DefaultGriddedSurface.builder()
33 | .trace(trace)
34 | .depth(0.0)
35 | .dip(90.0)
36 | .width(15.0)
37 | .build();
38 |
39 | return surface;
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/test/gov/usgs/earthquake/nshmp/eq/model/data/bad[name].zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/usgs/nshmp-haz/35e140b8eb665e35d373dbd4a96d2204ce7f2592/test/gov/usgs/earthquake/nshmp/eq/model/data/bad[name].zip
--------------------------------------------------------------------------------
/test/gov/usgs/earthquake/nshmp/eq/model/data/empty.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/usgs/nshmp-haz/35e140b8eb665e35d373dbd4a96d2204ce7f2592/test/gov/usgs/earthquake/nshmp/eq/model/data/empty.zip
--------------------------------------------------------------------------------
/test/gov/usgs/earthquake/nshmp/eq/model/data/fault-wus-model/Fault/gmm.xml:
--------------------------------------------------------------------------------
1 |
2 | The adjacent figure shows that
10 | * a {@code MERCATOR_LINEAR} border between two {@code Location}s with the same
11 | * latitude will follow the corresponding parallel (solid line). The equivalent
12 | * {@code GREAT_CIRCLE} border segment will follow the shortest path between the
13 | * two {@code Location}s (dashed line).
14 | *
15 | * @author Peter Powers
16 | * @see Region
17 | * @see Location
18 | */
19 | public enum BorderType {
20 |
21 | /**
22 | * Defines a {@link Region} border as following a straight line in a Mercator
23 | * projection
24 | */
25 | MERCATOR_LINEAR,
26 |
27 | /**
28 | * Defines a {@link Region} border as following a great circle.
29 | */
30 | GREAT_CIRCLE;
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/src/gov/usgs/earthquake/nshmp/geo/json/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Helper classes for generating and working with GeoJson.
3 | *
4 | *