View source: R/distance_calc.R
RrupRjb | R Documentation |
This function calculates rupture distance and Rjb distance for a given rectangle finite fault to the given sites. For a multi-fault rupture source, the final distances should be calculated for each rectangle subsection and then taken the minimum values.
RrupRjb(
fflat1,
fflon1,
fflat2,
fflon2,
fdip,
fdipDir = NA,
topd,
width,
slon,
slat
)
fflat1 |
Latitude of the start point of the trace of a rectangle finite fault |
fflon1 |
Longitude of the start point of the trace of a rectangle finite fault |
fflat2 |
Latitude of the end point of the trace of a rectangle finite fault |
fflon2 |
Longitude of the end point of the trace of a rectangle finite fault |
fdip |
The dip angle of the rectangle finite fault subsection |
fdipDir |
The dip direction. The default is NA, which assumes trace follows right-hand rule such that hanging wall on the right side of trace |
topd |
The depth to the top of the rectangle finite fault, in km |
width |
The width of the rectangle finite fault (perpendicular to the trace), in km |
slon |
A list of longitude of the interest sites |
slat |
A list of latitude of the interest sites |
A data frame of distances with number of rows equals to the number of interest sites and two columns
David Eberly (1999). Distance Between Point and Triangle in 3D. Geometric Tools, Redmond WA 98052. http:\www.geometrictools.com/Documentation/DistancePoint3Triangle3.pdf
RrupRjb(fflat1 = 35.74054, fflon1 = -117.74953, fflat2 = 35.81038,
fflon2 = -117.76365, fdip = 50, topd = 0, width = 13, slon = -118.1, slat = 36.1)
RrupRjb(fflat1 = 35.74054, fflon1 = -117.74953, fflat2 = 35.81038,
fflon2 = -117.76365, fdip = 50, topd = 0, width = 13,
slon = c(-118.1, -118.2), slat = c(36.1, 35.9))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.