process_rasters_patchmorph: Process rasters based on suitability, gap, and spur...

View source: R/Patch_Morph.R

process_rasters_patchmorphR Documentation

Process rasters based on suitability, gap, and spur parameters

Description

process_rasters_patchmorph processes an input raster by reclassifying it based on suitability levels, and then applying gap and spur distance transformations to generate a list of processed rasters.

Usage

process_rasters_patchmorph(input_raster, suitList, gapList, spurList)

Arguments

input_raster

RasterLayer The input raster to be processed.

suitList

numeric A vector of suitability levels for reclassification.

gapList

numeric A vector of gap distances for processing.

spurList

numeric A vector of spur distances for processing.

Value

list A list of processed rasters with names indicating the suitability, gap, and spur parameters used.

Examples

## Not run: 
# Define input parameters
input_raster <- raster::raster(system.file("external/test.grd", package="raster"))
suitList <- c(0.2, 0.5, 0.8)
gapList <- c(1, 2, 3)
spurList <- c(0.5, 1, 1.5)

# Process the rasters
processed_rasters <- process_rasters_patchmorph(input_raster, suitList, gapList, spurList)

# Plot the first processed raster
plot(processed_rasters[[1]])

## End(Not run)


bi0m3trics/spanner documentation built on June 9, 2025, 3:57 p.m.