| Package | Description |
|---|---|
| gov.usgs.earthquake.nshmp.calc |
Hazard calculation classes and utilties.
|
| 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.
|
| gov.usgs.earthquake.nshmp.util |
Miscellaneous utilties.
|
| Modifier and Type | Field and Description |
|---|---|
Location |
Site.location
The location of this site.
|
| Modifier and Type | Method and Description |
|---|---|
Site.Builder |
Site.Builder.location(Location loc)
The location of the
Site. |
| Modifier and Type | Method and Description |
|---|---|
static double |
Faults.dipDirection(Location p1,
Location p2) |
static double |
Faults.dipDirectionRad(Location p1,
Location p2) |
static double |
Faults.strike(Location p1,
Location p2)
Compute the strike in degrees of the line connecting
p1 to
p2. |
static double |
Faults.strikeRad(Location p1,
Location p2)
Compute the strike in degrees of the line connecting
p1 to
p2. |
| Modifier and Type | Method and Description |
|---|---|
Location |
ApproxGriddedSurface.centroid() |
Location |
DefaultGriddedSurface.centroid() |
Location |
RuptureSurface.centroid()
The centroid of this surface.
|
Location |
GriddedSurface.getFirstLocOnUpperEdge()
Deprecated.
|
Location |
GriddedSurface.getLastLocOnUpperEdge()
Deprecated.
|
Location |
GriddedSurface.getLocation(int row,
int column)
gets the location from the 2D container
|
| Modifier and Type | Method and Description |
|---|---|
Distance |
RuptureSurface.distanceTo(Location loc)
Returns the distance metrics commonly required by PSHA ground motion models
(GMMs): rJB, rRup, and rX.
|
| Modifier and Type | Method and Description |
|---|---|
Location |
FaultSource.location(Location site)
The closest point on the fault trace, relative to the supplied site
Location. |
Location |
SystemSourceSet.SystemSource.location(Location location)
This method is not required for deaggregation and currently throws an
UnsupportedOperationException. |
Location |
InterfaceSource.location(Location site)
The closest point on the upper or lower fault trace, relative to the
supplied site
Location. |
Location |
AreaSource.location(Location site)
The centroid of this source.
|
Location |
Source.location(Location site)
The
Location of this source relative to the supplied site
location. |
Location |
ClusterSource.location(Location site)
The closest point across the traces of all fault sources that participate
in this cluster, relative to the supplied site
Location. |
| Modifier and Type | Method and Description |
|---|---|
static Distance |
Distance.compute(GriddedSurface surface,
Location loc)
Compute distance metrics: rJB, rRup, and rX.
|
Predicate<T> |
SourceSet.distanceFilter(Location loc,
double distance)
|
Predicate<FaultSource> |
FaultSourceSet.distanceFilter(Location loc,
double distance) |
Predicate<SystemSourceSet.SystemSource> |
SystemSourceSet.distanceFilter(Location loc,
double distance) |
Predicate<ClusterSource> |
ClusterSourceSet.distanceFilter(Location loc,
double distance) |
Predicate<gov.usgs.earthquake.nshmp.eq.model.PointSource> |
GridSourceSet.distanceFilter(Location loc,
double distance) |
Predicate<AreaSource> |
AreaSourceSet.distanceFilter(Location loc,
double distance) |
Predicate<InterfaceSource> |
InterfaceSourceSet.distanceFilter(Location loc,
double distance) |
Predicate<gov.usgs.earthquake.nshmp.eq.model.PointSource> |
SlabSourceSet.distanceFilter(Location loc,
double distance) |
static List<InputList> |
PointSources.finiteInputs(List<Site> sites,
SourceType sourceType,
Location loc,
XySequence mfd,
Map<FocalMech,Double> mechWtMap,
GridSourceSet grid)
Using the supplied
Sites and a GridSourceSet, from which the
standard data that is used to build point sources is derived, create and
return a List<InputList>. |
static List<InputList> |
PointSources.finiteInputs(List<Site> sites,
SourceType sourceType,
Location loc,
XySequence mfd,
Map<FocalMech,Double> mechWtMap,
RuptureScaling rupScaling,
NavigableMap<Double,Map<Double,Double>> magDepthMap,
double maxDepth)
Using the supplied
Sites and the standard data that is used to
build point sources, create and return a List<InputList>. |
static InputList |
PointSources.finiteInputs(Site site,
SourceType sourceType,
Location loc,
XySequence mfd,
Map<FocalMech,Double> mechWtMap,
RuptureScaling rupScaling,
NavigableMap<Double,Map<Double,Double>> magDepthMap,
double maxDepth)
Using the supplied
Site and the standard data that is used to build
point sources, create and return an InputList. |
Iterable<T> |
SourceSet.iterableForLocation(Location loc)
Return an
Iterable over those Sources that are within the
cutoff distance of the supplied Location. |
Iterable<Rupture> |
AreaSource.iterableForLocation(Location loc)
Return a
Rupture iterator over distributed point Sources
whose spacing is a function of the distance from the supplied Location. |
Iterable<gov.usgs.earthquake.nshmp.eq.model.PointSource> |
SlabSourceSet.iterableForLocation(Location loc) |
Iterable<T> |
SourceSet.iterableForLocation(Location loc,
double distance)
Return an
Iterable over those Sources that are within
distance of the supplied Location. |
Iterable<gov.usgs.earthquake.nshmp.eq.model.PointSource> |
SlabSourceSet.iterableForLocation(Location loc,
double distance) |
Location |
FaultSource.location(Location site)
The closest point on the fault trace, relative to the supplied site
Location. |
Location |
SystemSourceSet.SystemSource.location(Location location)
This method is not required for deaggregation and currently throws an
UnsupportedOperationException. |
Location |
InterfaceSource.location(Location site)
The closest point on the upper or lower fault trace, relative to the
supplied site
Location. |
Location |
AreaSource.location(Location site)
The centroid of this source.
|
Location |
Source.location(Location site)
The
Location of this source relative to the supplied site
location. |
Location |
ClusterSource.location(Location site)
The closest point across the traces of all fault sources that participate
in this cluster, relative to the supplied site
Location. |
static Function<GridSourceSet,SourceSet<? extends Source>> |
GridSourceSet.optimizer(Location loc)
Create a
Function for a location the condenses a
GridSourceSet into tabular form (distance, magnitude and azimuth
bins) for speedier iteration. |
static gov.usgs.earthquake.nshmp.eq.model.PointSource |
PointSources.pointSource(SourceType sourceType,
PointSourceType pointType,
Location loc,
XySequence mfd,
Map<FocalMech,Double> mechWtMap,
RuptureScaling rupScaling,
gov.usgs.earthquake.nshmp.eq.model.PointSource.DepthModel depthModel) |
static Function<SystemSourceSet,IntervalArray> |
SystemSourceSet.toRatesFunction(Location location,
double distance,
IntervalArray modelMfd)
Return an instance of a
Function that converts a
SystemSourceSet to a ground motion model InputList. |
| Modifier and Type | Field and Description |
|---|---|
static Location |
GriddedRegion.ANCHOR_0_0
Convenience reference for an anchor at (0°, 0°).
|
| Modifier and Type | Method and Description |
|---|---|
static Location |
Locations.centroid(Iterable<Location> locs)
Computes a centroid for a group of
Locations as the average of
latitude, longitude, and depth; |
static Location |
Locations.closestPoint(Location loc,
LocationList locs)
Return the point in a
LocationList that is that closest to the
supplied Location. |
static Location |
Location.create(double lat,
double lon)
Create a new
Location with the supplied latitude and longitude and
a depth of 0 km. |
static Location |
Location.create(double lat,
double lon,
double depth)
Create a new
Location with the supplied latitude, longitude, and
depth. |
Location |
LocationList.first()
Return the first
Location in this list. |
static Location |
Location.fromString(String s)
Generate a new
Location by parsing the supplied String. |
abstract Location |
LocationList.get(int index)
Return the location at
index. |
Location |
LocationList.last()
Return the last
Location in this list. |
static Location |
Locations.location(Location p,
double azimuth,
double distance)
Computes a
Location given an origin point, bearing, and distance. |
static Location |
Locations.location(Location p,
LocationVector d)
Computes a
Location given an origin point and a
LocationVector. |
Location |
GriddedRegion.locationForIndex(int index)
Returns the
Location at a given grid index. |
Location |
Bounds.max()
Return the upper right coordinate (maximum latitude and longitude) as a
Location. |
Location |
Bounds.min()
Return the lower left coordinate (minimum latatide and longitude) as a
Location. |
| Modifier and Type | Method and Description |
|---|---|
static Predicate<Location> |
Locations.distanceAndRectangleFilter(Location origin,
double distance)
Return a radial distance
Location filter that preprocesses
Locations through a Locations.rectangleFilter(Location, double). |
static Predicate<Location> |
Locations.distanceFilter(Location origin,
double distance)
Return a radial distance
Location filter. |
Iterator<Location> |
GriddedRegion.iterator() |
Iterator<Location> |
LocationGrid.iterator() |
static Predicate<Location> |
Locations.rectangleFilter(Location origin,
double distance)
Return a rectangular
Location filter. |
static Converter<Location,String> |
Location.stringConverter()
|
| Modifier and Type | Method and Description |
|---|---|
LocationList.Builder |
LocationList.Builder.add(Location... locs)
Add each
Location in locs to the LocationList . |
LocationList.Builder |
LocationList.Builder.add(Location loc)
Add a
Location to the LocationList. |
static double |
Locations.angle(Location p1,
Location p2)
Calculates the angle between two
Locations using the
Haversine formula. |
static boolean |
Locations.areSimilar(Location p1,
Location p2)
Returns
true if the supplied Locations are very, very close
to one another. |
static double |
Locations.azimuth(Location p1,
Location p2)
Computes the initial azimuth (bearing) when moving from one
Location to another in degrees. |
static double |
Locations.azimuthRad(Location p1,
Location p2)
Computes the initial azimuth (bearing) when moving from one
Location to another. |
static LocationVector |
Locations.bisect(Location p1,
Location p2,
Location p3)
Method returns a unit
LocationVector that bisects the angle defined
by the line segments p2p1
and p2p3. |
static Location |
Locations.closestPoint(Location loc,
LocationList locs)
Return the point in a
LocationList that is that closest to the
supplied Location. |
int |
Location.compareTo(Location loc)
Compare this
Location to another and sort first by latitude, then
by longitude. |
boolean |
Region.contains(Location loc)
Returns whether the given
Location is inside this Region. |
static LocationList |
LocationList.create(Location... locs)
Create a new
LocationList containing all Locations in
locs. |
static LocationVector |
LocationVector.create(Location p1,
Location p2)
Returns the
LocationVector describing the move from one
Location to another. |
static Region |
Regions.createCircular(String name,
Location center,
double radius)
Creates a circular
Region. |
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. |
static Region |
Regions.createRectangular(String name,
Location loc1,
Location loc2)
Creates a
Region from a pair of Location s. |
static GriddedRegion |
Regions.createRectangularGridded(String name,
Location loc1,
Location loc2,
double latSpacing,
double lonSpacing,
Location anchor)
Creates a
GriddedRegion from a pair of Location s. |
static double |
Coordinates.degreesLatPerKm(Location location)
Return a conversion factor for the number of degrees of latitude per km at
a given
location. |
static double |
Coordinates.degreesLonPerKm(Location location)
Return a conversion factor for the number of degrees of longitude per km at
a given
location. |
static Predicate<Location> |
Locations.distanceAndRectangleFilter(Location origin,
double distance)
Return a radial distance
Location filter that preprocesses
Locations through a Locations.rectangleFilter(Location, double). |
static Predicate<Location> |
Locations.distanceFilter(Location origin,
double distance)
Return a radial distance
Location filter. |
static double |
Locations.distanceToLine(Location p1,
Location p2,
Location p3)
Computes the shortest distance between a point and a line (great-circle).
|
static double |
Locations.distanceToLineFast(Location p1,
Location p2,
Location p3)
Computes the shortest distance between a point and a line.
|
double |
Region.distanceToLocation(Location loc)
Returns the minimum horizonatal distance (in km) between the border of this
Region and the Location specified. |
static double |
Locations.distanceToSegment(Location p1,
Location p2,
Location p3)
Computes the shortest distance between a point and a line segment (i.e.
|
static double |
Locations.distanceToSegmentFast(Location p1,
Location p2,
Location p3)
Computes the shortest distance between a point and a line segment.
|
static Area |
RegionUtils.getNodeShape(Location p,
double w,
double h)
Returns the
Region spanned by a node centered at the supplied
location with the given width and height. |
static double |
Locations.horzDistance(Location p1,
Location p2)
Calculates the great circle surface distance between two
Location s
using the Haversine formula for computing the angle between two points. |
static double |
Locations.horzDistanceFast(Location p1,
Location p2)
Calculates approximate distance between two
Locations. |
int |
GriddedRegion.indexForLocation(Location loc)
Returns the index of the grid node associated with a given
Location
or -1 if the associated grid node is ouside this gridded region. |
static boolean |
Locations.isPole(Location p)
Returns whether the supplied
Location coincides with one of the
poles. |
static double |
Locations.linearDistance(Location p1,
Location p2)
Calculates the distance in three dimensions between two
Locations
using spherical geometry. |
static double |
Locations.linearDistanceFast(Location p1,
Location p2)
Calculates the approximate linear distance in three dimensions between two
Locations. |
static Location |
Locations.location(Location p,
double azimuth,
double distance)
Computes a
Location given an origin point, bearing, and distance. |
static Location |
Locations.location(Location p,
LocationVector d)
Computes a
Location given an origin point and a
LocationVector. |
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 double |
Locations.plunge(Location p1,
Location p2)
Returns the angle (in decimal degrees) of a line between the first and
second location relative to horizontal.
|
static double |
Coordinates.radiusAtLocation(Location location)
Return the radius of the earth at the latitude of the supplied
Location (see Wikipedia for source). |
static Predicate<Location> |
Locations.rectangleFilter(Location origin,
double distance)
Return a rectangular
Location filter. |
LocationGrid.Builder |
LocationGrid.Builder.set(int row,
int column,
Location loc)
Set the Location at the specified
row and column indices. |
static GriddedRegion |
Regions.toGridded(Region region,
double latSpacing,
double lonSpacing,
Location anchor)
Creates a
GriddedRegion with the same shape as the supplied
Region. |
static double |
Locations.vertDistance(Location p1,
Location p2)
Returns the vertical separation between two
Locations. |
| Modifier and Type | Method and Description |
|---|---|
LocationList.Builder |
LocationList.Builder.addAll(Iterable<Location> locs)
Add each
Location in locs to the LocationList . |
static Bounds |
Locations.bounds(Iterable<Location> locs)
Compute the
Bounds of the supplied iterable. |
static Location |
Locations.centroid(Iterable<Location> locs)
Computes a centroid for a group of
Locations as the average of
latitude, longitude, and depth; |
static LocationList |
LocationList.create(Iterable<Location> locs)
Create a new
LocationList containing all Locations in
locs. |
static double |
RegionUtils.getFractionInside(Region region,
Iterable<Location> locs)
The returns the fraction of points in the given collection of locations
that is inside the given region.
|
| Modifier and Type | Method and Description |
|---|---|
Location |
Feature.asPoint()
Return the geometry of this feature as a point.
|
| Modifier and Type | Method and Description |
|---|---|
static Feature.Builder |
Feature.point(Location location)
Create a single-use point feature builder.
|
| Modifier and Type | Method and Description |
|---|---|
Location |
NamedLocation.location()
Return the location.
|