Description Usage Arguments Details Value
downloads DEM tiles from "http://ftp.geogratis.gc.ca/pub/nrcan_rncan/elevation" and unzips them to a directory
1 | DownloadSingleDEM(DEM_id, DEM_dir, replace = F, product = "CDED")
|
DEM_dir |
character string, path to directory where DEM tiles are stored. This function creates a nested file hierarchy that matches that of the FTP site |
replace |
logical, degaults to FALSE, whether or not files should be re-downloaded if they already exist in the DEM_dir directory |
product |
character string specifying which data product to get (one of 'CDEM', 'CDED', 'CDSM', or 'NED') |
NTS |
character string, name of NTS tile (e.g. '075C' or '014D03') or USGS NED tile. If specified as a 250k tile (4 characters), a 250k tile will be downloaded. If specified as a 50k tile (6 character) then a 50k tile will be downloaded. |
CDED and CDEM are from NRCAN. NED uses USGS National Elevation Dataset.
a vector of file paths to downloaded DEM files
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.