Published November 19, 2026 | Version v1
Other Open

Data and Code used in the manuscript entitled "Long-term population monitoring reveals an alarming decline in the endangered endemic Reunion Harrier Circus maillardi"

Authors/Creators

  • 1. ROR icon Office Français de la Biodiversité

Description

This is a repository aimed at storing the scripts and data of a manuscript entitled "Long-term population monitoring reveals an alarming decline in the endangered endemic Reunion Harrier Circus maillardi"   [preprint on bioRxiv](https://www.biorxiv.org/content/10.1101/2025.11.07.687144)


Folders and files overview

  • A Scripts folder with 3 R scripts files used to load, format, analyse the data and produce the figures of the asssociated manuscript
    *  **Script_MS_run_models_v2.r**, an R script to format the data, run the models, and generate the figures. This script calls upon different home-made functions that have been wrapped in an R package that can be installed with
       require(devtools)
       devtools::install_github("avillersofb/CircusMaillairdiFunctions/")
  • A Data folder with 4 data files:
    • df_pts_full.csv, with semi-colon as separator, a text file containing the following relevant columns:
      • date (character): in a DD/MM/YYYY format (correpsonding to the concatenation of the 3 following columns, day, month and year)
      • survey (integer): the number of the considered survey 1 = 1998-200, 2 = 2009-2010, 3 = 2017-2019
      •  lenght (interger):! the duration of observation , correponding to the Effort variable in the manuscript (not log-transformed)
      • ptot (integer): the total number of unique pairs of harriers considered as breeding during the observation session
      • X,Y (numeric): coordinates of thee observation point, with projection EPSG:2975 (RGR92 / UTMzone 40S)
      • long, lat (numeric): coordinates of observation point, with EPSG:4326 coordinate system (WGS84)
      • surveyF (character): the survey column expressed as text
      • id_newF (character): the ID of the observation points, with points sampled during different surveys sharing the same identifier.
      • log_length (numeric): log transformed values of tje length column
      • yearF (character): to be used as a factor (yearF) in the analyses)
      • jd (numeric): Julian date (jd=1 corresponds to the 1st of January)
      • jd_s (numeric):same as above, but scaled (z-score = (value-mean(values))/sd(values) )
      • survey_name (character): the corresponding survey period
    • coords_areas.csv**, with semi-colon as separator, with 3 columns, allowing to build the limits of the study area (coastlines of la Réunion Island) as well as the 2 areas used in the manuscript to compute regional trends (windward and leeward parts of the island):
      • X,Y (numeric): coordinates, with projection EPSG:2975 (RGR92 / UTMzone 40S)
      • Region (integer): with 1 and 2, respectively corresponding to the West and East part of the island
    • reu_mnt_tiles_res100m.tif, a raster image wich corresponds to the reasmpling of the IGN BD alti data set (originally with a 5m. resolution) at a 100m. resolution, with EPSG:2975 projection (RGR92 / UTMzone 40S)
    • Data_MS_CircusMaillairdi.RData, a RData file which contains all the objects needed to run the code of Script_MS_run_models_v2.r

 

  • A ProcessedData folder
    • This folder contains the ModelsRun_CircusMaillardi.RData file, which gathers the models that take quite long to run (mfull_01, mfull_02, etc). 

Use
The *Script_MS_run_models_v2.r* file will read the necessary files, run the different models and create the figures that are included in the manuscript (both in the main text and in supplementary material), creating necessary folders when needed, thanks to relative paths

References
* Knape, J. (2016). Decomposing trends in Swedish bird populations using generalized additive mixed models. Journal of Applied Ecology, 53, 1852–1861.
* Wood, S. (2017). Generalized additive models: an introduction with R. 2nd edn. Chapman & Hall/CRC.

Files

MS_CircusMaillardi_Data_Code.zip

Files (207.0 MB)

Name Size
md5:59b5740ece229cfc6f5477db6f465765
207.0 MB Preview Download

Additional details

Related works

Is supplement to
Preprint: 10.1101/2025.11.07.687144 (DOI)

Software

Programming language
R