download_nlcd {amadeus} | R Documentation |
Download land cover data
Description
The download_nlcd()
function accesses and downloads
land cover data from the
Multi-Resolution Land Characteristics (MRLC) Consortium's National Land Cover Database (NLCD) products data base.
Usage
download_nlcd(
collection = "Coterminous United States",
year = 2021,
directory_to_save = NULL,
acknowledgement = FALSE,
download = FALSE,
remove_command = FALSE,
unzip = TRUE,
remove_zip = FALSE,
hash = FALSE
)
Arguments
collection |
character(1). |
year |
integer(1). Available years for Coterminous United States
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 shapefiles ("/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 files from directory_to_download.
Default is |
hash |
logical(1). By setting |
Value
For
hash = FALSE
, NULLFor
hash = TRUE
, anrlang::hash_file
character.Zip and/or data files will be downloaded and stored in respective sub-directories within
directory_to_save
.
Author(s)
Mitchell Manware, Insang Song
References
Dewitz J (2023).
“National Land Cover Database (NLCD) 2021 Products.”
doi:10.5066/P9JZ7AO3.
Dewitz J (2024).
“National Land Cover Database (NLCD) 2019 Products (ver. 3.0, February 2024).”
doi:10.5066/P9KZCM54.
Examples
## Not run:
download_nlcd(
collection = "Coterminous United States",
year = 2021,
directory_to_save = tempdir(),
acknowledgement = TRUE,
download = FALSE, # NOTE: download skipped for examples,
remove_command = TRUE,
unzip = FALSE
)
## End(Not run)