download_gmted | R Documentation |
The download_gmted()
function accesses and downloads Global
Multi-resolution Terrain Elevation Data (GMTED2010) from
U.S. Geological Survey and National Geospatial-Intelligence Agency.
download_gmted(
statistic = c("Breakline Emphasis", "Systematic Subsample", "Median Statistic",
"Minimum Statistic", "Mean Statistic", "Maximum Statistic",
"Standard Deviation Statistic"),
resolution = c("7.5 arc-seconds", "15 arc-seconds", "30 arc-seconds"),
directory_to_save = NULL,
acknowledgement = FALSE,
download = FALSE,
remove_command = FALSE,
unzip = TRUE,
remove_zip = FALSE,
hash = FALSE
)
statistic |
character(1). Available statistics include |
resolution |
character(1). Available resolutions include |
directory_to_save |
character(1). Directory to save data. Two sub-directories will be created for the downloaded zip files ("/zip_files") and the unzipped data files ("/data_files"). |
acknowledgement |
logical(1). By setting |
download |
logical(1). |
remove_command |
logical(1).
Remove ( |
unzip |
logical(1). Unzip zip files. Default is |
remove_zip |
logical(1). Remove zip file from directory_to_download.
Default is |
hash |
logical(1). By setting |
For hash = FALSE
, NULL
For hash = TRUE
, an rlang::hash_file
character.
Zip and/or data files will be downloaded and stored in
directory_to_save
.
Mitchell Manware, Insang Song
danielson_global_2011amadeus
## Not run:
download_gmted(
statistic = "Breakline Emphasis",
resolution = "7.5 arc-seconds",
directory_to_save = tempdir(),
acknowledgement = TRUE,
download = FALSE, # NOTE: download skipped for examples,
remove_command = TRUE,
unzip = FALSE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.