trackDist: Distance along a path

View source: R/SGAT.R

trackDistR Documentation

Distance along a path

Description

Distances along a path

Usage

trackDist(x)

trackDist2(x, z)

Arguments

x

a two column matrix of (lon,lat) locations along the path.

z

a two column matrix of (lon,lat) intermediate locations along the path.

Details

The trackDist computes the great circle distances (in km) between successive locations along path. The trackDist2 accepts a second sequence of intermediate points, and computes the great circle distances along the dog leg paths from x[i,] to z[i,] to x[i+1,].

Value

vector of interpoint distances (km)


SWotherspoon/SGAT documentation built on June 1, 2022, 10:49 p.m.