tile_name: Get WorldClim and SRTM tile names.

Description Usage Arguments Details Value Author(s) Examples

View source: R/tile_name.R

Description

Provide projected Spatial object (can be features or raster) and determine which WorldClim or SRTM tiles your study area intersects with.

Usage

1
tile_name(bnd, name = "worldclim")

Arguments

bnd

Projected spatial feature or raster object.

name

Valid values are 'worldclim' and 'srtm'. Default is 'worldclim'

Details

Function uses the spatial object input to identify WorldClim or SRTM tiles to be downloaded. The output of this function can be used in tile_get() to download the according data via raster::getData().

Value

Character vector of tilenames of WorldClim or SRTM tiles.

Author(s)

Simon Kapitza simon.statecology.gmail.com

Examples

1
2
3
4
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

kapitzas/WorldClimTiles documentation built on July 13, 2021, 4:51 p.m.