Learn R Programming

geosphere (version 1.5-20)

horizon: Distance to the horizon

Description

Empirical function to compute the distance to the horizon from a given altitude. The earth is assumed to be smooth, i.e. mountains and other obstacles are ignored.

Usage

horizon(h, r=6378137)

Value

Distance in units of h (default is meters)

Arguments

h

altitude, numeric >= 0. Should have the same unit as r

r

radius of the earth; default value is 6378137 m

Author

Robert J. Hijmans

References

https://www.edwilliams.org/avform147.htm#Horizon

Bowditch, 1995. American Practical Navigator. Table 12.

Examples

Run this code
horizon(1.80) # me
horizon(324)  # Eiffel tower

Run the code above in your browser using DataLab