org.opensha.sha.faultSurface
Class FrankelGriddedSurface
java.lang.Object
org.opensha.commons.data.Container2DImpl<Location>
org.opensha.sha.faultSurface.AbstractEvenlyGriddedSurface
org.opensha.sha.faultSurface.AbstractEvenlyGriddedSurfaceWithSubsets
org.opensha.sha.faultSurface.EvenlyGriddedSurfFromSimpleFaultData
org.opensha.sha.faultSurface.FrankelGriddedSurface
- All Implemented Interfaces:
- Serializable, Iterable<Location>, Container2D<Location>, Named, EvenlyGriddedSurface, RuptureSurface
public class FrankelGriddedSurface
- extends EvenlyGriddedSurfFromSimpleFaultData
Title: FrankelGriddedSurface. This creates an
EvenlyDiscretizedSurface using the scheme defined by Art Frankel in his
Fortran code for the 1996 USGS hazard maps. Grid points are projected down
dip at an angle perpendicular to the azimuth of each segment.
Description:
- Version:
- 1.0
- Author:
- Steven W. Rock
- See Also:
- Serialized Form
|
Constructor Summary |
FrankelGriddedSurface(ArrayList<SimpleFaultData> simpleFaultData,
double gridSpacing)
Stitch Together the fault sections. |
FrankelGriddedSurface(FaultTrace faultTrace,
double aveDip,
double upperSeismogenicDepth,
double lowerSeismogenicDepth,
double gridSpacing)
This applies the grid spacing exactly as given (trimming any remainder from the ends), |
FrankelGriddedSurface(SimpleFaultData simpleFaultData,
double gridSpacing)
This applies the grid spacing exactly as given (trimming any remainder from the ends), |
FrankelGriddedSurface(SimpleFaultData simpleFaultData,
double maxGridSpacingAlong,
double maxGridSpacingDown)
This will fit the length & DDW of the fault exactly (no trimming) by adjusting the grid spacing
to just below the grid spacings given |
| Methods inherited from class org.opensha.sha.faultSurface.AbstractEvenlyGriddedSurface |
getArea, getAveGridSpacing, getAveLength, getAveWidth, getDistanceJB, getDistanceRup, getDistanceSeis, getDistanceX, getEvenlyDiscritizedListOfLocsOnSurface, getEvenlyDiscritizedPerimeter, getEvenlyDiscritizedUpperEdge, getFirstLocOnUpperEdge, getFractionOfSurfaceInRegion, getGridSpacingAlongStrike, getGridSpacingDownDip, getInfo, getLastLocOnUpperEdge, getLocation, getLocationsIterator, getMinDistance, getPerimeter, getRowAsTrace, isGridSpacingSame, isPointSurface |
| Methods inherited from class org.opensha.commons.data.Container2DImpl |
checkBounds, clear, exist, get, getAllByColumnsIterator, getAllByRowsIterator, getColumnIterator, getName, getNumCols, getNumRows, getRowIterator, iterator, listIterator, set, setName, setNumRowsAndNumCols, size, toJava2D, toString |
| Methods inherited from interface org.opensha.commons.data.Container2D |
clear, exist, get, getAllByColumnsIterator, getAllByRowsIterator, getColumnIterator, getNumCols, getNumRows, getRowIterator, listIterator, set, setName, size, toString |
| Methods inherited from interface org.opensha.commons.data.Named |
getName |
C
protected static final String C
- See Also:
- Constant Field Values
D
protected static final boolean D
- See Also:
- Constant Field Values
PI_RADIANS
protected static final double PI_RADIANS
- See Also:
- Constant Field Values
ERR
protected static final String ERR
- See Also:
- Constant Field Values
FrankelGriddedSurface
public FrankelGriddedSurface(SimpleFaultData simpleFaultData,
double gridSpacing)
throws FaultException
- This applies the grid spacing exactly as given (trimming any remainder from the ends),
- Throws:
FaultException
FrankelGriddedSurface
public FrankelGriddedSurface(FaultTrace faultTrace,
double aveDip,
double upperSeismogenicDepth,
double lowerSeismogenicDepth,
double gridSpacing)
throws FaultException
- This applies the grid spacing exactly as given (trimming any remainder from the ends),
- Throws:
FaultException
FrankelGriddedSurface
public FrankelGriddedSurface(ArrayList<SimpleFaultData> simpleFaultData,
double gridSpacing)
throws FaultException
- Stitch Together the fault sections. It assumes:
1. Sections are in correct order
2. Distance between end points of section in correct order is less than the distance to opposite end of section
Upper seismogenic depth, sip aand lower seimogenic depth are area weighted.
- Parameters:
simpleFaultData - gridSpacing -
- Throws:
FaultException
FrankelGriddedSurface
public FrankelGriddedSurface(SimpleFaultData simpleFaultData,
double maxGridSpacingAlong,
double maxGridSpacingDown)
throws FaultException
- This will fit the length & DDW of the fault exactly (no trimming) by adjusting the grid spacing
to just below the grid spacings given
- Parameters:
simpleFaultData - maxGridSpacingAlong - maxGridSpacingDown -
- Throws:
FaultException
getAveDipDirection
public double getAveDipDirection()
- Description copied from interface:
RuptureSurface
- Average dip direction (degrees) of rupture surface
- Returns:
deepCopy
public FrankelGriddedSurface deepCopy()
- This returns a deep copy of this FrankelGriddedSurface
- Returns:
deepCopyOverrideDepth
public FrankelGriddedSurface deepCopyOverrideDepth(double depth)
- This returns a deep copy of this FrankelGriddedSurface with all depths set to the given depth (if depth is NaN, the original
depth will be preserved). This is useful for background seismicity sources that create copies of Frankel surfaces with only
the depths changed.
- Parameters:
depth - new depth value to override all depths in cloned surface, or NaN to preserve original depths
- Returns:
clone
protected Object clone()
throws CloneNotSupportedException
- Overrides:
clone in class Object
- Throws:
CloneNotSupportedException
main
public static void main(String[] args)