gcOuterDist: Great Circle Distance

View source: R/Lattice.R

gcOuterDistR Documentation

Great Circle Distance

Description

Calculate great circle distancces between all pairs of points.

Usage

gcOuterDist(x1, x2)

Arguments

x1

a two column matrix of (lon,lat) locations.

x2

a two column matrix of (lon,lat) locations.

Details

Compute the great circle distances from every point in x1 to every point is x2, and return the result as a matrix.

Value

vector of interpoint distances (km)


SWotherspoon/SGAT documentation built on June 1, 2022, 10:49 p.m.