download_hms {amadeus} | R Documentation |
Download wildfire smoke data
Description
The download_hms()
function accesses and downloads
wildfire smoke plume coverage data from NOAA's Hazard Mapping System Fire and Smoke Product.
Usage
download_hms(
data_format = "Shapefile",
date = c("2018-01-01", "2018-01-01"),
directory_to_save = NULL,
acknowledgement = FALSE,
download = FALSE,
remove_command = FALSE,
unzip = TRUE,
remove_zip = FALSE,
hash = FALSE
)
Arguments
data_format |
character(1). "Shapefile" or "KML". |
date |
character(1 or 2). length of 10. Date or start/end dates for downloading data.
Format "YYYY-MM-DD" (ex. January 1, 2018 = |
directory_to_save |
character(1). Directory to save data. If
|
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
(????). “Hazard Mapping System Fire and Smoke Product: Hazard Mapping System.” https://www.ospo.noaa.gov/products/land/hms.html#about. https://www.ospo.noaa.gov/products/land/hms.html#about.
Examples
## Not run:
download_hms(
data_format = "Shapefile",
date = "2024-01-01",
directory_to_save = tempdir(),
acknowledgement = TRUE,
download = FALSE, # NOTE: download skipped for examples,
remove_command = TRUE,
unzip = FALSE
)
## End(Not run)