Closed willbutler42 closed 1 year ago
A little secret: g3a_abundancedistribution
and g3a_catchdistribution
are actually the same function:-
The only difference is whether you provide fleets or not:-
So using g3a_catchdistribution
in the above should do exactly what you want. I guess this then makes somewhat non-obvious code, since it's not really catch at all. However, I think this started when we had a survey "fleet".
Maybe what needs to be done here is adding some kind of transform option for g3a_abundancedistribution() to do the work that the survey fleet is currently doing, so you don't need that fleet.
Ah, sorry should have checked the code a bit more thoroughly! Its working as anticipated now.
Providing a fleet to
g3l_abundancedistribution
currently leads to an error. However, a fleet can be set up to 'catch' an index of abundance in which case providing a fleet tog3a_abundancedistribution
would be required for the comparison with data. For instance, comparing cpue data against the consumption of aneffortfleet
that catches a very small amount of the total biomass each time step:and
g3a_abundancedistribution(..., fleets = list(survey), ...)