Skip to contents

Setup seafloor for model run.

Usage

setup_seafloor(
  dimensions,
  grain = 1,
  reef = NULL,
  starting_values,
  random = 0,
  verbose = TRUE
)

Arguments

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.

Value

data.frame

Details

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.

Examples

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)
#> > ...Creating seafloor with 50 rows x 50 cols...
#> > ...Creating 5 artifical reef cell(s)...