Description Usage Arguments Value Author(s) Examples
This function is a wrapper for raster::getData
. Provide a character vector with tile names for either WorldClim 0.5 arcmin or SRTM 90m and those tiles will be downloaded.
1 |
tiles |
Character vector. Contains WorldClim (0.5 arcmin) or SRTM (90m) tile names. Tile names can be determined with |
var |
Character. Which worldclim variable? Valid values are 'tmin', 'tmax', 'prec' and 'bio'. |
path |
target path where data is downloaded. |
name |
Valid values are 'worldclim' and 'srtm'. Default is 'worldclim'. If |
raster object containing list of worldclim tiles.
Simon Kapitza simon.statecology@gmail.com
1 2 3 4 5 6 7 | boundary <- getData("GADM", country = "FRA", level = 0) #Downloads France boundaries
tilenames <- tile_name(boundary, name = 'worldclim') #Determines names of the worldclim tiles covering France
srtmtilenames <- tile_name(boundary, name = 'srtm') #Determines names of the srtm tiles covering France
wctiles <- tile_get(tiles = tilenames, name = 'srtm', var = "bio") #downloads WorldClim tiles covering France
srtmtiles <- tile_get(tiles = srtmtilenames, name = 'srtm') #downloads SRTM tiles covering France
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.