Skip to content

Commit

Permalink
appends biomass pools if they exist for surveys
Browse files Browse the repository at this point in the history
  • Loading branch information
sgaichas committed Oct 7, 2023
1 parent 1ea58bb commit 005d9c5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion R/om_index.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,16 @@ om_index <- function(usersurvey = usersurvey_file,
{
source(s, local = TRUE)

# add in biomass pools if they exist
if("truebiopool_ss" %in% names(omlist_ss)){
truebio_ss <- rbind(omlist_ss$truebio_ss, omlist_ss$truebiopool_ss)
}else{
truebio_ss <- omlist_ss$truebio_ss
}

#biomass based fishery independent survey index
# this uses result$biomass_ages to sample biomass directly, no need for wt@age est
survey_B <- atlantisom::create_survey(dat = omlist_ss$truebio_ss,
survey_B <- atlantisom::create_survey(dat = truebio_ss,
time = survtime,
species = survspp,
boxes = survboxes,
Expand Down

0 comments on commit 005d9c5

Please sign in to comment.