Convenient access from R to FVCOM NECOFS ocean physics model.

Requirements

Installation

devtools::install_github("BigelowLab/locate")
devtools::install_github("BigelowLab/fvcom")
devtools::install_github("BigelowLab/necofs")

Data Access

suppressPackageStartupMessages({
  library(necofs)
})

X <- NECOFSPhysics() # optional arguments, too - see ?NECOFSPhysics
X

Track a point

# We have already prepared an example track to save time
#p0 <- X$random_points(n = 1)
#pt <- particle_track(X, P0 = p0,  tstep = 60*20, tmax = (24*3600) * 7) 
pt <- example_track()
p0 <- pt |> dplyr::slice(1)
pt
plot_track(pt, X = X)
plot_track(pt, X = X, ext = X$M)


BigelowLab/necofs documentation built on Jan. 7, 2022, 11:59 a.m.