downloadGimms {gimms} | R Documentation |
Download GIMMS NDVI3g Data
Description
Download GIMMS NDVI3g data, optionally for a given period of time. NDVI3g.v1
(NetCDF, until end 2015) is available from the "poles"
and
"ecocast"
servers, whereas NDVI3g.v0 (ENVI binary, until end 2013) is
"ecocast"
and "nasanex"
exclusive.
Usage
## S4 method for signature 'dateORmissing,dateORmissing'
downloadGimms(
x,
y,
version = 1L,
dsn = getwd(),
overwrite = FALSE,
quiet = TRUE,
mode = "wb",
cores = 1L,
server = c("poles", "nasanex", "ecocast"),
...
)
## S4 method for signature 'numericORmissing,numericORmissing'
downloadGimms(
x,
y,
version = 1L,
dsn = getwd(),
overwrite = FALSE,
quiet = TRUE,
mode = "wb",
cores = 1L,
server = c("poles", "nasanex", "ecocast"),
...
)
## S4 method for signature 'character,ANY'
downloadGimms(
x,
dsn = getwd(),
overwrite = FALSE,
quiet = TRUE,
mode = "wb",
cores = 1L,
...
)
## S4 method for signature 'missing,missing'
downloadGimms(
version = 1L,
dsn = getwd(),
overwrite = FALSE,
quiet = TRUE,
mode = "wb",
cores = 1L,
server = c("poles", "nasanex", "ecocast"),
...
)
Arguments
x |
Start time for data download as either |
y |
End time for data download as either |
version |
|
dsn |
|
overwrite |
|
quiet |
|
mode |
|
cores |
|
server |
See |
... |
Further arguments passed to |
Value
A character
vector of local filepaths.
See Also
updateInventory
, download.file
.
Examples
## Not run:
tmp <- tempdir()
## 'Date' method
gimms_files_date <- downloadGimms(x = as.Date("2000-01-01"),
y = as.Date("2000-12-31"),
dsn = tmp)
## 'numeric' method (i.e., particular years)
gimms_files_year <- downloadGimms(x = 2000,
y = 2002,
dsn = tmp)
## 'character' method (i.e., particular files)
ecocast <- system.file("extdata", "inventory_ecv1.rds", package = "gimms")
gimms_files_char <- readRDS(ecocast)
gimms_files_char <- downloadGimms(x = gimms_files_char[1:6],
dsn = tmp)
## 'missing' method (i.e., entire collection)
gimms_files_full <- downloadGimms(dsn = tmp)
## End(Not run)