One2ManyGreatCircleDistance: One-to-many Great Circle Distances

Description Usage Arguments Details Value Author(s) Examples

View source: R/One2ManyGreatCircleDistance.R

Description

Returns a set of distances from a single point of longitude and latitude

Usage

1
2
3
4
5
6
7
One2ManyGreatCircleDistance(
  point_longitude,
  point_latitude,
  point_longitudes,
  point_latitudes,
  EarthRad = 6367.4447
)

Arguments

point_longitude

Decimalised longitude of single point.

point_latitude

Decimalised latitude of single point.

point_longitudes

Decimalised longitudes of many points.

point_latitudes

Decimalised latitudes of many points.

EarthRad

Radius of the Earth in kilometres.

Details

Nothing yet.

Value

A vector of minimum Great Circle Distances between single point and each of many points.

Author(s)

Graeme T. Lloyd graemetlloyd@gmail.com

Examples

1
One2ManyGreatCircleDistance(0, 0, c(-179, 0, 179), c(89, 0, -89))

laurasoul/dispeRse documentation built on May 25, 2021, 4:50 a.m.