powered by
lsGetPathRow reads the official name of a Landsat-7 or Landsat-8 image and returns the path and row of its tile.
lsGetPathRow
lsGetPathRow(str)
path to the folder with the Landsat-7 or Landsat-8 multispectral images.
a string with the path and row in "ppprrr" format.
ppprrr
# 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