et_dist_cross_track.Rd
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.
et_dist_cross_track(latitude, longitude, path_latitude1, path_longitude1, path_latitude2, path_longitude2)
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 |
numeric, cross track distance nautical miles