Description Usage Arguments Value See Also Examples
View source: R/altitude_azimuth_distance.R
The altitude (elevation from the horizon), azimuth and distance of a point B from A are the coordinates of the Topocentric Coordinate System as typically used in astronomy to aim your telescope to a heavenly body. It can be also of use to know where an airplane is in the sky with respect to an observer on Earth.
1 |
a |
the observer position: a vector of longitude, latitude (in decimal degrees) and altitude (in meters) in WGS84 |
b |
the observed position: a vector of longitude, latitude (in decimal degrees) and altitude (in meters) in WGS84 |
the coordinates in North-East-Up of the observed, B, with respect to the observer A. A vector of altitude (elevation from the horizon) in decimal degrees, azimuth) in decimal degrees and distance in meters.
Other utilities:
along_track_distance()
,
cross_track_distance()
,
cross_track_intersection()
1 2 3 4 5 6 7 8 | ## Not run:
# sensor (longitude, latitude, altitude)
a <- c(49.47, 7.697, 274)
# aircraft (longitude, latitude, altitude)
b <- c(49.52, 7.803, 6401)
altitude_azimuth_distance(a, b)
## End(Not run)
|
[1] 38.53997 54.04859 11292.75581
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.