split2SAGA: Split multiband image to single band SAGA files

View source: R/tb_bluedjinn.R

split2SAGAR Documentation

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


gisma/uavRst documentation built on Feb. 14, 2023, 8:49 a.m.