distAB: Calculate distance between points on earth

View source: R/distAB.R

distABR Documentation

Calculate distance between points on earth

Description

Calculate distance between points on earth

Usage

distAB(lon, lat, lons, lats, a = 6378000)

Arguments

lon

a longitude

lat

a latitude

lons

longitude or vector of longitudes

lats

latitude or vector of longitudes

a

radius of the earth (unit: m)

Value

distance between [lon, lat] and [lons, lats] (unit: m)


metno/esd documentation built on Feb. 25, 2025, 6:44 p.m.