multi_res_SAGA: Provides multiple resolutions of the input raster.

View source: R/multi_res_SAGA.R

multi_res_SAGAR Documentation

Provides multiple resolutions of the input raster.

Description

Resamples raster to specified desired resolution using SAGA GIS. NOTE: an attempt was made to use the SAGA resample but I had trouble aligning the rasters. I am sure that gdal can be used but for now funtioning is internal to R packages.

Usage

multi_res_SAGA(
  input,
  output = "CoVars",
  resolution = c(2.5, 5, 10, 25),
  SAGApath = ""
)

Arguments

input

list of rasters to process

output

folder to save files. #' @param resolution = c(5, 10, 25) multiple resolutions can be specified

SAGApath

Is the location of SAGA on your system. On linux systems with SAGA GIS installed Use SAGApath = ""

Details

For the PEM project we generally start with a high resolution dtm. Resampling to a set of lower resolution DTMs is used to capture multi-scale influences on the ecological unit. NOTE: to ensure raster stacking of all covariates this operation should be completed only on data that has been cropped to the AOI using aoi_snap()

Examples

## generate default raster sizes
multi_res(r)

ColinChisholm/pemgeneratr documentation built on March 14, 2023, 10:47 p.m.