Data from: Interacting moonlight, weather, and sex influence foraging in a nocturnal insectivore Caprimulgus europaeus
Data files
Sep 22, 2026 version files 7.86 MB
-
nightjarforaging.R
44.05 KB
-
nightjars_raw.csv
7.82 MB
-
README.md
4 KB
Abstract
Animals use a variety of environmental cues to identify profitable conditions and increase their foraging efficiency. Identifying environmental correlates of foraging behaviour can help to understand the drivers of animal foraging decisions and the potential consequences should conditions change. We used GPS tracking devices to collect data from 2015-2018 on the movement behaviour of 34 individual European nightjars (Caprimulgus europaeus), which forage exclusively at night on aerial invertebrates. To understand how they allocated their time, and whether their behaviour was influenced by the lunar cycle, weather conditions, and environment, we analysed the environmental factors that influenced foraging within and across multiple nights. Nightjar fine-scale changes in behaviour were primarily driven by the lunar cycle and cloud cover, with a lesser influence from habitat type and temperature. At an hourly level, Nightjars responded to cyclical cues most strongly, foraging more when lunar light levels were high and the moon was close to the Earth. Birds foraged for more time when the moon was between 60% and 90% illuminated, but the strength of this relationship varied with lunar distance. Foraging was also influenced by the amount of cloud present and lunar altitude. Nightjars concentrated their foraging in nautical twilight, when light levels were still sufficient and temperatures likely still higher, thus providing efficient foraging via increased visibility, as well as better prey availability, supporting the reduced effort hypothesis. Male nightjars foraged significantly more than females, representing their differing breeding roles and potentially their energetic requirements. We suggest that our results indicate a trade-off between prey availability and visibility that may reflect allocating more time to conditions that promote reduced effort and increased foraging efficiency.
Dataset DOI: 10.5061/dryad.q573n5v0p
Description of the data and file structure
The dataset contains GPS tracking data from 34 individual nightjars in the Humberhead Peatlands NNR, near Doncaster, South Yorkshire. Data were collected from 2015 - 2018, using Pathtrack NanoFix archival GPS tags weighing ~1.75 g, deployed onto nightjars using temporary tail-mounted sticky pads, dental floss, and glue. In 2015 and 2016, data were collected every 3 minutes; in 2017 and 2018, every 5 minutes, as shown in the Schedule column of the spreadsheet. Sex was documented by hand using visual features of the bird.
The environmental data associated with the data (temperature, wind) were collected from local weather data recording stations. Lunar data were accessed through the lunar package in R. Cloud cover data were accessed via the European Centre for Medium-Range Weather Forecasts through a NetCDF file, via the ncdf4 package. Weather data were interpolated to match the timing of the GPS data (from every 1 hour to every 3- 5 minutes).
All weather and lunar data have been standardised so as to be able to be used altogether in the same GLMMs. Models were run in glmmTMB in R, using the attached R script.
Files and variables
File: nightjars_raw.csv
Description:
Variables
- ID: The individual identification number of the individual bird
- x: Longitude in WGS84
- y: Latitude in WGS84
- da: Date of the year, in format dd/mm/yyyy.
- Time: Time of the night in 24-hour HH:MM format.
- day: day of tracking; begins at 1, i.e., first day tracked
- Temp: Temperature per hour of the night in degrees Celsius
- Tempstd: Standardised temperature
- W_spd: Wind Speed in miles per hour, per hour of the night
- Windstd: Standardised wind speed
- illumination: Mean percentage illumination of the moon face (%) per hour
- illuminationstd: Standardised mean lunar illumination
- altitude: Mean altitude of the moon above or below the horizon in degrees.
- altitudestd: Standardised mean altitude of the moon per hour
- lun_dist: Mean distance of the moon from the earth in kilometres.
- lun_diststd: Standardised mean lunar distance
- meancloud: Mean percentage cloud cover per hour
- meancloudstd: Standardised mean percentage cloud cover
- NDVI: Normalised Differential Vegetation Index
- NDVIstd: Standardised Normalised Differential Vegetation Index
- Schedule: Tagging schedule; binary, either 3 or 5 representing tracking every 3 or 5 minutes of the night.
- Sex: Sex of the bird, based on plumage characteristics
- Year: Year of the study
- dt: a date-time stamp in as.POSIXct format dd/mm/yyy hh:mm:ss
- habitat: Habitat category at each GPS fix location - in integers; numbers range from 1 to 13. See more information in the paper's Supporting Information.
- habstd: Standardised habitat categories
- hour: Hour of the night as an integer.
File: nightjarforaging.R
Description: R script file to run the analysis produced in the paper. The script covers formatting of the raw file for the Hidden Markov Models, the extraction of states from these models, the integration of the states into the raw data file, and the translation of this into a file to be processed using GLMMs to test the relationships between foraging points and the various environmental covariates.
Code/software
R: v. 4.4.2 - 4.5.1.
Packages required:
MASS, moveHMM, glmmTMB, boot, CircStats, sp, Rcpp, lubridate, tidyverse, gt, gtExtras, modelsummary, MuMIn, marginaleffects, sjPlot, DHARMa, performance, effects, ggeffects, webshot, car, RColorBrewer.
Access information
Other publicly accessible locations of the data:
Data was derived from the following sources:
- Pathtrack NanoFix GPS units
