horizon: Distance to the horizon

Description Usage Arguments Value Author(s) References Examples

View source: R/horizon.R

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

1
horizon(h, r=6378137)

Arguments

h

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

r

radius of the earth; default value is 6378137 m

Value

Distance in units of h (default is meters)

Author(s)

Robert J. Hijmans

References

http://www.edwilliams.org/avform.htm#Horizon

Bowditch, 1995. American Practical Navigator. Table 12.

Examples

1
2
horizon(1.80) # me
horizon(324)  # Eiffel tower

geosphere documentation built on May 2, 2019, 5:16 p.m.