GetElev: Download an elevation raster from internet
Description
This function allows for the download of an elevation raster from internet. By default, it downloads the "Global Multi-resolution Terrain Elevation Data 2010" from our server. The file was orifginally downloaded from: http://topotools.cr.usgs.gov/gmted_viewer/ and converted into a tif file by us.
A string indicating where to store the file on the hard drive
address
A string indicating where to download the file from
overwrite
A logical indicating if an existing file should be re-downloaded
verbose
A logical indicating whether information about the progress of the procedure should be displayed or not while the function is running. By default verbose is TRUE if users use an interactive R session and FALSE otherwise.
In the argument "path" is not provided, the file will be stored in the current working directory. The function can create new directories, so you can also indicate a new path. To download the elevation we prepared, leave the address to NULL.