download_gridmet {amadeus} | R Documentation |
Download gridMET data
Description
The download_gridmet
function accesses and downloads gridded surface meteorological data from the University of California Merced Climatology Lab's gridMET dataset.
Usage
download_gridmet(
variables = NULL,
year = c(2018, 2022),
directory_to_save = NULL,
acknowledgement = FALSE,
download = FALSE,
remove_command = FALSE,
hash = FALSE
)
Arguments
variables |
character(1). Variable(s) name(s). See gridMET Generate Wget File for variable names and acronym codes. (Note: variable "Burning Index" has code "bi" and variable "Energy Release Component" has code "erc"). |
year |
character(1 or 2). length of 4. Year or start/end years for downloading data. |
directory_to_save |
character(1). Directory(s) to save downloaded data files. |
acknowledgement |
logical(1). By setting |
download |
logical(1). |
remove_command |
logical(1).
Remove ( |
hash |
logical(1). By setting |
Value
For
hash = FALSE
, NULLFor
hash = TRUE
, anrlang::hash_file
character.netCDF (.nc) files will be stored in a variable-specific folder within
directory_to_save
.
Author(s)
Mitchell Manware
References
Abatzoglou JT (2013). “Development of gridded surface meteorological data for ecological applications and modelling.” International journal of climatology, 33(1), 121–131.
Examples
## Not run:
download_gridmet(
variables = "Precipitation",
year = 2023,
directory_to_save = tempdir(),
acknowledgement = TRUE,
download = FALSE, # NOTE: download skipped for examples,
remove_command = TRUE
)
## End(Not run)