Extracts a landscape structure from an existing raster
Source:R/flsgen_extract_structure_from_raster.R
flsgen_extract_structure_from_raster.Rd
Extracts a landscape structure from an existing raster
Arguments
- raster_file
terra::rast object or path of the raster
- focal_classes
vector of integers representing the raster values of the focal classes to extract the structure from
- connectivity
Connectivity definition in the regular square grid (4 or 8)."
Examples
if (FALSE) {
ls_struct <- flsgen_extract_structure_from_raster(raster_path, c(0, 1, 2))
}