VAST_mesh | R Documentation |
Create the input grid and the mesh based on the survey and format all objects as needed for VASTWestCoast.
VAST_mesh(
data,
survey,
savedir = getwd(),
numknots,
range.depth = c(-35, -Inf),
range.lat = c(-Inf, Inf)
)
data |
A data frame extracted from the NWFSC data warehouse using get_data. These points will be used as starting locations for the knot locations in the final mesh. Locations do not need to be positive tows, and all tow locations can be included, which is the default. |
survey |
A character value supplying the survey name.
The value is typically an acronym.
See |
savedir |
A file path to the directory where the results will be saved. The default is the current working directory. The path can be relative or absolute. |
numknots |
The desired number of knots to have in the resulting mesh.
This will be approximate because the distance between points used for knots
will be used to solve to the ideal number of knots using a while loop.
Thus, expect the resulting number of knots to be within plus or minus five
percent of this input value. See |
range.depth |
A vector of two numeric values specifying the range of
depth values of interest. Values must be in meters and negative values
represent those below sea level and positive values are assumed to be
above sea level. The first entry is the shallow value and the second
entry is the deeper cutoff. The default value is
|
range.lat |
A vector of two numeric values specifying the range of
latitude values of interest. Values must be in decimal degrees.
The first entry is the smaller value, i.e., southern border, and the second
entry is the larger value, i.e., northern border. The default value is
|
A list with two elements is returned, the first is a input grid
for "extrapolation_args"
and the second is an anisotropic
INLA triangulation mesh for "spatial_args"
. Each of these list
elements are also plotted and the plots are saved in savedir
.
Kelli F. Johnson
See get_inputgrid, get_mesh, plot.inputgrid, and plot.mesh.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.