- Notifications
You must be signed in to change notification settings - Fork1
EarthyScience/solartime
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Thesolartime package provides utilities to work with solar time,i.e. where noon is exactly when sun culminates. It provides functions tocompute
- difference between local time zone and solar time
- sun position
- sunrise, sunset, daylength, and daytime flags
# From CRAN (in future)#install.packages("solartime")# Or the the development version from GitHub:# install.packages("devtools")devtools::install_github("bgctw/solartime")
The city of Jena is located west of the timezone’s meridian. Hence, thesun culminates around 13 minutes later.
The time difference shifts during the year because ofearth orbit’seccentricity.
require(solartime,quietly=TRUE)latDeg<-50.93;longDeg<-11.57doy<-1:366locaDiffMin<-60* computeSolarToLocalTimeDifference(longDeg,timeZone=1L,doy=doy)plot(locaDiffMin~doy,ylab="time difference solar - local time (min)")abline(h=localDiff); abline(h=0,lty="dotted")
See thepackagevignettes(*.md) for further examples.
About
Utilities to work with solar time, i.e. where noon is exactly when sun culminates.
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
