download_narr {amadeus} | R Documentation |
Download meteorological data
Description
The download_narr
function accesses and downloads daily meteorological data from NOAA's North American Regional Reanalysis (NARR) model.
Usage
download_narr(
variables = NULL,
year = c(2018, 2022),
directory_to_save = NULL,
acknowledgement = FALSE,
download = FALSE,
remove_command = FALSE
)
Arguments
variables |
character. Variable(s) name acronym. See List of Variables in NARR Files 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
directory_to_save
.
Note
"Pressure levels" variables contain variable values at 29 atmospheric levels, ranging from 1000 hPa to 100 hPa. All pressure levels data will be downloaded for each variable.
Author(s)
Mitchell Manware, Insang Song
References
Mesinger F, DiMego G, Kalnay E, Mitchell K, Shafran PC, Ebisuzaki W, Jović D, Woollen J, Rogers E, Berbery EH, Ek MB, Fan Y, Grumbine R, Higgins W, Li H, Lin Y, Manikin G, Parrish D, Shi W (2006). “North American Regional Reanalysis.” Bulletin of the American Meteorological Society, 87(3), 343–360. ISSN 0003-0007, 1520-0477, doi:10.1175/BAMS-87-3-343.
Examples
download_narr(
variables = c("weasd", "omega"),
year = c(2023, 2023),
directory_to_save = tempdir(),
acknowledgement = TRUE,
download = FALSE, # NOTE: download skipped for examples,
remove_command = TRUE
)