addProduct.Rd 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/addProduct.R
  3. \name{addProduct}
  4. \alias{addProduct}
  5. \title{Add New Product to MODIS Inventory}
  6. \usage{
  7. addProduct(product, sensor = "MODIS", platform = c("Terra", "Aqua"), pf1,
  8. pf2, topic, type = c("Tile", "Swath", "CMG"), res, temp_res,
  9. internalseparator = "\\\\.", server = c("LPDAAC", "LAADS"),
  10. path_ext = "inst/external", overwrite = FALSE, ...)
  11. }
  12. \arguments{
  13. \item{product}{Character. Name of the product that should be added to the
  14. inventory, see \code{\link{getProduct}}.}
  15. \item{sensor}{Character. Sensor type, defaults to 'MODIS'.}
  16. \item{platform}{Character. Satellite platform on which the specified 'sensor'
  17. is mounted, defaults to "Terra".}
  18. \item{pf1, pf2}{Character. Online server paths.}
  19. \item{topic}{Character. The official name of 'product'.}
  20. \item{type}{Character. Product type, defaults to 'Tile'.}
  21. \item{res}{Character. Spatial resolution of 'product', e.g. "1000m".}
  22. \item{temp_res}{Character. Temporal resolution of 'product', e.g. "8 Day".}
  23. \item{internalseparator}{Character. Separator string matching the product's
  24. naming convention, defaults to '\\.' for MODIS products.}
  25. \item{server}{Character. Server to download the data from (more than one
  26. entry is possible).}
  27. \item{path_ext}{Character. Path to folder containing file
  28. 'MODIS_Products.RData'. When working with RStudio projects (.Rproj), this
  29. usually defaults to 'inst/external'.}
  30. \item{overwrite}{Logical. If \code{TRUE}, the initial '.RData' file located
  31. in 'path_ext' will be overwritten.}
  32. \item{...}{Currently not used.}
  33. }
  34. \value{
  35. A 'list' holding the updated contents of file 'MODIS_Products.RData'.
  36. }
  37. \description{
  38. \code{addProduct} is a non-exported helper function to add a new entry to the
  39. list of satellite products featured by \strong{MODIS} (see
  40. \code{MODIS:::MODIS_Products}).
  41. }
  42. \examples{
  43. \dontrun{
  44. ## E.g., add MODIS evapotranspiration product
  45. MODIS:::addProduct(product = "MOD16A2", sensor = "MODIS", platform = "Combined",
  46. pf1 = "MOLT", pf2 = "MOD", res = "1000m", temp_res = "8 Day",
  47. topic = "Global Terrestrial Evapotranspiration", server = "NTSG")
  48. }
  49. }
  50. \seealso{
  51. \code{MODIS:::MODIS_Products}, \code{\link{getProduct}}.
  52. }
  53. \author{
  54. Florian Detsch
  55. }