Skip to contents

produces an age by length bins matrix with probability of being in length bin at age

Usage

generate_length_at_age_key(
  min_age,
  max_age,
  cv,
  k,
  linf,
  t0,
  time_step = 1,
  linf_buffer = 10
)

Arguments

min_age

minimum age tracked in the model. Best to leave at 0, as the model does not explicitly track delays for recruitment

max_age

maximum age tracked by the model (individuals this age or older are tracked in the plus group)

cv

the coefficient of variation of the length-at-age relationship (log-space)

k

the

linf

asymptotic length of the species in a von Bertalanffy growth function

t0

hypothetical age at which the fish would have length 0 (e.g. -0.5 years)

time_step

the time step the model is running on (1 / seasons)

linf_buffer

multiplier around linf to create length at age key, taking into account that some fish will be larger than Linf

Value

a length-at-age key