compute_dist_cross_track: compute spherical cross track distance (error)

Description Usage Arguments Value

Description

This function provides a convienant wrapper to dist2gc. Per that documentation, this measures the distance from the input point(s) defined by latitude and longitude to the nearest location on the great circle path defined by the path_* inputs.

Usage

1
2
compute_dist_cross_track(latitude, longitude, path_latitude1,
  path_longitude1, path_latitude2, path_longitude2)

Arguments

latitude

numeric vector of latitudes [degrees]

longitude

numeric vector of longitudes [degrees] corresponding with latitude

path_latitude1

numeric vector of latitudes [degrees]

path_longitude1

numeric vector of longitudes [degrees] corresponding with path_latitude1

path_latitude2

numeric vector of latitudes [degrees]

path_longitude2

numeric vector of longitudes [degrees] corresponding with path_latitude2

Value

numeric, cross track distance nautical miles


mitre/earthtools documentation built on May 21, 2019, 1:19 p.m.