gdal_calc: Do calculations on images.

Description Usage Arguments Value Author(s)

Description

R wrapper for gdal_calc.py

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
gdal_calc(
  input_files,
  out_filename = tempfile(pattern = "gdal_calc_out_", fileext = ".tif"),
  expression,
  band_number = NULL,
  dstnodata = NULL,
  data_type = NULL,
  out_format = NULL,
  creation_option = NULL,
  all_bands = NULL,
  overwrite = FALSE,
  verbose = FALSE,
  quiet = FALSE,
  dry_run = FALSE
)

Arguments

input_files

A character. Paths to the image files.

out_filename

A length-one character. The path to the destination file.

expression

A character. The expresion to compute on the images using upper case A-Z letters to represent the images in the same order as input_files.

band_number

An integer. The band numbers in input_files.

dstnodata

A length-one integer. Output nodata value.

data_type

A length-one character. Ouput datatype. It must be one of c('Int32', 'Int16', 'Float64', 'UInt16', 'Byte', 'UInt32', 'Float32').

out_format

A length-one character. The output format.

creation_option

A character. Creation options for output file e.g. c('NAME1=VALUE1', 'NAME2=VALUE2')

all_bands

A character. Process all bands of given raster (A-Z).

overwrite

A length-one logical. The default is FALSE.

verbose

A length-one logical. Generate a verbose output. The default is FALSE.

quiet

A length-one logical. The default is FALSE.

dry_run

A length-one logical. Do not run, just print the sytem call.

Value

out_filename A length-one character.

Author(s)

Alber Sanchez, alber.ipia@inpe.br


albhasan/sits.starfm documentation built on Sept. 3, 2020, 4:03 p.m.