wrf_download: Download WRf model data from AirFire

Description Usage Arguments Examples

View source: R/wrf_download.R

Description

Downloads a copy of the specified WRF model run to the package data directory. The file data can then be loaded with wrf_load().

On 2020-08-27, available model identifiers include the following:

Usage

1
2
3
4
5
6
7
wrf_download(
  modelName = NULL,
  modelRun = NULL,
  modelRunHour = NULL,
  baseUrl = "http://m2.airfire.org",
  verbose = TRUE
)

Arguments

modelName

Model identifier.

modelRun

Model initialization timestamp as "YYYYMMDDHH".

modelRunHour

Hour forecasted from initial time, i.e. 7.

baseUrl

Base URL for WRF output.

verbose

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

Examples

1
2
3
4
5
library(AirFireWRF)
setWRFDataDir('~/Data/WRF')

modelRun <- wrf_latestModelRun("PNW-4km")
wrf_download("PNW-4km", "2020082500", 11)

MazamaScience/WRFmet documentation built on Nov. 9, 2020, 8:27 p.m.