MATTOOLS (version 1.1)

great.circle.distance.f: Computes great circle distance

Description

This is an ancillary function to mat.dissim that calculates distance in meters on a sphere between two points of longitude/latitude

Usage

great.circle.distance.f(cLonLat, oLonLat)

Arguments

cLonLat
Vector: with two values, one of longitude and the other latitude.
oLonLat
Vector: with two values, one of longitude and the other latitude.

Value

A single value of distance in meters.

Details

The calculation is based on a sphere of 6374 km diamater. The user can change this for other spheres or earth models.

References

SAWADA, M. 2006. An open-source implementation of the modern analog technique (MAT) within the R computing environment. Computers and Geosciences, Vol 32(6):818-833, DOI information: 10.1016/j.cageo.2005.10.008

See Also

See Also as euclidean.compx.f, euclidean.compy.f,euclidean.direction.f,mat.dissim,euclidean.distance.f