The SS2MOM
function is used to import an operating model from SS3 output to an MOM
(multi-operating model) object in openMSE
. The MOM
object imports the predicted fishery dynamics for the stock(s) and fleet(s) in the SS3 model and reproduces them in the openMSE
framework.
The SS2MOM
function requires an argument specifying the location of the SS3 output:
SSdir <- 'C:/SS_examples/Simple_discard'
Then SS2MOM
is used to create the MOM
object from the SS3 output:
MOM <- SS2MOM(SSdir)
## -- Using function SS_output of package r4ss version 1.43.0 to extract
## data from SS file structure --
## Reading directory: G:/Shared drives/BM shared/4.
## Resources/9_SS_examples/Simple
## -- End of r4ss operations --
## 2 - sex and 1 - fleet model detected.
See ?SS2MOM
for details on additional optional arguments for the SS2MOM
function.
Simulate Multi-Stock, Multi-Fleet OM
The multi-stock/multi-fleet fishery can be simulated using the SimulateMOM
function:
multiHist <- SimulateMOM(MOM)
Compare MOM and SS3 Output
The fishery dynamics generated by the MOM
object can be compared to those predicted by the SS3 output with the plot_SS2MOM
function:
plot_SS2MOM(multiHist, SSdir)
This function generates a HTML report with plots of stock and fishery dynamics (e.g., numbers, biomass, catch) for each stock and fleet in the MOM
. For example, the MOM comparison report for the above example is available here.