Skip to contents

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.

Usage

create_fine_res(
  inputFileList,
  output = "./10_clean_inputs/covariates/5",
  targetRes = 5
)

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)