getEGrowth: getEGrowth method for the size based model

getEGrowthR Documentation

getEGrowth method for the size based model

Description

Calculates the energy g_i(w) available by species and size for growth after metabolism, movement and reproduction have been accounted for. Used by the project_therMizer method for performing simulations.

getEGrowth method with e_spawning and e arguments.

Usage

getEGrowth(object, n, n_pp, e_spawning, e)

## S4 method for signature 'therMizerParams,matrix,numeric,matrix,matrix'
getEGrowth(object, n,
  n_pp, e_spawning, e)

Arguments

object

A therMizerParams object.

n

A matrix of species abundance (species x size).

n_pp

A vector of the background abundance by size.

e_spawning

The energy available for spawning (optional, although if specified, e must also be specified). A matrix of size no. species x no. size bins. If not supplied, is calculated internally using the getESpawning method.

e

The energy available for reproduction and growth (optional, although if specified, e_spawning must also be specified). A matrix of size no. species x no. size bins. If not supplied, is calculated internally using the getEReproAndGrowth method.

ocean_temp

A numeric vector of the ocean temperature by realm or a single numeric ocean_temp value which is used for all realms.

Value

A two dimensional array (prey species x prey size)

See Also

project_therMizer

Examples

## Not run: 
data(NS_species_params_gears)
data(inter)
params <- therMizerParams(NS_species_params_gears, inter)
# Project with constant fishing effort for all gears for 20 time steps
sim <- project_therMizer(params, t_max = 20, effort = 0.5)
# Get the energy at a particular time step
getEGrowth(params,sim@n[21,,],sim@n_pp[21,])

## End(Not run)

pwoodworth-jefcoats/Size-Based-Modeling documentation built on Sept. 15, 2023, 8:13 a.m.