powered by
This function estimates day length (in hours) for a given day of year and latitude.
DayLength(DOY, Lat)
Day of year
Latitude (in degrees)
# NOT RUN { #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) # }
Run the code above in your browser using DataLab