ClimateFIR customize agg for apriori

Customize Apriori

Current status: When applying ClimateFIR, apriori is calculated always on means (e.g. monthly mean).

IDEA: As especially for chemicals the span of values might spread a lot, one could consider to use the more robust median to replace the average. As can be seen in the example, the estimate is not that good.

example_mean_median

In the next example, one can see that in some cases the median is much lower than the mean and very close to the lower percentile. This indicates, that some "bigger" values increase the mean while in most cases concentration is low.

JANUARY example_percentile

In summer, there is less this issue:

AUGUST example_percentile_aug

TODOs

  • be able to use given statistic (from mean, median, maybe think about quantiles)