getDEM: Download digital elevation model (DEM) by shapefile

Description Usage Arguments Value

View source: R/getDEM.R

Description

Takes a shapefile and download SRTM DEM covering the shapefile

Usage

1
getDEM(shp, path = "", fun, filename, ...)

Arguments

shp

SpatialPolygonsDataFrame shapefile from the sp package

path

Character. Path name indicating where to store the data. Default is the current working directory

fun

Function. E.g. mean, min, or max. Must be a function that accepts a 'na.rm' argument

filename

Character. Output filename (optional)

...

Additional required (!) parameters. These are data set specific. See Details

...

Arguments passed on to raster::mosaic

x

Raster* object

y

Raster* object

Value

a rater layer or a list of raster layers (if the shapefile covers several tiles).


Issoufou-Liman/RTauDEM documentation built on Oct. 30, 2019, 7:26 p.m.