Description Usage Arguments Details Value Author(s) Examples
Download COPERNICUS products, for a given period of time and tile(s)
1 2 | download_copernicus(product,begin,end,extent,tileH,tileV,
outPath,user,password,ntry,allowParallel = FALSE,...)
|
product |
One of the following: 'NDVI_1km_V1' (Normalized Difference Vegetation Index - VGT instrument),'NDVI_1km_V2' (Normalized Difference Vegetation Index - PROBAV instrument),'LAI' (Leaf Area Index),'FCOVER' (Fraction of Vegetation Green Cover), 'FAPAR' (Fraction of Absorbed Photosynthetically Active Radiation),'VCI' (Vegetation Condition Index),'VPI' (Vegetation Productivity Index), 'DMP' (Dry Matter Productivity),'BA' (Burnt Areas) |
begin |
begin of the time period. |
end |
end of the time period. Same format as |
extent |
an object of class |
tileH |
H index of the tile COPERNICUS system ( |
tileV |
V index of the tile COPERNICUS system ( |
outPath |
Path where downloaded files should be stored. Default set via |
user |
User name to access COPERNICUS data portal. Default set via |
password |
Password associated with user name to access COPERNICUS data portal. Default set via |
ntry |
Number of tries after non-succes download response from the server. Increasing the value increases chances to actually get the data. Default set via |
allowParallel |
Logical. If a |
... |
argument passed to |
If target files are already present in the outPath
directory, they are not downloaded.
One should choose to use either an extent or pairs of (H,V) values. If extent is provided, tileH and tileV are not used.
Return invisibly the list of downloaded files
Antoine Stevens
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
# Don't forget to provide in copernicus_options() your user and password
# for COPERNICUS data portal before running this
# Let's download NDVI V1 prodct, for JUN 2009, and tile (h=19,v=4)
download_copernicus(product = 'NDVI_1km_V1', begin = '2009-06-01', end = '2009-06-30',
tileH = 19, tileV = 4)
# one could also use an extent object, instead of (tileH,tileV) pairs, eg:
library(raster)
e <- extent(c(-1,2,49,51))
# this will download 12 files (4 tiles x 3 time periods)
download_copernicus(product = 'NDVI_1km_V1', begin = '2009-06-01', end = '2009-06-30', extent = e)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.