Learn R Programming

MODIS (version 1.1.2)

addProduct: Add New Product to MODIS Inventory

Description

addProduct is a non-exported helper function to add a new entry to the list of satellite products featured by MODIS (see MODIS:::MODIS_Products).

Usage

addProduct(product, sensor = "MODIS", platform = c("Terra", "Aqua"), pf1,
  pf2, topic, type = c("Tile", "Swath", "CMG"), res, temp_res,
  internalseparator = "\\.", server = c("LPDAAC", "LAADS"),
  path_ext = "inst/external", overwrite = FALSE, ...)

Arguments

product

Character. Name of the product that should be added to the inventory, see getProduct.

sensor

Character. Sensor type, defaults to 'MODIS'.

platform

Character. Satellite platform on which the specified 'sensor' is mounted, defaults to "Terra".

pf1, pf2

Character. Online server paths.

topic

Character. The official name of 'product'.

type

Character. Product type, defaults to 'Tile'.

res

Character. Spatial resolution of 'product', e.g. "1000m".

temp_res

Character. Temporal resolution of 'product', e.g. "8 Day".

internalseparator

Character. Separator string matching the product's naming convention, defaults to '\.' for MODIS products.

server

Character. Server to download the data from (more than one entry is possible).

path_ext

Character. Path to folder containing file 'MODIS_Products.RData'. When working with RStudio projects (.Rproj), this usually defaults to 'inst/external'.

overwrite

Logical. If TRUE, the initial '.RData' file located in 'path_ext' will be overwritten.

...

Currently not used.

Value

A 'list' holding the updated contents of file 'MODIS_Products.RData'.

See Also

MODIS:::MODIS_Products, getProduct.

Examples

Run this code
# NOT RUN {
## E.g., add MODIS evapotranspiration product
MODIS:::addProduct(product = "MOD16A2", sensor = "MODIS", platform = "Combined", 
                   pf1 = "MOLT", pf2 = "MOD", res = "1000m", temp_res = "8 Day", 
                   topic = "Global Terrestrial Evapotranspiration", server = "NTSG")
# }
# NOT RUN {
     
# }

Run the code above in your browser using DataLab