getZ: getZ method for the size based model

getZR Documentation

getZ method for the size based model

Description

Calculates the total mortality \mu_i(w) on each species by size from predation mortality (M2), background mortality (M) and fishing mortality for a single time step.

getZ method with m2 argument.

Usage

getZ(object, n, n_pp, effort, m2)

## S4 method for signature 'therMizerParams,matrix,numeric,numeric,matrix'
getZ(object, n, n_pp,
  effort, m2)

Arguments

object

A therMizerParams object.

n

A matrix of species abundance (species x size).

n_pp

A vector of the background abundance by size.

effort

A numeric vector of the effort by gear or a single numeric effort value which is used for all gears.

m2

A two dimensional array of predation mortality (optional). Has dimensions no. sp x no. size bins in the community. If not supplied is calculated using the getM2() method.

ocean_temp

A numeric vector of 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

getM2, getFMort

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 total mortality at a particular time step
getZ(params,sim@n[21,,],sim@n_pp[21,],effort=0.5)

## End(Not run)

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