dist_great_circle: Compute the Great Circle distance between two points

View source: R/dist_great_circle.R

dist_great_circleR 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")

graph4lg documentation built on Feb. 16, 2023, 5:43 p.m.