S2_vrt_L2Agranule: Create a virtual raster from a (Level 2A) Sentinel-2 Granule

View source: R/S2_vrt_L2Agranule.R

S2_vrt_L2AgranuleR Documentation

Create a virtual raster from a (Level 2A) Sentinel-2 Granule

Description

Creates a '.vrt' raster from a granule directory

Usage

S2_vrt_L2Agranule(granule, verbose = FALSE)

Arguments

granule

character path to a 'granule'

verbose

logical if TRUE show warnings

Value

path to the created file

Note

Requires a valid 'GDAL' install (and properly configured '$PATH' variable). Suppose a granule is complete (containing L2A files at 10m, 20m and 60m resolution), the resulting '.vrt' stack will contain bands in the following order: B01 (60m), B02 (10m), B03 (10m), B04 (10m), B05 (20m), B06 (20m), B07 (20m), B08 (10m), B09 (60m), B11 (20m) and B12 (20m). For details, please consult the ESA Sentinel-2 product specifications documentation.


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