View source: R/setup_seafloor.R
setup_seafloor | R Documentation |
Setup seafloor for model run.
setup_seafloor(
dimensions,
grain = 1,
reef = NULL,
starting_values,
random = 0,
verbose = TRUE
)
dimensions |
Vector with number of rows and columns (spatial dimensions). |
grain |
Double with size of cells in x- and y-direction (spatial grain). |
reef |
2-Column matrix with coordinates of artificial reefs. |
starting_values |
List with all starting value parameters. |
random |
Numeric to randomize input values. |
verbose |
If TRUE, progress reports are printed. |
Function to setup the seafloor. The center of the seafloor raster is always x,y (0,0). bg_biomass and ag_biomass values are in g dry weight. nutrients_pool and deritus_pool values are in g nutrients. If reef cells are present, the cells in the corresponding raster layer are idntified usinge the value one.
If random > 0
, the stochasticity is added to all starting values using
x * (1 +- random)
as minimum and maximum values, respectively.
data.frame
reef <- matrix(data = c(-1, 0, 0, 1, 1, 0, 0, -1, 0, 0),
ncol = 2, byrow = TRUE)
seafloor <- setup_seafloor(dimensions = c(50, 50), grain = 1,
reef = reef, starting_values = default_starting)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.