Habitat type in the vicinity of the pig farms
A landcover vector file available at the departmental territory
direction of Ardèche (DDT07) including 17 landcover categories was used
to characterize the landscape in a 1km radius around each surveyed farm.
The original categories were first lumped in order to create 6 broad
categories (artificial areas, cultivated areas, woodlands, shrublands,
natural grasslands and water bodies). The resulting vector file was then
converted into a raster file with a 50 meters resolution and the modal
category within a 1 km radius around each farm’s location was eventually
extracted and used to characterize the landscape. The R packages
“raster” (Hijmans & Van Etten, 2012) and “rgdal” (Bivand, Keitt, &
Rowlingson, 2019) were used for this step of the analysis.