GCD {GeoRange} | R Documentation |
Calculates the maximum pairwise great circle distance from a set of decimal degree coordinates
Description
Calculates the maximum pairwise great circle distance from a set of decimal degree coordinates
Usage
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
longs<-c(34,156,-78)
lats<-c(45,12,9)
GCD(longs,lats)
[Package GeoRange version 0.1.0 Index]