download_prism {amadeus} | R Documentation |
Accesses and downloads Oregon State University's PRISM data from the PRISM Climate Group Web Service
download_prism(
time,
element = c("ppt", "tmin", "tmax", "tmean", "tdmean", "vpdmin", "vpdmax", "solslope",
"soltotal", "solclear", "soltrans"),
data_type = c("ts", "normals_800", "normals"),
format = c("nc", "asc", "grib2"),
directory_to_save = NULL,
acknowledgement = FALSE,
download = FALSE,
remove_command = FALSE
)
time |
character(1). Length of 2, 4, 6, or 8. Time period for time series or normals. According to the PRISM Web Service Guide, acceptable formats include (disclaimer: the following is a direct quote; minimal formatting is applied): Time Series:
Normals:
|
element |
character(1). Data element.
One of |
data_type |
character(1). Data type.
|
format |
character(1). Data format. Only applicable for |
directory_to_save |
character(1). Directory to download files. |
acknowledgement |
logical(1). By setting |
download |
logical(1). |
remove_command |
logical(1).
Remove ( |
NULL; .bil (normals) or single grid files depending on the format
choice will be stored in directory_to_save
.
Insang Song
Daly C, Taylor GH, Gibson WP, Parzybok TW, Johnson GL, Pasteris PA (2000). “HIGH-QUALITY SPATIAL CLIMATE DATA SETS FOR THE UNITED STATES AND BEYOND.” Transactions of the ASAE, 43(6), 1957–1962. ISSN 2151-0059, doi:10.13031/2013.3101, http://elibrary.asabe.org/abstract.asp??JID=3&AID=3101&CID=t2000&v=43&i=6&T=1.
download_prism(
time = "202104",
element = "ppt",
data_type = "ts",
format = "nc",
directory_to_save = tempdir(),
acknowledgement = TRUE,
download = FALSE, # NOTE: download skipped for examples,
remove_command = TRUE
)