NGRDist: British national grid reference (NGR) distances

Description Usage Arguments Details Value Author(s) Examples

View source: R/All.R

Description

Calculates the euclidean distance between two british national grid reference points using the pythagorean method

Usage

1
NGRDist(i, j)

Arguments

i

a numeric vector of length two. The first being the easting and the second being the northing of the first site

j

a numeric vector of length two. The first being the easting and the second being the northing of the second site

Details

Note, that the result is converted to km when six digits are used for easting and northing, when six digits would usually provide a result in metres.

Value

A distance in kilometres (if six digits for easting and northing are used)

Author(s)

Anthony Hammond

Examples

1
2
3
4
5
6
#Calculate the distance between the catchment centroid for the
#Kingston upon Thames river gauge and the catchment centroid for the
#gauge at Ardlethen on the River Ythan. First view the eastings and northings
GetCDs(10001)
GetCDs(39001)
NGRDist(i = c(381355, 839183), j = c(462899, 187850))

UKFE documentation built on Oct. 14, 2021, 5:06 p.m.

Related to NGRDist in UKFE...