ts2daytime | R Documentation |
ts2daytime
calculates solar elevation or daytime for a given timestamp
and location on earth.
ts2daytime(long, lat, ts, dawn_degree = 12, type = "daytime")
long |
A vector with longitude coordinates in WGS84. |
ts |
A vector with timestamps in POSIXct. |
dawn_degree |
A integer defining sun elevation below the horizon at start of dawn and end of dusk (12 refers to a sun elevation of -12 degree) |
type |
Either "daytime" or "elevation". |
long |
A vector with latitude coordinates in WGS84. |
A vector with daytimes ("night", "dawn", "day", "dusk") when type = "daytime" or a vector with sun elevation in degrees when type = "elevation".
ts2daytime(lon = 7.82,
lat = 48.00,
ts = as.POSIXct("2017-01-01 12:00:00"),
type = "daytime",
dawn_degree = 12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.