gdalReclassify: Reclassify raster using gdal_calc

View source: R/gdal_raster_functions.R

gdalReclassifyR Documentation

Reclassify raster using gdal_calc

Description

Reclassify raster using gdal_calc

Usage

gdalReclassify(
  inpath,
  outpath,
  reclassify_list = NULL,
  calc_fun = NULL,
  overwrite = TRUE,
  return.raster = TRUE
)

Arguments

inpath

file path of inpath file to change.

outpath

file path of output file to generate.

reclassify_list

A list of values to reclassify, the value will be assigned by list index, e.g the first element will be made 1 and so forth. Values associated with that list will be converted to that number.

calc_fun

A text function that follows the "https://gdal.org/programs/gdal_calc.html" syntax.

return.raster

if TRUE raster will be returned from function call.


skiptoniam/sense documentation built on March 18, 2023, 4:36 a.m.