Learn R Programming

RGISTools (version 1.0.2)

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

Description

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

Usage

lsGetPathRow(str)

Arguments

str

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

Value

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

Examples

Run this code
# NOT RUN {
# example of getting date from Landsat-8 image name
str <- c("LE72000302011066ASN00",
         "LE72000302011066ASN00")
pr <- lsGetPathRow(str)
print(pr)

# }

Run the code above in your browser using DataLab