Description Usage Arguments Value Examples
View source: R/bluesky_latestModelRun.R
Scans the directory of BluSky model output and returns the
most recent modelRun
string(s). If count > 1
, the most recent
count
will be returned in low-hi order.
#' 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 wanting the latest data will typically call this function first, followed by bluesky_load().
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 | bluesky_latestModelRun(
modelName = NULL,
count = 1,
baseUrl = "https://haze.airfire.org/bluesky-daily/output/standard",
verbose = TRUE
)
|
modelName |
Model identifier. |
count |
Number of recent |
baseUrl |
Base URL for BlueSky output. |
verbose |
If |
Timestamp of the latest model run.
1 2 3 4 5 6 7 | library(AirFireModeling)
setModelDataDir('~/Data/BlueSky')
modelRun <- bluesky_latestModelRun(modelName = "PNW-4km")
filePath <- bluesky_download(modelName = "PNW-4km", modelRun = modelRun)
bluesky_toCommonFormat(filePath)
bluesky_downloaded()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.