List downloaded WRF model run files

wrf_downloaded(
  WRFDataDir = getWRFDataDir(),
  pattern = ".nc",
  full = FALSE,
  ...
)

Arguments

WRFDataDir

Directory in which model run files are located.

pattern

A regex pattern to use for filtering model files.

full

Logical. Show the full path of the model (used for local loading).

...

Additional arguments to be passed to list.files().

Value

A list of downloaded model run files

Examples

# \donttest{ library(AirFireWRF) setWRFDataDir("~/Data/WRF") modelRun <- wrf_latestModelRun("PNW-4km") filePath <- wrf_download("PNW-4km", modelRun, 7)
#> WRF model run exists at: /Users/jonathan/Data/WRF/PNW-4km_2020110312_07.nc
wrf_downloaded()
#> [1] "PNW-1.33km_2020091400_11.nc" "PNW-4km_2020082500_11.nc" #> [3] "PNW-4km_2020082612_09.nc" "PNW-4km_2020083100_07.nc" #> [5] "PNW-4km_2020083112_07.nc" "PNW-4km_2020090412_07.nc" #> [7] "PNW-4km_2020091400_11.nc" "PNW-4km_2020091400_12.nc" #> [9] "PNW-4km_2020091412_07.nc" "PNW-4km_2020092112_07.nc" #> [11] "PNW-4km_2020110312_07.nc"
# }