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

...

Any other argument to be passed to r4ss::SS_output

birthseas

Birth seasons for this stock, defaults to spawnseas

name

Name of the output object to fil the name slot

desc

Description of the output object to fill the desc slot

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 March 20, 2024, 4:18 a.m.