org.opensha.sha.earthquake.rupForecastImpl.GEM1.SourceData
Class GEMAreaSourceData

java.lang.Object
  extended by org.opensha.sha.earthquake.rupForecastImpl.GEM1.SourceData.GEMSourceData
      extended by org.opensha.sha.earthquake.rupForecastImpl.GEM1.SourceData.GEMAreaSourceData

public class GEMAreaSourceData
extends GEMSourceData


Field Summary
 
Fields inherited from class org.opensha.sha.earthquake.rupForecastImpl.GEM1.SourceData.GEMSourceData
id, name, tectReg
 
Constructor Summary
GEMAreaSourceData(String id, String name, TectonicRegionType tectReg, Region reg, MagFreqDistsForFocalMechs magfreqDistFocMech, ArbitrarilyDiscretizedFunc aveRupTopVsMag, double aveHypoDepth)
          This is the constructor for the GEMAreaSourceData class.
 
Method Summary
 double getArea()
          D.M.
 double getAveHypoDepth()
           
 ArbitrarilyDiscretizedFunc getAveRupTopVsMag()
           
 MagFreqDistsForFocalMechs getMagfreqDistFocMech()
           
 double getMagfreqDistFocMech(int i)
           
 Region getRegion()
           
 void writeXML(BufferedWriter buf)
           
 
Methods inherited from class org.opensha.sha.earthquake.rupForecastImpl.GEM1.SourceData.GEMSourceData
getID, getName, getTectReg, setName, setTectReg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GEMAreaSourceData

public GEMAreaSourceData(String id,
                         String name,
                         TectonicRegionType tectReg,
                         Region reg,
                         MagFreqDistsForFocalMechs magfreqDistFocMech,
                         ArbitrarilyDiscretizedFunc aveRupTopVsMag,
                         double aveHypoDepth)
This is the constructor for the GEMAreaSourceData class. It takes as input parameters the ID of the source, its name and TectonicRegion definition, the Region bordering the area, a MagFreqDistsForFocalMechs object containing the MFD and the focal mechanism of the fault families within the source,

Parameters:
id -
name -
tectReg -
reg -
magfreqDistFocMech -
aveRupTopVsMag -
aveHypoDepth -
Method Detail

getRegion

public Region getRegion()

getMagfreqDistFocMech

public double getMagfreqDistFocMech(int i)

getMagfreqDistFocMech

public MagFreqDistsForFocalMechs getMagfreqDistFocMech()

getAveRupTopVsMag

public ArbitrarilyDiscretizedFunc getAveRupTopVsMag()

getAveHypoDepth

public double getAveHypoDepth()

getArea

public double getArea()
D.M. This computes an approximate extension of an area source meant as a polygon on a sphere. The algorithm is taken from "Some algorithms for Polygons on a Sphere", R.G.Chamberlain, W.H.Duquette, Jet Propulsion Laboratory, presented at the Association of American Geographers Annual Meeting, San Francisco California, 17-21 April 2007. JPL publication 07-3 I commented the algorithm from Marco for the moment, because I found it slower and in case of the Autralia model it was giving some strange values. Maybe somo more investigation is needed? I checked the results of this algorithm with the areas provide in the Australia model and the numbers are consistent (not identical however).

Returns:
area

writeXML

public void writeXML(BufferedWriter buf)
              throws IOException
Parameters:
buf -
Throws:
IOException