arcdist {ssBase}R Documentation

Arc Distance Between Epicentral Locations

Description

Calculates the arc-distance on the spherical surface between one epicentral location and a set of other locations.

Usage

arcdist(point1, points2, radius = 6371)

Arguments

point1 a vector containing the longitude and latitude of the “central” point.
points2 a matrix containing the other points, one in each row. The first column contains the longitudes and the second contains the latitudes.
radius the radius of the sphere, default is 6371.

Value

A vector of arclengths the same length as number of rows in points2.

Author(s)

David Harte, 2002

See Also

epi.circle, epicentres

Examples

x <- arcdist(c(174, -42), cbind(c(174, 174, 175), c(-42, -43, -43)))
print(x)

[Package ssBase version 2.2-1 Index]