Learn R Programming

MODIS (version 1.1.2)

addServer: Add New Remote Server to MODIS Inventory

Description

addServer is a non-exported helper function to add a new entry to the list of online (FTP) servers featured by MODIS (see MODIS:::MODIS_FTPinfo).

Usage

addServer(name, sensor = "MODIS", basepath, varpath, content = "images",
  path_ext = "inst/external", overwrite = FALSE, ...)

Arguments

name

Character. Name of the remote server that should be added to the inventory.

sensor

Character. Sensor type, defaults to 'MODIS'.

basepath

Character. Absolute online server path.

varpath

Character. Pattern of organizational structure on server.

content

Character. Content type, defaults to "images".

path_ext

Character. Path to folder containing file 'MODIS_FTPinfo.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 'MODIS_FTPinfo.RData'.

See Also

MODIS:::MODIS_FTPinfo.

Examples

Run this code
# NOT RUN {
## E.g., add server of MODIS evapotranspiration product
MODIS:::addServer(name = "NTSG", sensor = "MODIS",
                  basepath = "ftp://ftp.ntsg.umt.edu/pub/MODIS/NTSG_Products/MOD16/",
                  varpath = "PRODUCT.CCC/YYYY/DDD/")
# }
# NOT RUN {
    
# }

Run the code above in your browser using DataLab