powered by
This function estimates sunrise time (in continuous hour values) for a given day of year and latitude.
Sunrise(DOY, Lat)
Day of year
Latitude (in degrees)
# NOT RUN { #Calculating sunrise time for 365 day of the year for 45 degree latitude DOY <- 1:365 Lat = 45 sunrise <- Sunset(DOY, Lat) plot(DOY, sunrise) # }
Run the code above in your browser using DataLab