Replaces the historical landings and CPUE index data in a Hist object
(from MSEtool::Simulate()) with the updated observations returned by
ProcessNewData().
Arguments
- Hist
A
Histobject returned byMSEtool::Simulate().- plot
Logical. If
TRUE, plots comparing the conditioned and updated data are saved tofigures/data/:catch_seasonal_fleet.pngSeasonal catch by fleet.
catch_annual_fleet.pngAnnual catch by fleet.
catch_annual_overall.pngAnnual total catch.
index_seasonal.pngSeasonal CPUE index by fleet, standardized to the mean over the conditioned years.
index_annual_mean.pngAnnual mean of the standardized CPUE index by fleet.
Details
This must be called after the observation model (Obs) has been
populated in MSEtool::Simulate() using the catch and index data that
were used in conditioning. Otherwise the differences between the
conditioned and updated data would be interpreted as observation error
in the observed catches.
The data are replaced in both the OM data (Hist@OM@Data) and the
simulated data (Hist@Data) for the combined stock.
If the fleets of the OM have been combined with MSEtool::CombineFleets(),
the new landings are summed over fleets, and the CPUE indices, which
MSEtool::CombineFleets() moves to the Survey slot, are replaced there.