convertOSCURStoTbl: Collates sets of OSCURS model output to a list with a...

View source: R/convertOSCURStoTbl.R

convertOSCURStoTblR Documentation

Collates sets of OSCURS model output to a list with a data.frame and a spatial tibble of type sf

Description

A function to collate sets of OSCURS model output created using runOSCURS to a list with a data.frame and a spatial tibble of type sf.

Usage

convertOSCURStoTbl(
  fnBase = "./OSCURS_",
  stYrs = 2017,
  stMDs = list(APR = 15, MAY = c(1, 15), JUN = 1),
  stLLs = NULL,
  verbose = FALSE
)

Arguments

fnBase
  • base for OSCURS output filenames to process (default = "./OSCURS_")

stYrs
  • start years for OSCURS files (vector)

stMDs
  • start months/days for OSCURS files (list)

stLLs
  • a dataframe with starting locations for particle releases

verbose
  • flag to print diagnostic output

Details

Requires packages magrittr and sf. Note that the coordinate reference system assigned to tbl.track is WGS84, with longitude running -180 to 180 (EPSG=4326).

Value

list with elements "dfr" (a dataframe) and "tracks" (a spatial tibble using sf line geometry classes)


wStockhausen/rOSCURS documentation built on April 29, 2023, 5:51 a.m.