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.
split2SAGA(
fn = NULL,
bandName = NULL,
startBand = 1,
endBand = 3,
refFn = NULL,
gdalLinks = NULL,
returnRaster = FALSE
)
character. filename
numerial. last band to export
character. reference image for resampling
list of gdal installations
logical. return as raster
character. list of bandnames c("red","green","blue")
if returnRaster the splitted SAGA raster is returned as an raster* object