multi_res: Provides multiple resolutions of the input raster

View source: R/multi_res.R

multi_resR Documentation

Provides multiple resolutions of the input raster

Description

Resamples raster to specified desired resolution using the raster package. 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(input, output = "CoVars", resolution = c(2.5, 5, 10, 25))

Arguments

input

a raster::raster object (not a file)

resolution

= c(5, 10, 25) multiple resolutions can be specified

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 18, 2023, 1:45 a.m.