This function combined the different rasters and shapefiles needed to create the optimisation program

PrepareRasterFiles(
  population.raster,
  friction.raster,
  shp,
  buffer,
  access.raster,
  popurb.raster,
  is.inside
)

Arguments

population.raster

raster map containing population densities

friction.raster

raster map containing friction surface

shp

shapefile of the area of interest

buffer

buffer around current HF

access.raster

raster map containing the distance to HF layer

popurb.raster

raster map containing the urban population layer (urban pixels show the population in the pixel and the rural pixels are NA). Can be created with DefineUrban.

is.inside

whether CHW are placed inside the buffer (if FALSE, they are placed outside)

Value

a list containing the pre-processed rasters and transition matrix