download_huc | R Documentation |
NHDPlus data provides the most comprehensive and high-resolution hydrography data. This function downloads national dataset from NHDPlus Version 2.1 on USGS Amazon S3 storage.
download_huc(
region = c("Lower48", "Islands"),
type = c("Seamless", "OceanCatchment"),
directory_to_save = NULL,
acknowledgement = FALSE,
download = FALSE,
remove_command = FALSE,
unzip = FALSE,
hash = FALSE
)
region |
character(1). One of |
type |
character(1). One of |
directory_to_save |
character(1). Directory to download files. |
acknowledgement |
logical(1). By setting |
download |
logical(1). |
remove_command |
logical(1).
Remove ( |
unzip |
logical(1). Unzip the downloaded compressed files.
Default is |
hash |
logical(1). By setting |
For hash = FALSE
, NULL
For hash = TRUE
, an rlang::hash_file
character.
Downloaded files will be stored in directory_to_save
.
For HUC, set type = "Seamless"
. HUC12 layer presents in the seamless
geodatabase. Users can aggregate HUC12 layer to make HUC6, HUC8, HUC10, etc.
For whom wants to download a specific region,
please visit Get NHDPlus Data
Insang Song
data_usgs2023nhdamadeus
## Not run:
download_huc(
region = "Lower48",
type = "Seamless",
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.