GCD: Calculates the maximum pairwise great circle distance from a...

Description Usage Arguments Details Value Note Examples

Description

Calculates the maximum pairwise great circle distance from a set of decimal degree coordinates

Usage

1
GCD(longs, lats)

Arguments

longs

- Longitudinal coordinates of occurrences in decimal degrees

lats

- Latitudinal coordinates of occurrences in decimal degrees

Details

Because this function does not account for the possibility that a taxa may wrap around more than half the Earth the maximum value is half the circumference of the Earth, approximately 20,038 kilometers.

Value

Returns the maximum great circle distance in kilometers

Note

The great circle distance can be extracted from the result of a minium spanning tree calcualation MSTDist() if available to avoid redundant calculations

Examples

1
2
3
longs<-c(34,156,-78)
lats<-c(45,12,9)
GCD(longs,lats)

GeoRange documentation built on May 1, 2019, 8:03 p.m.

Related to GCD in GeoRange...