Solar: Calculating Solar Variables

Description Usage Arguments Examples

View source: R/Solar.R

Description

This function calculates solar variables including radiation components, solar angles and positions and day length.

Usage

1
Solar(DOY, Lat, Lon, SLon, DS, Elevation, Slope, Aspect)

Arguments

DOY

Day of year

Lat

Latitude (in degrees)

Lon

Longitude in degrees

SLon

Standard longitude (based on time zone) in degrees

DS

Daylight saving in minutes

Elevation

Elevation of the site in meters

Slope

Site slope in degrees

Aspect

Site aspect with respect to the south in degrees

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#Calculating solar variables and angles

DOY <- seq(0, 2, .05)

solar <- Solar(DOY, Lat = 45, Lon=10, SLon=10, DS=0, Elevation = 1000, Slope = 10, Aspect = 0)
#Note: only the difference between Lon and SLon matters not each value

par(mfrow=c(3,1))
plot(DOY, solar$Altitude, ylim = c(-90,90))
plot(DOY, solar$Azimuth, col= 'red')

plot(DOY, solar$Sdiropen)
lines(DOY, solar$Sdifopen, col='red')

bnasr/solrad documentation built on May 20, 2019, 3:05 p.m.