powered by
This function lets you sort a vector of filenames according to date. It is thought to be used on results from runGdal or runMrt.
runGdal
runMrt
preStack(pattern = "*", path = "./", files = NULL, timeInfo = NULL)
Regular expression passed to list.files
list.files
character. Location of MODIS files to stack.
character
character vector of filenames. If provided, arguments pattern and path are ignored.
pattern
path
Ouput from orgTime.
orgTime
A character vector of filenames within the query. If timeInfo is provided, filenames are sorted and subsetted by date.
timeInfo
# NOT RUN { # see Examples in ?smooth.spline.raster # }
Run the code above in your browser using DataLab