Learn R Programming

RGISTools (version 0.9.7)

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 Landsat-8 image and returns the path and row of its tile.

Usage

lsGetPathRow(str)

Arguments

str

path to the folder with the Landsat-7 or Landsat-8 multispectral images.

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