Description Public fields Active bindings Methods
R6 base class
filename
character, path or URL
NC
ncdf4 object
M
sf table of mesh
t0
POSIXct timestamp identifying the start time
verbose
logical for helpful messaging
open_bounds
provides the indices for open boundary elements (open water)
closed_bounds
provides the indices for closed boundary elements (shore)
new()
NE_Physics$new( filename, origin = as.POSIXct("1858-11-17 00:00:00", tz = "UTC"), verbose = FALSE )
filename
character either a filename or OpenDAP URL
origin
POSIXct timestamp indicating the start of the experiment
verbose
logical for helpful messaging
crs
print()
Pretty print
NE_Physics$print()
get_crs()
Retrieve the CRS
NE_Physics$get_crs(form = c("proj", "wkt")[1])
form
character, one of 'proj', 'wkt'
CRS in the specified form
get_time()
retrieve the time relative to some epoch/origin
NE_Physics$get_time(origin = self$t0, ...)
origin
POSIXct the orogin of relative timestamps
...
other arguments for fvcom_time
random_points()
Retriev one or more random points
NE_Physics$random_points(n = 1, select_time = c("first", "last", "random")[1])
n
numeric, the number of points to generate
select_time
character, one of 'first' (default), 'last' or 'random'
sf object of class POINT
char_size()
find proxy for characteristic size based upon element size
NOTE if we update GEOS we could get size of inscribed circle
NE_Physics$char_size(what = c("min", "max", "square", "circle")[4])
what
character
min or square - side length of sqaure with equivalent area
max - side of square with double the area (or 1.4*sqrt(area))
circle - radius of circle with equivalent area
x
element mesh as sf
numeric characteristic size
mesh_metrics()
generate kinematics metrics for a given mesh
NE_Physics$mesh_metrics( ofile = file.path(dirname(self$filename), "mesh-elem-metrics.csv.gz") )
ofile
optional file to save to (as non-spatial CSV)
mesh (invisibly) with variables added including
max_u, max_v, max_w maximum velocity by element over all sigma in m/s
area element area in m^2
char_dim characteristic dimension, for now the radius of the circle with equivalent area in m
append_bounds()
append the boundary info to the mesh table
NE_Physics$append_bounds()
mesh invisibly with appended boundary variable where
open indicates the element is boundaed on at least one side by open water
closed indicates the element is bounded on at least one side by shoreline
internal indicated the element is not on the boundary
clone()
The objects of this class are cloneable with this method.
NE_Physics$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.