Learn R Programming

RGISTools (version 0.9.7)

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

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

senGetTile(str)

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.

Value

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

Details

Find more details about the Sentinel tiling system here.

Examples

Run this code
# NOT RUN {
# getting path and row numbers from a couple of Sentinel-2 images
str <- c("S2A_MSIL1C_20170102T111442_N0204_R137_T30TWN_20170102T111441.SAFE",
         "S2A_OPER_PRD_MSIL1C_PDMC_20160308T090616_R094_V20160305T110109_20160305T110109")
pr <- senGetTile(str)
print(pr)

# }

Run the code above in your browser using DataLab