sun.info | R Documentation |
Estimate the sun fates according to latitude and date.
Can be compared with the function sunrise.set()
of package StreamMetabolism
.
sun.info(date, latitude, longitude)
date |
A vector with the time at which sun fates are needed |
latitude |
The latitude at which estimate the sun fates |
longitude |
The longitude at which estimate the sun fates |
sun.info estimate the time of sunrise and sunset according to longitude, latitude and date
A data.frame with information about daily sun
Marc Girondot marc.girondot@gmail.com
Teets, D.A. 2003. Predicting sunrise and sunset times. The College Mathematics Journal 34(4):317-321.
Other Periodic patterns of indices:
index.periodic()
,
minmax.periodic()
,
moon.info()
,
tide.info()
## Not run:
# Generate a timeserie of time
date <- seq(from=as.Date("2000-01-01"), to=as.Date("2000-12-31"), by="1 day")
plot(date, sun.info(date, latitude=23, longitude=0)$day.length, bty="n",
las=1, type="l", xlab="Ordinal days", ylab="Day length in hours")
plot(date, sun.info(date, latitude=23, longitude=0)$sunrise, bty="n",
las=1, type="l", xlab="Ordinal days", ylab="Sun rise in hours")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.