Internal salmonMSE functions for converting operating model inputs and outputs
Source:R/Harvest_MMP.R
, R/MMSE2SMSE.R
, R/SOM2MOM.R
, and 2 more
salmonMSE-int.Rd
SOM2MOM()
converts a salmon operating model (SOM) to a multi-stock operating model (MOM)make_Stock()
creates the Stock object (openMSE) corresponding to salmon life stagemake_Fleet()
creates the Fleet object (openMSE) corresponding to the fishery that interacts with the various salmon life stagesmultiHist2SHist()
converts the openMSE historical reconstruction into a salmon Hist object (SHist)MMSE2SMSE()
converts the openMSE projection output, along with additional state variables recorded in salmonMSE_env, into a salmon MSE object (SMSE)make_Harvest_MMP()
creates a multi-stock management procedure for the harvest component of the operating model by specifying exploitation rates through updating the formal arguments forHarvest_MMP()
salmonMSE()
is the wrapper function that coordinates the simulation and the output.
Usage
make_Harvest_MMP(SOM, check = TRUE)
MMSE2SMSE(MMSE, SOM, Harvest_MMP, N, Ford, state)
SOM2MOM(SOM, check = TRUE)
make_Stock(
SOM,
s = 1,
NOS = TRUE,
stage = c("immature", "return", "escapement")
)
make_Fleet(SOM, s, NOS = TRUE, stage = c("immature", "return", "escapement"))
multiHist2SHist(multiHist, SOM, check = TRUE)
Arguments
- SOM
An object of class SOM
- check
Logical, whether to check the
SOM
object usingcheck_SOM()
- MMSE
Object of class MMSE returned from MSEtool
- Harvest_MMP
Optional harvest function created by
make_Harvest_MMP()
- N
Data frame of abundance at age saved in the salmonMSE_env environment during the simulation
- Ford
Data frame of phenotypic trait values saved in the salmonMSE_env environment during the simulation
- state
Data frame of state variables saved in the salmonMSE_env environment during the simulation
- s
Logical, the population number for which to create the Stock or Fleet object
- NOS
Logical, whether the Stock or Fleet object corresponds to natural origin or hatchery origin fish
- stage
Character indicating the corresponding salmon life stage of the Stock or Fleet object
- multiHist
Class multiHist object returned from MSEtool
Value
make_Harvest_MMP
: Function of class "MMP" by updating the formal arguments for Harvest_MMP()
MMSE2SMSE
: SMSE object
SOM2MOM
: MOM object
make_Stock
: List containing a Stock object and accompanying custom parameters list
make_Stock
: List containing a Fleet object and accompanying custom parameters list
multiHist2SHist
: SHist object