download climate forecasts | R Documentation |
Downloads climate forecasts, presently only from the North American Multi-Model Ensemble (NMME), into the <main>/<resources>
sub.
download_climate_forecasts
downloads the files from the pre-defined URLs.
NMME_urls
generates the URL for a specific request to the NMME API based on parameters. See arguments for specifics and Details
for links.
download_climate_forecasts(
main = ".",
resources_sub = "resources",
version = Sys.Date(),
source = "NMME",
data = c("tasmin", "tasmean", "tasmax", "pr"),
quiet = FALSE,
verbose = FALSE,
force = FALSE,
timeout = getOption("timeout")
)
NMME_urls(
start = Sys.Date(),
end = as.Date("2050-01-01"),
model = "ENSMEAN",
lat = 31.9555,
lon = -109.0744,
freq = "daily",
data = c("tasmin", "tasmean", "tasmax", "pr")
)
main |
|
resources_sub |
|
version |
|
source |
|
data |
|
quiet |
|
verbose |
|
force |
|
timeout |
Positive |
start, end |
|
model |
|
lat, lon |
|
freq |
|
The Northwest Knowledge Network (NKN) at the University of Idaho provides a simple API to download downscaled climate forecasts using the North American Multi-Model Ensemble (NMME) set.
download_climate_forecasts:
NULL, [
invisible][base::invisible]-ly. \cr
NMME_urls: amed
charactervector of URLs, or
NULLif
data,
freq, or
modelis
NULL'.
Other downloads:
download archive
NMME_urls( )
## Not run:
main1 <- file.path(tempdir(), "dcf")
create_dir(main = main1)
download_climate_forecasts(main = main1)
unlink(main1, recursive = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.