readFLSss3: A function to read SS3 results as an FLStock object

View source: R/read.R

readFLSss3R Documentation

A function to read SS3 results as an FLStock object

Description

Results of a run of the Stock Synthesis sofware, SS3 (Methot & Wetzel, 2013), can be loaded into an object of class FLStock. The code makes use of the r4ss::SS_output function to obtain a list from Report.sso. The following elements of that list are used to generate the necessary information for the slots in FLStock: "catage", "natage", "ageselex", "endgrowth", "catch_units", "nsexes", "nseasons", "nareas", "IsFishFleet", "fleet_ID", "FleetNames", "spawnseas", "inputs" and "SS_version".

Usage

readFLSss3(
  dir,
  repfile = "Report.sso",
  compfile = "CompReport.sso",
  wtatage = out$wtatage_switch,
  ...
)

Arguments

dir

Directory holding the SS3 output files

repfile

SS3 Report.sso file

compfile

SS3 CompReport.sso file

wtatage

Is a wtatage.ss being usee? Logical

...

Any other argument to be passed to r4ss::SS_output

Value

An object of class ⁠\link{FLStock}⁠

Author(s)

The FLR Team

References

Methot RD Jr, Wetzel CR (2013) Stock Synthesis: A biological and statistical framework for fish stock assessment and fishery management. Fisheries Research 142: 86-99.

See Also

FLComp


flr/ss3om documentation built on Feb. 1, 2025, 9:35 p.m.