Skip to contents

For each species, returns the rate at which biomass is produced by all individuals of that species. This includes both somatic and gonadic production, which can be obtained individually with getSomaticProduction() and getGonadicProduction(). This differs from the Ecopath definition of production, see getProduction().

Usage

getTotalProduction(params, ...)

Arguments

params

A MizerParams object

...

Arguments passed on to mizer::get_size_range_array

min_w

Smallest weight in size range. Defaults to smallest weight in the model.

max_w

Largest weight in size range. Defaults to largest weight in the model.

min_l

Smallest length in size range. If supplied, this takes precedence over min_w.

max_l

Largest length in size range. If supplied, this takes precedence over max_w.

Value

A named vector of gonadic production for each species

Details

Used by matchConsumption() to calculate how much assimilated energy is left over after production, in order to estimate the required metabolic loss.

Examples

getTotalProduction(NS_params)
#>        Sprat      Sandeel       N.pout      Herring          Dab      Whiting 
#> 5.965439e+11 8.717916e+12 1.884317e+12 2.364080e+12 1.960157e+10 3.861545e+11 
#>         Sole      Gurnard       Plaice      Haddock          Cod       Saithe 
#> 1.305597e+11 1.392209e+11 2.625057e+12 9.289124e+11 6.161688e+11 5.797743e+11