This extracts or creates a new raster layer, whose intention is to be used as
the rasterToMatch
argument in further prepInputs
calls.
rasterToMatch(x, ...)
# S4 method for Raster
rasterToMatch(x, studyArea, ...)
# S4 method for SpatialPolygonsDataFrame
rasterToMatch(x, studyArea, rasterToMatch, ...)
A Raster Layer with correct resolution and origin.
Additional arguments
A SpatialPolygon*
object that will be sent to postProcess
.
The raster to match in a fasterize
call.
A RasterLayer
object.