Pixels that are NA
but are inside rasterToMatch
may need to be converted to 0
,
as they can could still potentially be forested
NAcover2zero(speciesLayers, rasterToMatch)
A RasterStack
or RasterLayer
that
should contain species cover data in the study area
A RasterLayer
objects to use as the template for all subsequent
raster operations (i.e., the one used throughout the simulation).
the speciesLayers
with 0
in pixels that had NA