org.opensha.sha.earthquake.rupForecastImpl.GEM1.SourceData
Class GEMAreaSourceData
java.lang.Object
org.opensha.sha.earthquake.rupForecastImpl.GEM1.SourceData.GEMSourceData
org.opensha.sha.earthquake.rupForecastImpl.GEM1.SourceData.GEMAreaSourceData
public class GEMAreaSourceData
- extends GEMSourceData
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 -
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