distaz {RSEIS} | R Documentation |
Calculates the distance in km, degrees and the azimuth and back azimuth from station to source
distaz(olat, olon, tlat, tlon)
olat |
Source (origin) latitude |
olon |
Source (origin) longitude |
tlat |
Station (receiver) latitude |
tlon |
Station (receiver) longitude |
del |
Delta (degrees) |
az |
azimuth, degrees |
baz |
back-azimuth, degrees |
dist |
distance, km |
err |
error flag, 0=failure, 1=success |
Earth radius is fixed at 6378.2064 km.
Jonathan M. Lees<jonathan.lees@unc.edu>
GreatDist
london = c(51.53333, -0.08333333) santiago = c(-33.46667, -70.75) distaz(london[2], london[1], santiago[2], santiago[1])