declination: Solar Declination

Description Usage Arguments Author(s) Examples

View source: R/declination.R

Description

Solar declination for a given day of the year.

Usage

1

Arguments

Jday

Julian date or day of the year [day]

Author(s)

M. Todd Walter

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
##---- 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))
  }

Example output

Loading required package: operators

Attaching package: 'operators'

The following objects are masked from 'package:base':

    options, strrep

Loading required package: topmodel
Loading required package: DEoptim
Loading required package: parallel

DEoptim package
Differential Evolution algorithm in R
Authors: D. Ardia, K. Mullen, B. Peterson and J. Ulrich

Loading required package: XML
function (Jday) 
{
    return(0.4102 * sin(pi * (Jday - 80)/180))
}

EcoHydRology documentation built on May 2, 2019, 8:28 a.m.