|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.commons.data.Container2DImpl<Location>
org.opensha.sha.faultSurface.AbstractEvenlyGriddedSurface
org.opensha.sha.faultSurface.AbstractEvenlyGriddedSurfaceWithSubsets
org.opensha.sha.faultSurface.ApproxEvenlyGriddedSurface
public class ApproxEvenlyGriddedSurface
This classe represents and approximately evenly gridded surface, where the gridSpacing represents some average value. We could add methods here like: getMinGridSpacing(), getMaxGridSpacing(), etc.
| Field Summary |
|---|
| Fields inherited from class org.opensha.sha.faultSurface.AbstractEvenlyGriddedSurface |
|---|
C, gridSpacingAlong, gridSpacingDown, sameGridSpacing |
| Fields inherited from class org.opensha.commons.data.Container2DImpl |
|---|
data, name, numCols, numRows, size, TAB |
| Constructor Summary | |
|---|---|
ApproxEvenlyGriddedSurface(FaultTrace upperFaultTrace,
FaultTrace lowerFaultTrace,
double aveGridSpacing)
This constructor takes an upper and lower fault trace, re-samples these according the the given aveGridSpacing to represent the first and last rows of the surface, and then fills in the intermediate rows by evenly sampling a straight line between the top and bottom point of each column. |
|
ApproxEvenlyGriddedSurface(int numRows,
int numCols,
double aveGridSpacing)
This constructor creates a blank surface enabling the user to populate the surface any way they want |
|
| Method Summary | |
|---|---|
double |
computeAveGridSpacingAlongStrike()
This computes the average grid spacing for adjacent locations along strike (averaged over all rows as well) |
double |
computeAveGridSpacingDownDip()
This computes the average grid spacing for adjacent locations down dip (averaged over all cols as well) |
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 |
FaultTrace |
getUpperEdge()
This returns the upper edge of the rupture surface (where the locations are not necessarily equally spaced). |
static void |
main(String[] args)
|
void |
setLocation(int row,
int column,
Location location)
Add a Location to the grid - does the same thing as set except that it ensures the object is a Location object. |
static void |
test1(Location l1,
Location l2)
This explores an accuracy issue (final depth is right be lats and lons are more off) |
static void |
test2(Location l1,
Location l2)
|
void |
writeXYZ_toFile(String fileName)
|
| Methods inherited from class org.opensha.sha.faultSurface.AbstractEvenlyGriddedSurfaceWithSubsets |
|---|
getNthSubsetSurface, getNthSubsetSurface, getNthSubsetSurfaceCenteredDownDip, getNumSubsetSurfaces, getNumSubsetSurfacesAlongLength, getSubsetSurfacesIterator, getSubsetSurfacesIterator |
| 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 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 ApproxEvenlyGriddedSurface(int numRows,
int numCols,
double aveGridSpacing)
numRows - numCols - aveGridSpacing -
public ApproxEvenlyGriddedSurface(FaultTrace upperFaultTrace,
FaultTrace lowerFaultTrace,
double aveGridSpacing)
numRows - numCols - aveGridSpacing - | Method Detail |
|---|
public static void test1(Location l1,
Location l2)
public static void test2(Location l1,
Location l2)
public void setLocation(int row,
int column,
Location location)
row - The row to set this Location at.column - The column to set this Location at.location - The new location value.
ArrayIndexOutOfBoundsException - Thrown if the row or column lies beyond the grid space indexes.public void writeXYZ_toFile(String fileName)
public double computeAveGridSpacingAlongStrike()
public double computeAveGridSpacingDownDip()
public static void main(String[] args)
args - public double getAveDip()
RuptureSurface
public double getAveDipDirection()
RuptureSurface
public double getAveRupTopDepth()
RuptureSurface
public double getAveStrike()
RuptureSurface
public FaultTrace getUpperEdge()
RuptureSurface
getUpperEdge in interface RuptureSurfacegetUpperEdge in class AbstractEvenlyGriddedSurface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||