Learn R Programming

RGISTools (version 0.9.7)

modGetPathRow: Return the pathrow of a tile of MODIS images

Description

modGetPathRow reads the official name of a MODIS image and returns the tile's path and row number, in 'hXXvYY' format (MODIS naming convention).

Usage

modGetPathRow(str)

Arguments

str

the full path(s) or official name(s) of the MODIS images from which the tile's path and row numbers are retrieved.

Value

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

Examples

Run this code
# NOT RUN {
# getting the path and row number of the tile of a Landsat-8 image
str <- "MYD09GA.A2003136.h17v04.005.2008324054225"
pr <- modGetPathRow(str)
print(pr)

# }

Run the code above in your browser using DataLab