Learn R Programming

uavRst (version 0.5-4)

split2SAGA: Split multiband image to single band SAGA files

Description

Split multiband image to single band SAGA files. If a reference file is given, it performs a resample if necessary to avoid the numerical noise problem of SAGA extent.

Usage

split2SAGA(
  fn = NULL,
  bandName = NULL,
  startBand = 1,
  endBand = 3,
  refFn = NULL,
  gdalLinks = NULL,
  returnRaster = FALSE
)

Arguments

fn

character. filename

startBand

numerial. last band to export

refFn

character. reference image for resampling

gdalLinks

list of gdal installations

returnRaster

logical. return as raster

bandname

character. list of bandnames c("red","green","blue")

Value

if returnRaster the splitted SAGA raster is returned as an raster* object