org.opensha.sha.faultSurface
Class FrankelGriddedSurface

java.lang.Object
  extended by org.opensha.commons.data.Container2DImpl<Location>
      extended by org.opensha.sha.faultSurface.AbstractEvenlyGriddedSurface
          extended by org.opensha.sha.faultSurface.AbstractEvenlyGriddedSurfaceWithSubsets
              extended by org.opensha.sha.faultSurface.EvenlyGriddedSurfFromSimpleFaultData
                  extended by org.opensha.sha.faultSurface.FrankelGriddedSurface
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<Location>, Container2D<Location>, Named, CacheEnabledSurface, 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

Field Summary
protected static java.lang.String C
           
protected static boolean D
           
protected static java.lang.String ERR
           
protected static double PI_RADIANS
           
 
Fields inherited from class org.opensha.sha.faultSurface.EvenlyGriddedSurfFromSimpleFaultData
aveDip, faultTrace, lowerSeismogenicDepth, upperSeismogenicDepth
 
Fields inherited from class org.opensha.sha.faultSurface.AbstractEvenlyGriddedSurface
gridSpacingAlong, gridSpacingDown, sameGridSpacing
 
Fields inherited from class org.opensha.commons.data.Container2DImpl
data, name, numCols, numRows, size, TAB
 
Constructor Summary
FrankelGriddedSurface(java.util.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
 
Method Summary
 FrankelGriddedSurface deepCopy()
          This returns a deep copy of this FrankelGriddedSurface
 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).
 double getAveDipDirection()
          Average dip direction (degrees) of rupture surface
protected  AbstractEvenlyGriddedSurface getNewInstance()
          Creates a new instance with the correct sub-class type, used for copying methods
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.opensha.sha.faultSurface.EvenlyGriddedSurfFromSimpleFaultData
assertValidData, getAveDip, getAveRupTopDepth, getAveStrike, getFaultTrace, getLowerSeismogenicDepth, getUpperEdge, getUpperSeismogenicDepth, set
 
Methods inherited from class org.opensha.sha.faultSurface.AbstractEvenlyGriddedSurfaceWithSubsets
getNthSubsetSurface, getNthSubsetSurface, getNthSubsetSurfaceCenteredDownDip, getNumSubsetSurfaces, getNumSubsetSurfacesAlongLength, getSubsetSurfacesIterator, getSubsetSurfacesIterator
 
Methods inherited from class org.opensha.sha.faultSurface.AbstractEvenlyGriddedSurface
calcDistances, calcDistanceX, copyShallow, getArea, getAveGridSpacing, getAveLength, getAveWidth, getDistanceJB, getDistanceRup, getDistanceSeis, getDistanceX, getEvenlyDiscritizedListOfLocsOnSurface, getEvenlyDiscritizedLowerEdge, getEvenlyDiscritizedPerimeter, getEvenlyDiscritizedUpperEdge, getFirstLocOnUpperEdge, getFractionOfSurfaceInRegion, getGridSpacingAlongStrike, getGridSpacingDownDip, getInfo, getLastLocOnUpperEdge, getLocation, getLocationsIterator, getMinDistance, getMoved, getPerimeter, getRowAsTrace, isGridSpacingSame, isPointSurface
 
Methods inherited from class org.opensha.commons.data.Container2DImpl
checkBounds, clear, clone, exist, get, getAllByColumnsIterator, getAllByRowsIterator, getColumnIterator, getName, getNumCols, getNumRows, getRowIterator, iterator, listIterator, set, setName, setNumRowsAndNumCols, size, toJava2D, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 
Methods inherited from interface java.lang.Iterable
iterator
 

Field Detail

C

protected static final java.lang.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 java.lang.String ERR
See Also:
Constant Field Values
Constructor Detail

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(java.util.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
Method Detail

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:

main

public static void main(java.lang.String[] args)

getNewInstance

protected AbstractEvenlyGriddedSurface getNewInstance()
Description copied from class: AbstractEvenlyGriddedSurface
Creates a new instance with the correct sub-class type, used for copying methods

Specified by:
getNewInstance in class AbstractEvenlyGriddedSurface
Returns: