Description Usage Arguments Value Note Author(s)
Create maps of a set of spectral indices. Since
gdal_calc.py
is used to perform computations, output files
are physical rasters (no output VRT is allowed).
1 2 3 4 5 |
infiles |
A vector of input filenames. Input files are paths of BOA (or TOA) products already converted from SAFE format to a format managed by GDAL (use s2_translate to do it); their names must be in the theia2r naming convention (safe_shortname). |
indices |
Character vector with the names of the required indices. Values should be included in names corresponding to the Abbreviations of the following indices: IDB FIXME the list of the accepted values is a subset; this reference will be replaced with an internal html page integrated in the shiny interface). |
outdir |
(optional) Full name of the output directory where
the files should be created (default: current directory).
|
parameters |
(optional) Values of index parameters. This variable
must be a named list, in which each element is a list of parameters,
i.e.:
|
source |
(optional) Vector with the products from which computing the indices. It can be "BOA", "TOA" or both (default). If both values are provided, indices are computed from the available products ("TOA" if TOA is available, BOA if BOA is available); in the case both are available, two files are produced (they can be distinguished from the level component - S2x1C or S2x2A - in the filename). |
format |
(optional) Format of the output file (in a format recognised by GDAL). Default is the same format of input images (or "GTiff" in case of VRT input images). |
subdirs |
(optional) Logical: if TRUE, different indices are
placed in separated |
tmpdir |
(optional) Path where intermediate files (GTiff) will be
created in case |
compress |
(optional) In the case a GTiff format is present, the compression indicated with this parameter is used. |
dataType |
(optional) Numeric datatype of the ouptut rasters.
if "Float32" or "Float64" is chosen, numeric values are not rescaled;
if "Int16" (default) or "UInt16", values are multiplicated by |
scaleFactor |
(optional) Scale factor for output values when an integer datatype is chosen (default values are 10000 for "Int16" and "UInt16", 1E9 for "Int32" and "UInt32"). Notice that, using "UInt16" and "UInt32" types, negative values will be truncated to 0. |
parallel |
(optional) Logical: if TRUE, the function is run using parallel
processing, to speed-up the computation for large rasters.
The number of cores is automatically determined; specifying it is also
possible (e.g. |
overwrite |
Logical value: should existing output files be overwritten? (default: FALSE) |
.log_message |
(optional) Internal parameter
(it is used when the function is called by |
.log_output |
(optional) Internal parameter
(it is used when the function is called by |
A vector with the names of the created products.
License: GPL 3.0
Luigi Ranghetti, phD (2017) ranghetti.l@irea.cnr.it
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.