| Package | Description |
|---|---|
| gov.usgs.earthquake.nshmp.eq.fault |
Fault representations.
|
| gov.usgs.earthquake.nshmp.eq.fault.surface |
Fault surfaces.
|
| gov.usgs.earthquake.nshmp.eq.model |
Earthquake
Source and
HazardModel representations. |
| gov.usgs.earthquake.nshmp.geo |
Geographic data classes and utilities.
|
| gov.usgs.earthquake.nshmp.geo.json |
Helper classes for generating and working with GeoJson.
|
| Modifier and Type | Method and Description |
|---|---|
static LocationList |
Faults.checkTrace(LocationList trace)
Ensure
trace contains at least two points. |
static LocationList |
Faults.resampleTrace(LocationList trace,
int num)
This resamples the trace into num subsections of equal length (final number
of points in trace is num+1).
|
| Modifier and Type | Method and Description |
|---|---|
static List<LocationList> |
Faults.getEqualLengthSubsectionTraces(LocationList faultTrace,
double maxSubSectionLen)
This subdivides the given fault trace into sub-traces that have the length
as given (or less).
|
static List<LocationList> |
Faults.getEqualLengthSubsectionTraces(LocationList faultTrace,
double maxSubSectionLen,
int minSubSections)
This subdivides the given fault trace into sub-traces that have the length
as given (or less).
|
| Modifier and Type | Method and Description |
|---|---|
static LocationList |
Faults.checkTrace(LocationList trace)
Ensure
trace contains at least two points. |
static double |
Faults.dipDirection(LocationList locs)
Returns the dip direction for the supplied line/trace assuming the
right-hand rule (strike + 90°).
|
static double |
Faults.dipDirectionRad(LocationList locs) |
static List<LocationList> |
Faults.getEqualLengthSubsectionTraces(LocationList faultTrace,
double maxSubSectionLen)
This subdivides the given fault trace into sub-traces that have the length
as given (or less).
|
static List<LocationList> |
Faults.getEqualLengthSubsectionTraces(LocationList faultTrace,
double maxSubSectionLen,
int minSubSections)
This subdivides the given fault trace into sub-traces that have the length
as given (or less).
|
static double |
Faults.getLengthBasedAngleAverage(LocationList locs,
List<Double> angles)
Returns an average of the given angles scaled by the distances between the
corresponding locations.
|
static LocationList |
Faults.resampleTrace(LocationList trace,
int num)
This resamples the trace into num subsections of equal length (final number
of points in trace is num+1).
|
static double |
Faults.strike(LocationList locs)
Compute the strike in degrees of the supplied line, or trace, by connecting
the first and last points in
locs. |
static double |
Faults.strikeRad(LocationList locs)
Compute the strike in radians of the supplied line, or trace, by connecting
the first and last points in
locs. |
| Modifier and Type | Method and Description |
|---|---|
LocationList |
GriddedSurface.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 |
GriddedSurface.getEvenlyDiscritizedLowerEdge()
This returns a list of locations that are evenly spread along the lower
edge of the surface.
|
LocationList |
GriddedSurface.getEvenlyDiscritizedPerimeter()
Deprecated.
|
LocationList |
GriddedSurface.getEvenlyDiscritizedUpperEdge()
This returns a list of locations that are evenly spread along the upper
edge of the surface.
|
LocationList |
ApproxGriddedSurface.getPerimeter() |
LocationList |
DefaultGriddedSurface.getPerimeter()
Override the parent with a version with fewer points
|
LocationList |
GriddedSurface.getPerimeter()
Get a list of locations that constitutes the perimeter of the surface (not
necessarily evenly spaced)
|
LocationList |
ApproxGriddedSurface.getRow(int row) |
LocationList |
GriddedSurface.getUpperEdge()
This returns the upper edge of the rupture surface (where the locations are
not necessarily equally spaced).
|
static LocationList |
DefaultGriddedSurface.resampleTrace(LocationList trace,
int num)
This resamples the trace into num subsections of equal length (final number
of points in trace is num+1).
|
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultGriddedSurface.create(LocationList trace,
double dip,
double width,
double spacing)
Deprecated.
|
static LocationList |
DefaultGriddedSurface.resampleTrace(LocationList trace,
int num)
This resamples the trace into num subsections of equal length (final number
of points in trace is num+1).
|
DefaultGriddedSurface.Builder |
DefaultGriddedSurface.Builder.trace(LocationList trace) |
| Constructor and Description |
|---|
ApproxGriddedSurface(LocationList upperTrace,
LocationList lowerTrace,
double spacing)
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.
|
| Modifier and Type | Method and Description |
|---|---|
LocationList |
AreaSource.border()
Return the border of this
AreaSource. |
| Modifier and Type | Method and Description |
|---|---|
LocationList |
Region.border()
Returns a reference to the internal, immutable
LocationList of
points that decribe the border of this Region. |
LocationList |
LocationList.Builder.build()
Return a newly created
LocationList. |
LocationList |
LocationGrid.column(int index)
Return the column at index.
|
static LocationList |
LocationList.create(Iterable<Location> locs)
Create a new
LocationList containing all Locations in
locs. |
static LocationList |
LocationList.create(Location... locs)
Create a new
LocationList containing all Locations in
locs. |
LocationList |
LocationGrid.firstColumn()
Return the first column.
|
LocationList |
LocationGrid.firstRow()
Return the first row.
|
static LocationList |
LocationList.fromString(String s)
Create a new
LocationList from the supplied String. |
LocationList |
LocationGrid.lastColumn()
Return the last column.
|
LocationList |
LocationGrid.lastRow()
Return the last row.
|
LocationList |
GriddedRegion.nodes()
Returns the locations of all the nodes in the region as a
LocationList. |
LocationList |
LocationList.resample(double spacing)
Return a new
LocationList created by resampling this with
the desired maximum spacing. |
LocationList |
LocationList.reverse()
Return a new
LocationList with Locations in reverse order. |
LocationList |
LocationGrid.row(int index)
Return the row at index.
|
LocationList |
Bounds.toList()
Return this
Bounds as a LocationList of five vertices,
starting with Bounds.min() and winding counter-clockwise. |
LocationList |
LocationList.translate(LocationVector vector)
Return a new
LocationList with each Location translated
according to the supplied vector. |
| Modifier and Type | Method and Description |
|---|---|
List<LocationList> |
Region.interiors()
Returns an unmodifiable
List view of the internal
LocationLists (also unmodifiable) of points that decribe the
interiors of this Region, if such exist. |
List<LocationList> |
LocationList.partition(double length)
Partition this
LocationList into sub-lists of desired
length. |
| Modifier and Type | Method and Description |
|---|---|
static Location |
Locations.closestPoint(Location loc,
LocationList locs)
Return the point in a
LocationList that is that closest to the
supplied Location. |
static Region |
Regions.create(String name,
LocationList border,
BorderType type)
Creates a
Region from a list of border locations. |
static Region |
Regions.createBuffered(String name,
LocationList line,
double buffer)
Creates a Region
as a buffered area around a line. |
static GriddedRegion |
Regions.createGridded(String name,
LocationList border,
BorderType type,
double latSpacing,
double lonSpacing,
Location anchor)
Creates a
GriddedRegion from a list of border locations. |
LocationGrid.Builder |
LocationGrid.Builder.fillColumn(int index,
LocationList locs)
Fill a row with the specified
Locations. |
LocationGrid.Builder |
LocationGrid.Builder.fillRow(int index,
LocationList locs)
Fill a row with the specified
Locations. |
static void |
RegionUtils.locListToKML(LocationList locs,
String filename,
Color c) |
static int |
Locations.minDistanceIndex(Location loc,
LocationList locs)
Compute the segment index that is closest to a
Location. |
static double |
Locations.minDistanceToLine(Location loc,
LocationList locs)
Compute the shortest horizontal distance (in km) from a
Location to
the line defined by connecting the points in a LocationList. |
static double |
Locations.minDistanceToLocations(Location loc,
LocationList locs)
Compute the horizontal distance (in km) from a
Location to the
closest point in a LocationList. |
static Path2D |
Locations.toPath(LocationList locs)
Return a closed, straight-line
Path2D representation of the
supplied list, ignoring depth. |
| Modifier and Type | Method and Description |
|---|---|
LocationList |
Feature.asLineString()
Return the geometry of this feature as a line string.
|
LocationList |
Feature.asPolygonBorder()
Return the border of this polygon feature.
|
| Modifier and Type | Method and Description |
|---|---|
static Feature.Builder |
Feature.lineString(LocationList line)
Create a single-use line string feature builder.
|
static Feature.Builder |
Feature.polygon(LocationList exterior,
LocationList... interiors)
Create a single-use polygon feature builder.
|
static Feature.Builder |
Feature.polygon(LocationList exterior,
LocationList... interiors)
Create a single-use polygon feature builder.
|