preStack: Organize (MODIS) Files in Preparation for Stacking

View source: R/preStack.R

preStackR Documentation

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)

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().

Value

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

Author(s)

Matteo Mattiuzzi

Examples

# see Examples in ?smooth.spline.raster


MatMatt/MODIS documentation built on Feb. 1, 2023, 12:39 a.m.