This function masks a Raster* object using JRC's fuelmodel.
mask_with_fuelmodel(x, fuelmap = NULL, codes = NULL, value = NA)
Raster* to mask
Custom fuel map as RasterLayer.
The value of the cells in fuelmap used to mask x.
The value of cells masked out by the fuel map (NA by default).
In absence of vegetation the risk of ignition reduces considerably, regardless of the state of the soil. These areas are mapped in the JRC's fuelmodel (in use in 2018). This package contains a cached version of this map (matching crs and resolution of ERA-Interim), stored in the 'inst/extdata' folder of the package. For evaluating fire danger we use this map to mask deserts, glaciers, urban areas, etc. These areas have codes > 20. The optional argument `fuelmap` allows to input a custom fuelmap and costum `codes` to use for masking. Please note that
if (FALSE) {
xmasked <- mask_with_fuelmodel(x)
}