View source: R/sen2r_getElements.R
sen2r_getElements | R Documentation |
This accessory function extracts metadata included in the name of a Sentinel-2 product which follows the sen2r naming convention (see safe_shortname).
sen2r_getElements(
s2_names,
naming_convention,
format = "data.table",
abort = TRUE
)
s2_names |
A vector of Sentinel-2 product names in the sen2r naming convention. |
naming_convention |
The naming convention used to extract information
from |
format |
One between |
abort |
Logical parameter: if TRUE (default), the function aborts
in case any of |
A data.table, data.frame or list of the output metadata.
License: GPL 3.0
Luigi Ranghetti, phD (2019)
L. Ranghetti, M. Boschetti, F. Nutini, L. Busetto (2020). "sen2r": An R toolbox for automatically downloading and preprocessing Sentinel-2 satellite data. Computers & Geosciences, 139, 104473. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.cageo.2020.104473")}, URL: https://sen2r.ranghetti.info/.
# Define product name
fs2nc_examplename <-
"/path/of/the/product/S2A1C_20170603_022_32TQQ_TOA_20.tif"
# Return metadata
sen2r_getElements(fs2nc_examplename)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.