org.opensha.sha.faultSurface
Class EvenlyGridCenteredSurface

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.EvenlyGridCenteredSurface
All Implemented Interfaces:
Serializable, Iterable<Location>, Container2D<Location>, Named, EvenlyGriddedSurface, RuptureSurface

public class EvenlyGridCenteredSurface
extends AbstractEvenlyGriddedSurfaceWithSubsets

Title:EvenlyGridCenteredSurface

Description:Creates a Evenly GridCentered Surface. Creates EvenlyGriddedSurface that has one less row and col then the original surface. It averages the 4 corner location on each grid surface to get the grid centered location.

Version:
1.0
Author:
Edward Field, Nitin Gupta
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.opensha.sha.faultSurface.AbstractEvenlyGriddedSurface
C, D, gridSpacingAlong, gridSpacingDown, sameGridSpacing
 
Fields inherited from class org.opensha.commons.data.Container2DImpl
data, name, numCols, numRows, size, TAB
 
Constructor Summary
EvenlyGridCenteredSurface(EvenlyGriddedSurface surface)
          Class constructor that takes in a EvenGriddedSurface and computes a EvenlyGridCentered Surface.
 
Method Summary
 double getAveDip()
          Average dip (degrees) of rupture surface
 double getAveDipDirection()
          Average dip direction (degrees) of rupture surface
 double getAveRupTopDepth()
          Average depth (km) to top of rupture (always a positive number)
 double getAveStrike()
          Average strike (degrees) of rupture surface
 RuptureSurface getOrigSurface()
          This returns the original surface
 
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
getArea, getAveGridSpacing, getAveLength, getAveWidth, getDistanceJB, getDistanceRup, getDistanceSeis, getDistanceX, getEvenlyDiscritizedListOfLocsOnSurface, getEvenlyDiscritizedLowerEdge, getEvenlyDiscritizedPerimeter, getEvenlyDiscritizedUpperEdge, getFirstLocOnUpperEdge, getFractionOfSurfaceInRegion, getGridSpacingAlongStrike, getGridSpacingDownDip, getInfo, getLastLocOnUpperEdge, getLocation, getLocationsIterator, getMinDistance, getPerimeter, getRowAsTrace, getUpperEdge, isGridSpacingSame, isPointSurface
 
Methods inherited from class org.opensha.commons.data.Container2DImpl
checkBounds, clear, exist, get, getAllByColumnsIterator, getAllByRowsIterator, getColumnIterator, getName, getNumCols, getNumRows, getRowIterator, iterator, listIterator, main, set, setName, setNumRowsAndNumCols, size, toJava2D, toString
 
Methods inherited from class java.lang.Object
clone, 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
 

Constructor Detail

EvenlyGridCenteredSurface

public EvenlyGridCenteredSurface(EvenlyGriddedSurface surface)
Class constructor that takes in a EvenGriddedSurface and computes a EvenlyGridCentered Surface.

Parameters:
surface - EvenlyGriddedSurface
Method Detail

getOrigSurface

public RuptureSurface getOrigSurface()
This returns the original surface

Returns:
EvenlyGriddedSurfaceAPI

getAveStrike

public double getAveStrike()
Description copied from interface: RuptureSurface
Average strike (degrees) of rupture surface

Returns:

getAveDip

public double getAveDip()
Description copied from interface: RuptureSurface
Average dip (degrees) of rupture surface

Returns:

getAveDipDirection

public double getAveDipDirection()
Description copied from interface: RuptureSurface
Average dip direction (degrees) of rupture surface

Returns:

getAveRupTopDepth

public double getAveRupTopDepth()
Description copied from interface: RuptureSurface
Average depth (km) to top of rupture (always a positive number)

Returns: