delHdf.Rd 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/delHdf.R
  3. \name{delHdf}
  4. \alias{delHdf}
  5. \title{Delete Local MODIS Grid Files}
  6. \usage{
  7. delHdf(product, collection = NULL, extent = "global", tileV = NULL,
  8. tileH = NULL, begin = NULL, end = NULL, ask = TRUE, ...)
  9. }
  10. \arguments{
  11. \item{product}{\code{character}, see \code{\link{getProduct}}.}
  12. \item{collection}{\code{character} or \code{integer}, see
  13. \code{\link{getCollection}}.}
  14. \item{extent}{Extent information, defaults to \code{'global'}. See
  15. \code{\link{getTile}}.}
  16. \item{tileV}{\code{numeric} or \code{character}. Vertical tile number(s),
  17. see \code{tileH}.}
  18. \item{tileH}{\code{numeric} or \code{character}. Horizontal tile number,
  19. see \code{\link{getTile}}.}
  20. \item{begin}{\code{character}. Begin date of MODIS time series, see
  21. \code{\link{transDate}} for formatting.}
  22. \item{end}{Same for end date.}
  23. \item{ask}{\code{logical}. If \code{TRUE} (default), the user is being asked
  24. for deletion after checking.}
  25. \item{...}{Arguments passed to \code{\link{MODISoptions}}, particularly
  26. \code{localArcPath}.}
  27. }
  28. \description{
  29. Delete MODIS grid files to reduce the local storage.
  30. }
  31. \examples{
  32. \dontrun{
  33. # YOU ARE ASKED TO CONFIM THE DELETION! BUT IF THE EXAMPLE THIS FOR YOU SENSITIVE DATA CHANGE IT!
  34. # REMOVE "MYD11A2" from specific date range and area subset:
  35. # delHdf(product="MYD11A2",begin="2010001",end="2010.02.01",extent="austria")
  36. # or
  37. # delHdf(product="MYD11A2",begin="2010001",end="2010.02.01",tileV=18:19,tileH=4)
  38. # REMOVE "MOD11A2" and "MYD11A2" from specific date range but globaly:
  39. # delHdf(product="M.D11A2",begin="2010001",end="2010.02.01")
  40. # REMOVE ALL "MOD11A2" from local archive:
  41. # delHdf(product="MOD11A2")
  42. }
  43. }
  44. \author{
  45. Matteo Mattiuzzi
  46. }