doOSCURS | R Documentation |
Function to run OSCURS and plot results.
doOSCURS(
fnBase = "OSCURS_",
path = ".",
nDays = 90,
stYrs = 2017,
stMDs = list(APR = 15),
fnStartLocs = "OSCURS_StartLocations.csv",
wcsc = 1,
wad = 0,
gsf = 1,
link = "https://oceanview.pfeg.noaa.gov/oscurs/runOscurs9.php?",
randNum = round(stats::runif(1, 1, 1e+05)),
strCRS = tmaptools::get_proj4(3338, output = "character"),
basemap = wtsGIS::createBaseTMap(layer.land = wtsGIS::getPackagedLayer("Alaska"),
layer.bathym = wtsGIS::getPackagedLayer("ShelfBathymetry"), strCRS.finl = strCRS),
alpha = 1,
showMap = TRUE,
verbose = FALSE
)
fnBase |
|
path |
|
nDays |
|
stYrs |
|
stMDs |
|
fnStartLocs |
|
wcsc |
|
wad |
|
gsf |
|
link |
|
randNum |
|
strCRS |
|
basemap |
|
alpha |
|
showMap |
|
verbose |
|
Requires packages readr
, tmaptools
, wtsGIS
.
The returned list has the following elements:
map - a tmap object
tracks - a sf tibble with tracks that span the IDL to "roll your own" map
startLocs - a sf tibble with starting track locations as points to "roll your own" map
basemap - a basemap to "roll your own" map
same list as plotOSCURS
(see @details).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.