DistAB: Distance in km between two coordinates given by lat/lon

Description Usage Arguments Value Author(s) Examples

View source: R/DistAB.R

Description

from clim.pact

Usage

1
DistAB(lon, lat, lons, lats)

Arguments

lon

Longitude Degree East (scalar)

lat

Latitude Degree North (scalar)

lons

Longitude Degree East (scalar or vector)

lats

Latitude Degree North (scalar or vector of same length than lons)

a

radius of the er

Value

distance in km

Author(s)

Rasmus E. Benestad (modified by Thomas Laepple)

Examples

1
2
3
4
5
6
7
#Distance in the tropics
DistAB(0,0,1,0)
DistAB(0,0,0,1)
#Distance in the polar regions around EDML core-site
DistAB(0,-75,1,-75)
DistAB(0,-75,0,-76)
DistAB(0,-75,c(0,1,2,3),c(-76,-75,-74,-73))

EarthSystemDiagnostics/ecustools documentation built on Jan. 15, 2022, 5:22 p.m.