arcStats.Rd 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/arcStats.R
  3. \name{arcStats}
  4. \alias{arcStats}
  5. \title{Get Summary of Local MODIS Data}
  6. \usage{
  7. arcStats(product, collection = NULL, extent = "global",
  8. begin = "2000.01.01", end = format(Sys.time(), "\%Y.\%m.\%d"),
  9. asMap = TRUE, outName = NULL, ...)
  10. }
  11. \arguments{
  12. \item{product}{\code{character}, see \code{\link{getProduct}}. MODIS grid
  13. product to be checked.}
  14. \item{collection}{\code{character} or \code{integer}, see
  15. \code{\link{getCollection}}. MODIS product version.}
  16. \item{extent}{Extent information, defaults to \code{'global'}. See
  17. \code{\link{getTile}}.}
  18. \item{begin}{\code{character}. Begin date of MODIS time series, see
  19. \code{\link{transDate}}.}
  20. \item{end}{\code{character}. End date, defaults to \code{'Today'} expressed in
  21. a function.}
  22. \item{asMap}{Controls output type. Possible options are \code{TRUE} (png),
  23. \code{FALSE} (csv) or \code{'both'}.}
  24. \item{outName}{\code{character}. Name of output file, defaults to
  25. 'product.collection.YYYYMMDDHHMMSS.png' (or *.csv) of the function call or,
  26. if applicable, 'product.collection.extent.YYYYMMDDHHMMSS.png' (or *.csv).}
  27. \item{...}{Arguments passed to \code{\link{MODISoptions}}, most importantly
  28. \code{outProj} and \code{outDirPath}.}
  29. }
  30. \value{
  31. An invisible \code{NULL} (provably this will change to a matrix-like object
  32. similar to the '*.csv' output). If \code{asMap= TRUE}, a 'table.csv' and a
  33. 'image.png' file(s) in \code{outDirPath}.
  34. }
  35. \description{
  36. In the same manner as \code{\link{getHdf}}, this function quantifies the
  37. availability of local MODIS hdf data and gives you an overview (plot or/and
  38. table) of locally available MODIS grid hdf files.
  39. }
  40. \examples{
  41. \dontrun{
  42. # arcStats result on a webserver:
  43. # "http://ivfl-info.boku.ac.at/index.php/eo-data-processing/status-of-the-local-archive"
  44. #
  45. # The following examples are expecting that you have some data stored locally!
  46. ###########################################################
  47. # generates 2 png's and 2 csv's one for TERRA one for AQUA
  48. arcStats(product="M.D13Q1")
  49. # generates 2 png's and 2 csv's one for TERRA one for AQUA with the specified countries.
  50. arcStats(product="M.D13Q1",extent=c("austria","germany","italy"))
  51. # generates 1 png and 1 csv for AQUA.
  52. arcStats(product="MYD13Q1",begin="2005001",outName="MyDataStart2005")
  53. # generates 1 png for AQUA for the selected area and plots it in 'Sinusoidal'.
  54. arcStats(product="MYD13Q1",begin="2005001",asMap=TRUE, outName="InteractiveSelection2005",
  55. extent=getTile(), outProj="asIn")
  56. # generates 1 png for AQUA for the selected area and plots it in 'Geographic' Coordinates.
  57. arcStats(product="MYD13Q1",begin="2005001",asMap=TRUE, outName="InteractiveSelection2005",
  58. extent=getTile(), outProj="GEOGRAPHIC")
  59. }
  60. }
  61. \author{
  62. Matteo Mattiuzzi
  63. }