DayLength: Day Length

Description Usage Arguments Examples

View source: R/DayLength.R

Description

This function estimates day length (in hours) for a given day of year and latitude.

Usage

1
DayLength(DOY, Lat)

Arguments

DOY

Day of year

Lat

Latitude (in degrees)

Examples

1
2
3
4
5
6
7
8
9
#Calculating day length for 365 day of the year for 45 degree latitude

DOY <- 1:365

Lat = 45

dl <- DayLength(DOY, Lat)

plot(DOY, dl)

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