Create high resolution versions of rasters
create_fine_res.Rd
Uses terra::disagg
to push a set of rasters to a target resolution. Note that input raster resolution need to be divisible by the target resolution.
Arguments
- inputFileList
a character vector specifying the location of all the input rasters. Input list should only be a raster type (e.g. .tif, .sdat). Best practice is to use list.files(full.names = TRUE).
- output
destination of the output files. NOTE files names will have a suffix added to indicate the original resolution.
- targetRes
desired resolution to convert to.
Examples
l <- list.files("e:/covariates/10")
create_fine_res(l, output = "e:/covariates/5", targetRes = 5)