haversine: haversine calculates the distance between two lat-lon pairs

Description Usage Arguments Value Author(s) Examples

View source: R/haversine.R

Description

haversine uses the Haversine formula to calculate the great circle distance between two pairsa of lat-lon values. No projection is used so this is only useful for points close together on the Earth's surface. In addition, it uses a NASA estimate of the volumetric radius of the Earth (6371). The radius estimate at the equator is 6378.137 and that of the polar radius is 6356.752. It produces a vector of all three of these values.

Usage

1
haversine(lat1, lon1, lat2, lon2)

Arguments

lat1

The first latitude in decimal degrees

lon1

The first longitude in decimal degrees

lat2

The second latitude in decimal degrees

lon2

The second longitude in decimal degrees

Value

a matrix of the polar, volumetric, and equatorial distances in km

Author(s)

Dr Malcolm Haddon

Examples

1
haversine(-43.31, 145.76, -43.19, 145.87) #16.09593, 16.132, 16.15007

BillVenables/WWRCourse documentation built on Jan. 31, 2021, 4:22 p.m.