Description Usage Arguments Value Note Author(s)
Function to create thumbnail images for Sentinel-2 products. BOA and TOA multiband images are rendered as false colour JPEG images; SCL maps are rendered as 8-bit PNG; other singleband images (like spectral indices) are rendered as JPEG images with a standard colour palette. Output images are georeferenced.
1 2 3  | 
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).  | 
prod_type | 
 (optional) Output product (see safe_shortname for the list of accepted products). If not provided, it is retrieved from the file name.  | 
rgb_type | 
 (optional) For BOA and TOA products, this value determine the type of false colours to be used for the thumbnails: 
  | 
dim | 
 Integer value, with the maximum greater dimension in pixels (width or
height) of the output images (default: 1024 px).
If this is lower than the corresponding dimension of the maps, maps are
rescaled before producing the thumbnails; otherwise the original dimensions
are maintained.
To keep the original size in any case, set   | 
scaleRange | 
 (optional) Range of valid values. If not specified
(default), it is automatically retrieved from the product type.
Default ranges for BOA and TOA products are 0 to 8000
(  | 
outdir | 
 (optional) Full name of the existing output directory where the files should be created. Default is a subdirectory (named "thumbnails") of the parent directory of each input file.  | 
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)  | 
overwrite | 
 (optional) Logical value: should existing thumbnails be overwritten? (default: TRUE)  | 
A vector with the names of the created images.
License: GPL 3.0
Luigi Ranghetti, phD (2018) ranghetti.l@irea.cnr.it
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.