s2_rgb: Create RGB images from S2 reflectance products.

Description Usage Arguments Value Note Author(s)

View source: R/s2_rgb.R

Description

Function to create RGB images from Sentinel-2 reflectances. natural: B4, B3, B2 near infrarouge: B8, B4, B3 far infrarouge: B12, B8, B4 vegetation: B11, B8, B2

Usage

1
2
3
4
s2_rgb(infiles, rgblist, tilesdir, extent, mosaicdir, project,
  outdir = ".", subdirs = NA, tmpdir = NA, rmtmp = TRUE,
  format = NA, compress = "DEFLATE", vrt_rel_paths = NA,
  parallel = FALSE, resolution = 10, overwrite = FALSE)

Arguments

infiles

A vector of input filenames. Input files are paths of 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).

rgblist

rgblist

tilesdir

Directory of tiles

mosaicdir

Directory of mosaic

outdir

(optional) Full name of the existing output directory where the files should be created. Default is the same directory of input reflectance files. # FIXME use a subdir with product name

subdirs

(optional) Logical: if TRUE, different indices are placed in separated outfile subdirectories; if FALSE, they are placed in outfile directory; if NA (default), subdirectories are created only if more than a single spectral index is required.

tmpdir

(optional) Path where intermediate files (VRT) will be created. Default is a temporary directory.

rmtmp

(optional) Logical: should temporary files be removed? (Default: TRUE)

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).

compress

(optional) In the case a GTiff format is present, the compression indicated with this parameter is used.

vrt_rel_paths

Directory vrt

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. parallel = 4). If FALSE (default), single core processing is used.

resolution

Resolution

overwrite

(optional) Logical value: should existing thumbnails be

overwritten?

(default: TRUE)

Value

A vector with the names of the created images.

Note

License: GPL 3.0

Author(s)

pascal Obstetar, (2019) pascal.obstetar@gmail.com


pobsteta/shiny-cnes documentation built on May 26, 2019, 2:31 a.m.