preStack.Rd 983 B

1234567891011121314151617181920212223242526272829303132333435
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/preStack.R
  3. \name{preStack}
  4. \alias{preStack}
  5. \title{Organise (MODIS) Files in Preparation for Stacking}
  6. \usage{
  7. preStack(pattern = "*", path = "./", files = NULL, timeInfo = NULL)
  8. }
  9. \arguments{
  10. \item{pattern}{Regular expression passed to \code{\link{list.files}}}
  11. \item{path}{\code{character}. Location of MODIS files to stack.}
  12. \item{files}{\code{character} vector of filenames. If provided, arguments
  13. \code{pattern} and \code{path} are ignored.}
  14. \item{timeInfo}{Ouput from \code{\link{orgTime}}.}
  15. }
  16. \value{
  17. A \code{character} vector of filenames within the query. If \code{timeInfo}
  18. is provided, filenames are sorted and subsetted by date.
  19. }
  20. \description{
  21. This function lets you sort a vector of filenames according to date. It is
  22. thought to be used on results from \code{\link{runGdal}} or
  23. \code{\link{runMrt}}.
  24. }
  25. \examples{
  26. # see Examples in ?smooth.spline.raster
  27. }
  28. \author{
  29. Matteo Mattiuzzi
  30. }