compute_dist_along_path: compute spherical distance along path

Description Usage Arguments Value

Description

This function provides a convienant wrapper to alongTrackDistance. Per that documentation, this measures the distance along the great circle defined by the path_* inputs to the point(s) on that path nearest the point(s) defined by latitude and longitude. Note that the input point(s) need not be on the path

Usage

1
2
compute_dist_along_path(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, distance along path in nautical miles


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