lsGetPathRow: Return the pathrow of a tile of Landsat-7 or Landsat-8 images

Description Usage Arguments Value Examples

View source: R/lsGetPathRow.R

Description

lsGetPathRow reads the official name of a Landsat-7 or Landsa-8 image and returns the tile’s path and row number, in "PPPRRR" format (Landsat naming convention).

Usage

1

Arguments

str

the full path(s) or official name(s) of the Landsat-7 or Landsa-8 images from which the tile’s path and row numbers are retrieved.

Value

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

Examples

1
2
3
4
5
# example of getting date from Landsat-8 image name
str <- c("LE72000302011066ASN00",
         "LE72000302011066ASN00")
pr <- lsGetPathRow(str)
print(pr)

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