MODIS (version 1.1.7)

preStack: Organise (MODIS) Files in Preparation for Stacking

Description

This function lets you sort a vector of filenames according to date. It is thought to be used on results from runGdal or runMrt.

Usage

preStack(pattern = "*", path = "./", files = NULL, timeInfo = NULL)

Arguments

pattern

Regular expression passed to list.files

path

character. Location of MODIS files to stack.

files

character vector of filenames. If provided, arguments pattern and path are ignored.

timeInfo

Ouput from orgTime.

Value

A character vector of filenames within the query. If timeInfo is provided, filenames are sorted and subsetted by date.

Examples

Run this code
# NOT RUN {
# see Examples in ?smooth.spline.raster

# }

Run the code above in your browser using DataLab