gadget-framework/gadget2

catchstatistic LH and yearly aggregation

vbartolino opened this issue · 2 comments

Is there a reason why CatchStatistics LH does not accept an argument 'aggregationlevel' to aggregate data over the year like for CatchDistribution LH?

Sometimes historical data on weight-at-age are only available on an annual basis in the ICES assessments and this functionality would be pretty useful.

bthe commented

None that I know of, @jmbegley do you remember this?

I can't think of any reason either ... I guess that the CatchDistribution likelihood component had a need for a yearly aggregation of the data at some point in the dim and distant past.

It shouldn't be too difficult to implement this, although care would be needed to ensure that the modelled population is aggregated over the year. It's simpler to aggregate the CatchDistribution data than it is to aggregate the modelled population and then calculate the statistics on that population.