solalt: Calculate the altitude and azimuth of the sun for a given...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/solalt.R

Description

Calculates the angular altitude of the sun above the horizon for a given (solar) time, day of year and latitude

Usage

1
2
solalt(time, day, lat)
solazi(time, day, lat)

Arguments

time

solar time, in hours from midnight

day

day of the year (0 to 365)

lat

latitude, in degrees

Value

The sun's angular altitude above the horizon, or azimuth from north, in degrees.

Author(s)

Jon Bennie

See Also

solartime

Examples

1
2
3
4
5
6
times <- c(1:24)
alt <- solalt(time=times, day=175, lat=52)
azi <- solazi(time=times, day=175, lat=52)
par(mfrow=c(2,1))
plot(alt ~ times, type="l", xlab="Time", main="Solar altitude")
plot(azi ~ times, type="l", xlab="Time", main="Solar azimuth")

rforge/microclim documentation built on Feb. 21, 2022, 7:49 a.m.