download_prism | 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,
hash = 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 ( |
hash |
logical(1). By setting |
For hash = FALSE
, NULL
For hash = TRUE
, an rlang::hash_file
character.
.bil (normals) or single grid files depending on the format
choice will be stored in directory_to_save
.
Insang Song
article_daly2000prismamadeus
## Not run:
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
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.