New version of
new version of the |
Update 10 Sept 2019: See the
Animal activity patterns are in fact aligned to daylight intensity - in particular, sunrise, sunset and zenith - not to the time on your clock or GPS unit or camera (Nouvellet et al, 2012). Since the times of these events vary with the time of year, using clock time instead of sun time can lead to wrong inferences. Nouvellet et al (2012) give the example of hunting behaviour of African wild dogs: impala are almost always taken before sunset and kudu after sunset, but this effect disappears if time is measured relative to 6pm instead of sunset.
The new function has been used by Azevedo et al (2018) in their study of puma in Southeastern Brazil. Thanks to Daniel Rocha for providing the motivation for this.
On 21 June in Scotland, day length (sunrise to sunset) is approximately 18 hours and night length 6 hours. The 18 "clock hours" of day are squeezed into the interval \(\pi/2\) to \(3\pi/2\), while the 6 "clock hours" of night are stretched to fill \(3\pi/2\) to \(\pi/2\). There is an abrupt change from squeezing to stretching at sunrise and back at sunset.
Even at the equator, the times of sunrise and sunset change, varying by 30 minutes over the year, in accordance with the equation of time.
Here is the example code from the help page. You will need to
We use a built-in simulated data set with times (and dates) of bird calling activity: 80% occur around sunrise with a strong peak just before sunrise, the remainder occur around sunset. The hypothetical location is near St Andrews, UK, longitude 3 degrees West, latitude 56 degrees North (CRS WGS84) and times are GMT throughout (ie, ignoring daylight saving).
The dates are in ISO format, so we can easily convert to
POSIXct format and set the GMT time zone. If you have
dates with other formats, the
Next we convert the location data to a
Now we can plug the times, dates and location(s) into the
Plotted against clock time, the activity peaks appear to be broader, and the morning activity has become bimodal; this is an artefact of the measure used, as sunrise is around 4:30am for a long period in summer and 7:30am for a similarly long period in winter.
|12 May 2018; updated 10 Sept 2019 by Mike Meredith|