# Equation 5 (1990): Beam irridiance on a horizontal surface at the top of Mars atmosphere [W/m2].
#
# Based on equations presented in the following publication:
# Appelbaum, Joseph & Flood, Dennis. (1990). Solar radiation on Mars. Solar Energy. 45. 353–363. 10.1016/0038-092X(90)90156-7.
# https://ntrs.nasa.gov/?R=19890018252
#
#' Title
#'
#' @param Ls
#' @param phi
#' @param Ts
#' @param z
#'
#' @return
#' @export
G_obh = function(Ls, phi=NULL, Ts=NULL, z=Z(Ls=Ls, phi=phi, Ts=Ts)){
#TODO: What happens if phi and Ts are null?
Gobh = G_ob(Ls) * cos(z*pi/180)
return(Gobh)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.