org.opensha.gem.GEM1.calc.gemModelParsers.nshmp
Class NshmpSubduction2GemSourceData
java.lang.Object
org.opensha.gem.GEM1.calc.gemModelParsers.GemFileParser
org.opensha.gem.GEM1.calc.gemModelParsers.nshmp.NshmpSubduction2GemSourceData
public class NshmpSubduction2GemSourceData
- extends GemFileParser
This class reads a NSHMP subduction input file and returns a list
of GEMFaultSourceData.
The user must provide the file name, the tectonic region, and the
file weight (as derived by the logic tree)
- Author:
- damianomonelli
|
Method Summary |
IncrementalMagFreqDist |
computeGRmfd(double aVal,
double bVal,
double minMag,
double maxMag,
double deltaMag,
double weight)
|
double |
totMoRate(double mminR,
int numMag,
double mwdt,
double aVal,
double bVal)
compute total moment rate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NshmpSubduction2GemSourceData
public NshmpSubduction2GemSourceData(String inputfile,
TectonicRegionType trt,
double fileWeight,
double latmin,
double latmax,
double lonmin,
double lonmax)
throws IOException
- Throws:
IOException
totMoRate
public double totMoRate(double mminR,
int numMag,
double mwdt,
double aVal,
double bVal)
- compute total moment rate
- Parameters:
mminR: - minimum magnitude (rounded to multiple of mwdt and moved to bin center)numMag: - number of magnitudesmwdt: - magnitude bin widthaVal: - incremental a value (check that it is defined with respect to mwdt)bVal: - b value
- Returns:
computeGRmfd
public IncrementalMagFreqDist computeGRmfd(double aVal,
double bVal,
double minMag,
double maxMag,
double deltaMag,
double weight)
- Parameters:
aVal: - incrementalbVal - minMag - maxMag - deltaMag: - magnitude bin width used to compute a valueweight: - to scale the mfd
- Returns: