split2SAGA: Split multiband image to single band SAGA files

Description Usage Arguments Value

View source: R/tb_bluedjinn.R

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

1
2
3
4
5
6
7
8
9
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


uavRst documentation built on Dec. 30, 2019, 5:06 p.m.