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 April 24, 2024, 9:19 p.m.