S2_generate_RGB: Generate RGB image and download

View source: R/S2_generate_RGB.R

S2_generate_RGBR Documentation

Generate RGB image and download

Description

Generates 8-bit/channel composite image (see 'https://s2.boku.eodc.eu/wiki/' for details)

Usage

S2_generate_RGB(granuleId, destfile = NULL, resolution = c("highest",
  "lowest"), atmCorr = TRUE, r = "B08", g = "B04", b = "B03",
  ra = 20, ga = 20, ba = 20, rb = 20, gb = 20, bb = 20,
  overwrite = FALSE)

Arguments

granuleId

integer the granuleId for which to create the RGB composite

destfile

character path to the output file. If destfile is a path to an existing directory, a filename will be automatically generated. If NULL, the file will be saved to the current working directory using an automatically generated name. If a filename is supplied, it will be recognized by its '.tiff' extension.

resolution

character one of c("highest", "lowest"). Images may exist for several resolutions (10m, 20m, 60m), for some Sentinel-2 bands. Using "highest" will use the highest available spatial resolution for each band, "lowest" will use the lowest available spatial resolution for each band.

atmCorr

0 (default) or 1, if atmospherically corrected bands should be used

r

character red band, e.g. "B08"

g

character green band, e.g. "B04"

b

character blue band, e.g. "B03"

ra

see wiki

ga

see wiki

ba

see wiki

rb

see wiki

gb

see wiki

bb

see wiki

overwrite

logical, should existing files be overwritten?


IVFL-BOKU/sentinel2 documentation built on May 13, 2022, 11:15 p.m.