preStack: Organize (MODIS) Files in Preparation for Stacking
Description
This function lets you sort a vector of file names according to date. It is
thought to be used on results from runGdal()
or runMrt()
.
Usage
preStack(pattern = "*", path = "./", files = NULL, timeInfo = NULL)
Value
A character
vector of file names within the query. If 'timeInfo' is
provided, file names are sorted and subsetted by date.
Arguments
- pattern
Regular expression passed to list.files()
- path
character
. Location of MODIS files to stack.
- files
character
vector of file names. If provided, arguments
'pattern' and 'path' are ignored.
- timeInfo
Output from orgTime()
.
Examples
Run this code# see Examples in ?smooth.spline.raster
Run the code above in your browser using DataLab