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.

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.