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

View source: R/senGetPathRow.R

senGetTileR Documentation

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.

Details

Find more details about the Sentinel tiling system here.

Value

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

Examples

# 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)


spatialstatisticsupna/RGISTools documentation built on Feb. 21, 2023, 12:01 a.m.