Skip to contents

Obtain the mean weight (tonnes per fish) at age for each fishery each year. This assessment-specific helper is normally called by get_data().

Usage

get_weight_at_age(length_mu_ysa, length_sd_a)

Arguments

length_mu_ysa

A numeric array with dimensions \[year, season, age\] containing the mean length (cm) at age for each year and season. Can be generated using get_length_at_age.

length_sd_a

A numeric vector containing the standard deviation of length at age. Length must equal the number of age classes.

Value

A numeric array of mean weight in tonnes per fish, with dimensions fishery by year by age.

Details

The calculation is specialized to six fisheries and two seasons. LL4 and Indonesian weights copy the LL3 series, while the Australian surface series uses the fourth configured length-weight relationship.

Examples

data <- sbt_example_data()
weight_fya <- get_weight_at_age(
  length_mu_ysa = data$length_mu_ysa,
  length_sd_a = data$length_sd_a
)