Learn R Programming

uavRst (version 0.5-2)

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, returnRaster = FALSE)

Arguments

fn

character. filename

startBand

numerical. first band to export

refFn

character. reference image for resampling

returnRaster

logical. return as raster

bandname

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

startBand

numerial. last band to export