Description Usage Arguments Value See Also Examples
View source: R/bluesky_download.R
Downloads a copy of the specified BlueSky model run to the package data directory. This file can then be converted into a common format.
#' On 2019-10-11, available model identifiers include the following:
AK-12km
CANSAC-1.33km
CANSAC-4km
DRI1.33km-CMAQ
DRI4km-CMAQ
GFS-0.15deg-CanadaUSA-p25deg-68N
GFS-0.15deg
NAM-3km
NAM84-0.15deg
PNW-1.33km
PNW-4km
PNW1.33km-CMAQ
PNW4km-CMAQ
Users will typically call bluesky_load() which in turn calls this function.
BlueSky output files are found in directories with the following
structure: <baseUrl>/<modelName>/<modelRun>/<modelMode>/data/...
1 2 3 |
1 2 3 4 5 6 7 | bluesky_download(
modelName = "PNW-4km",
modelRun = NULL,
baseUrl = "https://haze.airfire.org/bluesky-daily/output/standard",
modelMode = "forecast",
verbose = TRUE
)
|
modelName |
Model identifier. |
modelRun |
Model initialization datestamp as "YYYYMMDDHH". |
baseUrl |
Base URL for BlueSky output. |
modelMode |
Subdirectory path containing BlueSky output, i.e. 'forcast'. |
verbose |
If |
File path of downloaded data.
setModelDataDir
1 2 3 4 5 6 | library(AirFireModeling)
setModelDataDir('~/Data/BlueSky')
filePath <- bluesky_download(modelName = "PNW-4km", modelRun = 2020091300)
bluesky_toCommonFormat(filePath)
bluesky_downloaded()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.