Description Usage Arguments Value Author(s) References
View source: R/getSunCoordinates.R
Estimates Sun azimuth and height above a location at a given time
1 | getSunCoordinates(locCoordinates = c(6.5, 46.5), time = Sys.time())
|
locCoordinates |
a vector holding longitude and latitude of a single location on earth |
time |
a POSIXct class object |
a matrix of 2 columns, azimuth
and height
of sun
Marco Bascietto marco@bascietto.name
Code adapted from http://stackoverflow.com/questions/8708048/position-of-the-sun-given-time-of-day-latitude-and-longitude, Richie Cotton answer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.