distaz {RSEIS}R Documentation

Distance-Azimuth from event source to receiver station

Description

Calculates the distance in km, degrees and the azimuth and back azimuth from station to source

Usage

distaz(olat, olon, tlat, tlon)

Arguments

olat Source (origin) latitude
olon Source (origin) longitude
tlat Station (receiver) latitude
tlon Station (receiver) longitude

Value

del Delta (degrees)
az azimuth, degrees
baz back-azimuth, degrees
dist distance, km
err error flag, 0=failure, 1=success

Note

Earth radius is fixed at 6378.2064 km.

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

See Also

GreatDist

Examples


london = c(51.53333, -0.08333333)
     santiago = c(-33.46667, -70.75)

     distaz(london[2], london[1], santiago[2], santiago[1])




[Package RSEIS version 2.1-4 Index]