surfaceDistance: Earth surface distance between two points

Description Usage Arguments Value Author(s) References

View source: R/Utils.R

Description

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

Usage

1
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. 7, 2021, 9:10 a.m.