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, returnRaster = FALSE)
character. filename
numerical. first band to export
character. reference image for resampling
logical. return as raster
character. list of bandnames c("red","green","blue")
numerial. last band to export