org.opensha.gem.GEM1.calc.gemModelParsers.nshmp
Class NshmpSubduction2GemSourceData

java.lang.Object
  extended by org.opensha.gem.GEM1.calc.gemModelParsers.GemFileParser
      extended by 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

Field Summary
 
Fields inherited from class org.opensha.gem.GEM1.calc.gemModelParsers.GemFileParser
srcDataList
 
Constructor Summary
NshmpSubduction2GemSourceData(String inputfile, TectonicRegionType trt, double fileWeight, double latmin, double latmax, double lonmin, double lonmax)
           
 
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 org.opensha.gem.GEM1.calc.gemModelParsers.GemFileParser
getAreaSourceList, getFaultSourceList, getList, getNumSources, getPointSourceList, getSubductionFaultSourceList, setList, writeAreaGMTfile, writeAreaKMLfile, writeFaultGMTfile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NshmpSubduction2GemSourceData

public NshmpSubduction2GemSourceData(String inputfile,
                                     TectonicRegionType trt,
                                     double fileWeight,
                                     double latmin,
                                     double latmax,
                                     double lonmin,
                                     double lonmax)
                              throws IOException
Throws:
IOException
Method Detail

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 magnitudes
mwdt: - magnitude bin width
aVal: - 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: - incremental
bVal -
minMag -
maxMag -
deltaMag: - magnitude bin width used to compute a value
weight: - to scale the mfd
Returns: