Last data update: 2014.03.03

R: Solar Angle
solarangleR Documentation

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

##---- 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)))
  }

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(EcoHydRology)
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

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

Loading required package: XML
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/EcoHydRology/solarangle.Rd_%03d_medium.png", width=480, height=480)
> ### Name: solarangle
> ### Title: Solar Angle
> ### Aliases: solarangle
> 
> ### ** Examples
> 
> ##---- 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)))
+   }
function (lat, Jday) 
{
    dec <- declination(Jday)
    return(asin(sin(lat) * sin(dec) + cos(lat) * cos(dec) * cos(0)))
}
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>