Movement decisions by black-tailed godwit families with chicks in an intensively managed dairy farming landscape
This repository contains the complete R workflow for analysing post-hatch movement, space use, and habitat selection of Black-tailed Godwit (Limosa limosa limosa) families in southwest Friesland (The Netherlands).
The workflow mirrors the structure of the associated manuscript. Scripts are numbered and organised by method section.
- clean and standardise multi-year GPS tracking data
- link tracking data to nest locations and natal meadows
- quantify post-hatch movement and space use
- assess selection for grassland management packages and grassland production intensity (GPI)
- generate manuscript figures and statistical outputs
Scripts are ordered numerically to reflect the analytical pipeline.
2.2 Tracking data collection and processing
1.filter_tracking_data.R
Speed and spatial filtering of locations2.clean_post_hatch_data.R
Merge tracking data with family and nest metadata3.crawl.R
Regularise tracks to 6-hour intervals using CRAWL
2.3 Grassland management variables
1.process_management_packages.R
Harmonise management categories, add protected sites, and create a complete management layer
2.4 Movement analyses
2.4.1 Space use estimation
1.annotate_natal_locations.R
Assign natal meadow IDs and natal-location flags2.quantify_parcels_visited.R
Calculate number of unique parcels visited3.daily_home_ranges.R
Compute cumulative daily home ranges and summary statistics
2.4.2 Natal site importance
4.natal_site_importance
2.4.3 Effects of management strategies on habitat selection
5.nest_buffers.R
Create nest-centred buffers (100–1,000 m)6.rsf_gpi.R
Resource selection for GPI with natal-location interaction7.rsf_management.R
Resource selection for management packages
Figures
fig1.R,fig2.R,fig3.R,fig4.R,fig5.R,figS2.2.R,figS3.1.R,figS4.1.R
raw_locations.rds- raw GPS tracking datafamily_data.xlsx- Nest, hatch, and fledging metadataoriginal_management.gpkg- Original grassland management scheme polygonsprotected_sites.gpkg- Protected area polygonsswf_geometry.gpkg- Meadow parcel geometry for southwest Frieslandgpi.gpkg– grassland production intensity polygons
Generated by scripts in this repository:
all_parcels_visited_daily.rds- unique parcels visited per track id per dayall_parcels_visited_yearly.rds- unique parcels visited per track id per yeardaily_home_ranges.gpkg– cumulative daily home rangesdonut_buffers/- donut-ring buffers (core + 100 m rings) with mean annual gpi valuesfinal_management.gpkg– harmonised management categoriesGPI_rasters/- parcel level GPI rastershome_range_stats– per-track summary statisticsKDE.gpkg- KDE home ranges for vizualizing movement in Figure 1locations_natal_annotated.rds- gps locations with natal flagnatal_area_models/- GLMM model objectsnests.rds– nest point locationsnest_buffers.rds– nest-centred buffers (100–1,000 m)post_hatch_data.rds- cleaned tracking datasetpost_hatch_data_cleaned.rds– filtered post-hatch tracking dataQGIS/- individual tracks after manual foraging/roost site removal in QGISrsf_model_500m.rds,rsf_model_1km.rds– fitted RSF modelstracks_crawled.rds– regularised GPS tracks (6-hour interval)