sphdist {astrolibR} | R Documentation |
Angular distance between two points on a sphere, specified by longitude and latitude
sphdist(long1, lat1, long2, lat2, degrees = FALSE)
long1 |
Longitude of the first point |
lat1 |
Latitude of the first point |
long2 |
Longitude of the second point |
lat2 |
Latitude of the second point |
degrees |
Flag denoting whether input angles are in degrees or radians |
The distance is computed after conversion from spherical to rectangular coordinates.
dis |
Angle, in degrees or radians |
Arnab Chakraborty R adaptation 2013
sphdist(2, 100, -35, 180, +35)