km_to_horizon: Calculate distance to horizon

View source: R/km_to_horizon.R

km_to_horizonR Documentation

Calculate distance to horizon

Description

Calculate distance to horizon

Usage

km_to_horizon(h, R = 6364.5)

Arguments

h

Height of observer, in meters

R

Radius of the earth, in kilometers (default is R at latitude 53 degrees).

Value

A list with two elements: ⁠$a⁠ is the angle to the horizon, in degrees from a horizontal plane, and ⁠$km⁠ is the distance, in kilometers, from the observer to the horizon.


ericmkeen/suRvey documentation built on Feb. 5, 2025, 7:44 a.m.