Learn R Programming

EcoHydRology (version 0.4.12.1)

solarangle: Solar Angle

Description

Angle of solar inclination from horizontal at solar noon [rad]

Usage

solarangle(lat, Jday)

Arguments

lat

latitdue [rad]

Jday

Julian date or day of the year [day]

Examples

Run this code
# NOT RUN {
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function(lat,Jday){
# angle of solar inclination from horizontal at solar noon [rad]

#lat: latitdue [rad]
#Jday: Julian date or day of the year [day]

# solar declination [rad]
dec<-declination(Jday)

return(asin(sin(lat)*sin(dec)+cos(lat)*cos(dec)*cos(0)))
  }
# }

Run the code above in your browser using DataLab