senGetTile: Return the pathrow of a tile from Sentinel-2 images

Description Usage Arguments Details Value Examples

View source: R/senGetPathRow.R

Description

senGetTile reads the official name of a Sentinel-2 image and returns the tile's path and row number, in "TTTSSS" format (Sentinel naming convention).

Usage

1

Arguments

str

the full path(s) or official name(s) of the Sentinel-2 images from which the tile's path and row numbers are retrieved.

Details

Find more details about the Sentinel tiling system here.

Value

a string with the path and row in "TTTSSS" format.

Examples

1
2
3
4
5
# getting path and row numbers from a couple of Sentinel-2 images
files.sen <- c("S2A_MSIL1C_20170102T111442_N0204_R137_T30TWN_20170102T111441.SAFE",
               "S2A_OPER_PRD_MSIL1C_PDMC_20160308T090616_R094_V20160305T110109_20160305T110109")
pr.sen <- senGetTile(files.sen)
print(pr.sen)

RGISTools documentation built on July 2, 2020, 3:58 a.m.