bluesky_download: Download BlueSky model data from AirFire

Description Usage Arguments Value See Also Examples

View source: R/bluesky_download.R

Description

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:

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
<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
7
bluesky_download(
  modelName = "PNW-4km",
  modelRun = NULL,
  baseUrl = "https://haze.airfire.org/bluesky-daily/output/standard",
  modelMode = "forecast",
  verbose = TRUE
)

Arguments

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 FALSE, suppress status messages (if any), and the progress bar.

Value

File path of downloaded data.

See Also

setModelDataDir

Examples

1
2
3
4
5
6
library(AirFireModeling)
setModelDataDir('~/Data/BlueSky')

filePath <- bluesky_download(modelName = "PNW-4km", modelRun = 2020091300)
bluesky_toCommonFormat(filePath)
bluesky_downloaded()

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