DownloadSingleDEM: Download DEM Sheet

Description Usage Arguments Details Value

Description

downloads DEM tiles from "http://ftp.geogratis.gc.ca/pub/nrcan_rncan/elevation" and unzips them to a directory

Usage

1
DownloadSingleDEM(DEM_id, DEM_dir, replace = F, product = "CDED")

Arguments

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.

Details

CDED and CDEM are from NRCAN. NED uses USGS National Elevation Dataset.

Value

a vector of file paths to downloaded DEM files


ECCC-MSC/Basin-Delineation documentation built on June 9, 2019, 7:29 p.m.