download_terraclimate {amadeus} | R Documentation |
Download TerraClimate data
Description
The download_terraclimate
function accesses and downloads climate and water balance data from the University of California Merced Climatology Lab's TerraClimate dataset.
Usage
download_terraclimate(
variables = NULL,
year = c(2018, 2022),
directory_to_save = NULL,
acknowledgement = FALSE,
download = FALSE,
remove_command = FALSE
)
Arguments
variables |
character(1). Variable(s) name(s). See TerraClimate Direct Downloads for variable names and acronym codes. |
year |
character(2). length of 4 each. 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 ( |
Value
NULL; netCDF (.nc) files will be stored in a variable-specific
folder within directory_to_save
.
Author(s)
Mitchell Manware, Insang Song
References
Abatzoglou JT, Dobrowski SZ, Parks SA, Hegewisch KC (2018). “TerraClimate, a high-resolution global dataset of monthly climate and climatic water balance from 1958–2015.” Scientific data, 5(1), 1–12.
Examples
download_terraclimate(
variables = "Precipitation",
year = c(2023, 2023),
directory_to_save = tempdir(),
acknowledgement = TRUE,
download = FALSE, # NOTE: download skipped for examples,
remove_command = TRUE
)