Skip to contents

Check that all parameters, inputs and settings are correct for the grow_macroalgae() function. Gives a report on what needs to be included. This is to avoid the main function slowing down to give endless warnings and messages.

Usage

check_grow(
  start,
  grow_days,
  temperature,
  salinity,
  light,
  velocity,
  nitrate,
  ammonium,
  other_N = NA,
  ni_uptake,
  am_uptake,
  ot_uptake = NA,
  site_params,
  spec_params,
  initials,
  sparse_output = T,
  track_limiting = T,
  other_constants = c(s = 0.0045, gam = 1.13, a2 = 0.2^2, Cb = 0.0025)
)

Arguments

start

numeric, start of the growth period (day of at-sea deployment). Defaults to 1.

grow_days

integer, number of day in growing period - if missing will take the length of the temperature vector

temperature

a vector of daily temperatures (C)

salinity

a vector of daily salt concentrations (g L-1)

light

a vector of surface light (umol m-2 s-1)

velocity

a vector of water velocities (m s-1)

nitrate

a vector of nitrate concentrations (mg m-3)

ammonium

a vector of ammonium concentrations (mg m-3)

other_N

a vector of other nitrogen concentrations (mg N m-3) - NOT IN USE

site_params

a named vector of species-specific parameters - see details

spec_params

a named vector of site-specific parameters - see details

initials

a named vector of the macroalgae starting conditions

sparse_output

logical, whether to include input vectors and other non-essential information in final dataframe (default = TRUE)

track_limiting

logical, whether to track a single "limiting" factor (see details)

other_constants

a named vector of miscellaneous constants (see u_c)

kd

a vector of light attenuation parameters (m-1)

Value

printout of potential errors with main function

Details

Example csv with all the spec_params & site_params required?

Examples