Description Usage Arguments Value Examples
This function classifies the time stamps of a track into day and night categories according to the local sunrise and sunset times.
1 2 | getDayNight(time.stamp, coord,
proj = sp::CRS("+proj=longlat +datum=WGS84"))
|
time.stamp |
vector with the date and time of the detections, in
|
coord |
a |
proj |
CRS object with the reference system of the coordinates, by default longlat WGS84. |
a character vector with a 'D' (day) or 'N' (night) label for each time stamp.
1 2 3 4 | times <- Sys.time() + seq(-48, 48, 12) * 3600
coord <- cbind(x = 42.04818, y = 3.19555)
daynight <- getDayNight(times, coord)
daynight
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.