Skip to contents

Set up the data input file to be passed to MakeADFun.

Usage

get_data_v1(data_in)

Arguments

data_in

A list containing the raw data inputs, including catch data, biological parameters, survey indices, and model configuration settings. The historical source tables can be supplied explicitly as length_mean, length_sd, catch, catch_UA, POPs_v1 (or POPs), HSPs, GTs, aerial_survey, aerial_cov, troll, cpue, age_freq, length_freq, tag_reporting, tag_releases, and tag_recaptures. Assessment source tables are not bundled with sbt; every table must be supplied explicitly.

Value

A list ready to be passed to MakeADFun. Contains validated and processed data including model dimensions, processed catch matrices, biological parameters, and observation data from multiple sources (CPUE, tagging, age-frequency, length-frequency, aerial surveys, etc.).

Details

This function runs data cross-validation tests and appends several inputs to the data list including model dimensions and processed inputs:

  • n_year: derived from first_yr and last_yr

  • n_season: set to 2

  • n_length: not in use

  • n_age: derived from min_age and max_age

  • n_fishery: set to 6

  • age_a: sequence of modeled ages derived from min_age and max_age

  • length_mu_ysa: derived from the length_mean input

  • length_sd_a: derived from the length_sd input

  • dl_yal: derived from length_mu_ysa and length_sd_a

  • weight_fya: derived from length_mu_ysa and length_sd_a

  • catch_obs_ysf: derived from catch, catch_UA, scenarios_LL1, and scenarios_surf

  • sel_change_year_fy: derived from sel_change_sd_fy

This function produces the data input file to be passed to MakeADFun.

Legacy status

These functions reproduce historical version-1 assessment code for audit and comparison. They are not the production SBT objective, do not implement the current data, mortality, harvest-wall, or biological-state contracts, and receive only compatibility maintenance. New analyses should use get_data(), sbt_model(), and the current component helpers.