Learn R Programming

EcoHydRology (version 0.4.1)

declination: Solar Declination

Description

Solar declination for a given day of the year.

Usage

declination(Jday)

Arguments

Jday
Julian date or day of the year [day]

Examples

Run this code
##---- 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(Jday){
# solar declination [rad]
#
#Jday: Julian date or day of the year [day]
#
return(0.4102*sin(pi*(Jday-80)/180))
  }

Run the code above in your browser using DataLab