SZA: Solar Zenith Angle

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/pkgAtmosphere.R

Description

This function provide Solar Zenith Angle for a specified time , latitude and longitude.

Usage

1
SZA(timein = Sys.time(), Lat = 50.910335, Lon = 11.56874)

Arguments

timein

default value is the system time. It will consider all entries "POSIXct" "POSIXt" and string format with time zone. It can be a vector, a scalar or a matrix.

Lat

Scalar. Latitude in [°N] as decimal It is the latitude of the site considered.

Lon

Scalar. Longitude in [°E] as decimal It is the longitude of the site considered.

Value

A vector, matrix or scalar according to the input timein, with values of SZA in decimal °deg.

Author(s)

Gionata Biavati

References

urlhttp://solardat.uoregon.edu/SolarRadiationBasics.html

See Also

suncalc

Examples

1
2
3
4
5
6
7
##  calculate SZA
sza<-SZA('2010-01-01 12:00',Lat=0,Lon=0)
t<-Sys.time()+seq(-3600*12,3600*12,,by=1800)
plot(t,SZA(t,Lat=0,Lon=0),
       main='SZA',
       xlab='Time',
       ylab='SZA [°deg]')

Example output



RAtmosphere documentation built on May 29, 2017, 12:08 p.m.