geodist {spaa} | R Documentation |
Hight precision Great circle distance between two places
Description
Hight precision Great circle distance between two places assuming the earth is elliptic sphere.
Usage
geodist(L1, phi1, L2, phi2)
Arguments
L1 |
Longitude of first place in decimal format. |
phi1 |
Latitude of first place in decimal format. |
L2 |
Longitude of second place in decimal format. |
phi2 |
Latitude of second place in decimal format. |
Details
Hight precision great circle distance between two places assuming the earth is elliptic sphere.
Value
Hight precision great circle distance.
Author(s)
Jinlong Zhang jinlongzhang01@gmail.com
References
Jean Meeus 1991 Astronomical Algorithms Willmann-Bell 80-83
See Also
Examples
## geodist() example
## Paris
L1 = deg2dec(-2,20,14)
phi1 = deg2dec(48, 50, 11)
## Washington DC
L2 = deg2dec(77,03,56)
phi2 = deg2dec(38,55,17)
##High precision Great Circle distance
geodist(L1, phi1, L2, phi2)
[Package spaa version 0.2.2 Index]