dist_great_circle {graph4lg} | R Documentation |
Compute the Great Circle distance between two points
Description
The function computes the Great Circle distance between two two points defined by their longitudes and latitudes.
Usage
dist_great_circle(long1, long2, lat1, lat2, method = "vicenty")
Arguments
long1 |
project name, project dir in which proj_name.xml is found |
long2 |
raster.tif INT2S path or present in wd, |
lat1 |
habitat code in the raster file |
lat2 |
default 0, minimum habitat size in ha |
method |
default NULL nodata code in the raster file |
Author(s)
P. Savary
Examples
dist_great_circle(long1 = -73.99420,
lat1 = 40.75170,
long2 = -87.63940,
lat2 = 41.87440,
method = "vicenty")
[Package graph4lg version 1.8.0 Index]