|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.commons.data.ContainerSubset2D<Location>
org.opensha.sha.faultSurface.GriddedSubsetSurface
public class GriddedSubsetSurface
Title: GriddedSubsetSurface
Description: This represents a subset of an EvenlyGriddedSurface (as a pointer, not duplicated in memory) Note: This class is purely a convinience class that translates indexes so the user can deal with a smaller window than the full GriddedSurface. Think of this as a "ZOOM" function into a GriddedSurface.
Window2D,
Serialized Form| Field Summary |
|---|
| Fields inherited from class org.opensha.commons.data.ContainerSubset2D |
|---|
C, D, data, name, oldWindow, window |
| Constructor Summary | |
|---|---|
GriddedSubsetSurface(int numRows,
int numCols,
int startRow,
int startCol,
EvenlyGriddedSurface data)
Constructor for the GriddedSubsetSurface object |
|
| Method Summary | |
|---|---|
double |
getArea()
This returns the surface area in km-sq |
double |
getAveDip()
Proxy method that returns the aveDip of the main GriddedSurface. |
double |
getAveDipDirection()
Average dip direction (degrees) of rupture surface |
double |
getAveGridSpacing()
This returns the average grid spacing used to define the discretization used in what's returned by the methods here that contain "Discretized" in their names. |
double |
getAveLength()
This returns the average length of the surface in km |
double |
getAveRupTopDepth()
Average depth (km) to top of rupture (always a positive number) |
double |
getAveStrike()
Average strike (degrees) of rupture surface |
double |
getAveWidth()
Average down-dip width (km) of rupture surface |
double |
getDistanceJB(Location siteLoc)
This returns distance JB (shortest horz distance in km to surface projection of rupture), assuming the location has zero depth (for numerical expediency). |
double |
getDistanceRup(Location siteLoc)
This returns rupture distance (kms to closest point on the rupture surface), assuming the location has zero depth (for numerical expediency). |
double |
getDistanceSeis(Location siteLoc)
This returns "distance seis" (shortest distance in km to point on rupture deeper than 3 km), assuming the location has zero depth (for numerical expediency). |
double |
getDistanceX(Location siteLoc)
This returns distance X (the shortest distance in km to the rupture trace extended to infinity), where values >= 0 are on the hanging wall and values < 0 are on the foot wall. |
LocationList |
getEvenlyDiscritizedListOfLocsOnSurface()
This returns a list of locations that are evenly spread (at least approximately) over the rupture surface, with a spacing given by what's returned by the getGridSpacing() method. |
LocationList |
getEvenlyDiscritizedPerimeter()
This returns a list of locations that are evenly spread (at least approximately) over the surface perimeter, with a spacing given by what's returned by the getGridSpacing() method. |
FaultTrace |
getEvenlyDiscritizedUpperEdge()
This returns a list of locations that are evenly spread along the upper edge of the surface. |
Location |
getFirstLocOnUpperEdge()
This returns the first location on the upper edge of the surface |
double |
getFractionOfSurfaceInRegion(Region region)
The is returns the fraction of this rupture surface that's inside the given region. |
double |
getGridSpacingAlongStrike()
returns the grid spacing along strike |
double |
getGridSpacingDownDip()
returns the grid spacing down dip |
String |
getInfo()
This is a string giving brief info about the surface (e.g., used in GUIs) |
Location |
getLastLocOnUpperEdge()
This returns the last location on the upper edge of the surface |
Location |
getLocation(int row,
int column)
gets the location from the 2D container |
ListIterator<Location> |
getLocationsIterator()
This returns what's given by getEvenlyDiscritizedListOfLocsOnSurface() as an interator |
int |
getMainNumCols()
Proxy method that returns the number of colums in the main GriddedSurface. |
int |
getMainNumRows()
Proxy method that returns the number of rows in the main GriddedSurface. |
double |
getMinDistance(RuptureSurface surface)
This returns the minimum distance as the minimum among all location pairs between the two surfaces |
EvenlyGriddedSurface |
getParentSurface()
This returns the parent surface |
LocationList |
getPerimeter()
Get a list of locations that constitutes the perimeter of the surface (not necessarily evenly spaced) |
FaultTrace |
getRowAsTrace(int row)
Gets a specified row as a fault trace |
FaultTrace |
getUpperEdge()
Returns same as getEvenlyDiscritizedUpperEdge() |
Boolean |
isGridSpacingSame()
this tells whether along-strike and down-dip grid spacings are the same |
boolean |
isPointSurface()
This indicates whether this is a point surface |
void |
setLocation(int row,
int col,
Location location)
Add a Location to the grid. |
| Methods inherited from class org.opensha.commons.data.ContainerSubset2D |
|---|
clear, commit, exist, get, getAllByColumnsIterator, getAllByRowsIterator, getColumnIterator, getContainer2D, getEndCol, getEndRow, getName, getNumCols, getNumRows, getRowIterator, getStartCol, getStartRow, initTransaction, iterator, listIterator, main, rollback, set, setContainer2D, setName, setStartCol, setStartRow, shiftCols, shiftRows, size, toJava2D, toString, validate |
| 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 |
|---|
public GriddedSubsetSurface(int numRows,
int numCols,
int startRow,
int startCol,
EvenlyGriddedSurface data)
throws ArrayIndexOutOfBoundsException
numRows - Specifies the length of the window.numCols - Specifies the height of the windowstartRow - Start row into the main GriddedSurface.startCol - Start column into the main GriddedSurface.data - The main GriddedSurface this is a window into
ArrayIndexOutOfBoundsException - Thrown if window indexes exceed the
main GriddedSurface indexes.| Method Detail |
|---|
public void setLocation(int row,
int col,
Location location)
public int getMainNumRows()
public int getMainNumCols()
public double getAveStrike()
RuptureSurface
getAveStrike in interface RuptureSurfacepublic LocationList getEvenlyDiscritizedListOfLocsOnSurface()
RuptureSurface
getEvenlyDiscritizedListOfLocsOnSurface in interface RuptureSurfacepublic double getAveDip()
This should actually be recomputed if the main surface is a SimpleListricGriddedSurface.
getAveDip in interface RuptureSurfacepublic double getAveLength()
RuptureSurface
getAveLength in interface RuptureSurfacepublic double getAveWidth()
RuptureSurface
getAveWidth in interface RuptureSurfacepublic LocationList getEvenlyDiscritizedPerimeter()
RuptureSurface
getEvenlyDiscritizedPerimeter in interface RuptureSurfacepublic double getGridSpacingAlongStrike()
getGridSpacingAlongStrike in interface EvenlyGriddedSurfacepublic double getGridSpacingDownDip()
getGridSpacingDownDip in interface EvenlyGriddedSurfacepublic Boolean isGridSpacingSame()
isGridSpacingSame in interface EvenlyGriddedSurfacepublic double getArea()
RuptureSurface
getArea in interface RuptureSurface
public Location getLocation(int row,
int column)
EvenlyGriddedSurface
getLocation in interface EvenlyGriddedSurfacepublic ListIterator<Location> getLocationsIterator()
RuptureSurface
getLocationsIterator in interface RuptureSurfacepublic FaultTrace getRowAsTrace(int row)
EvenlyGriddedSurface
getRowAsTrace in interface EvenlyGriddedSurfacepublic double getAveDipDirection()
RuptureSurface
getAveDipDirection in interface RuptureSurfacepublic double getAveGridSpacing()
RuptureSurface
getAveGridSpacing in interface RuptureSurfacepublic FaultTrace getEvenlyDiscritizedUpperEdge()
RuptureSurface
getEvenlyDiscritizedUpperEdge in interface RuptureSurfacepublic Location getFirstLocOnUpperEdge()
RuptureSurface
getFirstLocOnUpperEdge in interface RuptureSurfacepublic Location getLastLocOnUpperEdge()
RuptureSurface
getLastLocOnUpperEdge in interface RuptureSurfacepublic LocationList getPerimeter()
RuptureSurface
getPerimeter in interface RuptureSurfacepublic FaultTrace getUpperEdge()
getUpperEdge in interface RuptureSurfacepublic double getDistanceRup(Location siteLoc)
getDistanceRup in interface RuptureSurfacepublic double getDistanceJB(Location siteLoc)
getDistanceJB in interface RuptureSurfacepublic double getDistanceSeis(Location siteLoc)
getDistanceSeis in interface RuptureSurfacepublic double getDistanceX(Location siteLoc)
getDistanceX in interface RuptureSurfacepublic double getAveRupTopDepth()
RuptureSurface
getAveRupTopDepth in interface RuptureSurfacepublic double getFractionOfSurfaceInRegion(Region region)
RuptureSurface
getFractionOfSurfaceInRegion in interface RuptureSurfacepublic String getInfo()
RuptureSurface
getInfo in interface RuptureSurfacepublic boolean isPointSurface()
RuptureSurface
isPointSurface in interface RuptureSurfacepublic EvenlyGriddedSurface getParentSurface()
public double getMinDistance(RuptureSurface surface)
getMinDistance in interface RuptureSurfacesurface - RuptureSurface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||