bluesky_latestModelRun: Find latest BlueSky model run from AirFire

Description Usage Arguments Value Examples

View source: R/bluesky_latestModelRun.R

Description

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:

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
<baseUrl>/NAM84-0.08deg/2016050600/carryover/data/...
<baseUrl>/NAM84-0.08deg/2016050600/combined/data/...
<baseUrl>/NAM84-0.08deg/2016050600/forecast/data/...

Usage

1
2
3
4
5
6
bluesky_latestModelRun(
  modelName = NULL,
  count = 1,
  baseUrl = "https://haze.airfire.org/bluesky-daily/output/standard",
  verbose = TRUE
)

Arguments

modelName

Model identifier.

count

Number of recent modelRun strings to return.

baseUrl

Base URL for BlueSky output.

verbose

If FALSE, suppress status messages (if any), and the progress bar.

Value

Timestamp of the latest model run.

Examples

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()

MazamaScience/AirFireModeling documentation built on March 13, 2021, 12:02 a.m.