surfaceDistance: Earth surface distance between two points

View source: R/Utils.R

surfaceDistanceR Documentation

Earth surface distance between two points

Description

The surfaceDistance() function calculates the distance in kilometers between any two lat-lon pairs using the Haversine equation.

Usage

surfaceDistance(lat1_deg, lon1_deg, lat2_deg, lon2_deg)

Arguments

lat1_deg

latitude 1 (degrees)

lon1_deg

longitude 1 (degrees)

lat2_deg

latitude 2 (degrees)

lon2_deg

longitude 2 (degrees)

Value

Distance in kilometers

Author(s)

Jonathan Callahan jonathan@mazamascience.com

References

https://en.wikipedia.org/wiki/Haversine_formula


IRISSeismic documentation built on Oct. 16, 2022, 1:09 a.m.