gcDist: Great Circle Distance

View source: R/Lattice.R

gcDistR Documentation

Great Circle Distance

Description

Calculate great circle distancces between points.

Usage

gcDist(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 x1 to x2.

Value

vector of interpoint distances (km)


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