R/horizon.R

Defines functions horizon

Documented in horizon

horizon <- function(h, r=6378137) {
	x = cbind(as.vector(h), as.vector(r))
	h = x[,1]
	r = x[,2]
	
	b = 0.8279
	sqrt( 2 * r * h / b ) 
}

Try the geosphere package in your browser

Any scripts or data that you put into this service are public.

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