R/G_obh.R

Defines functions G_obh

Documented in G_obh

# 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)
}
georgeslabreche/mars documentation built on Feb. 23, 2020, 9:45 p.m.