gen_packaging_stats.pl - Generates aggregated data about the packaging components of products for a specific category in a specific country
Aggregation counts are stored in a structure of the form:
{ countries => { "en:world" => .. "en:france" => { categories => { "all" => .. # stats for all categories "en:yogourts" => { shapes => { "en:unknown" => .. "all" => .. # stats for all shapes "en:bottle" => { materials_parents => .. # stats for parents materials (e.g. PET will also count for plastic) materials => { "all" => .. "en:plastic" => 12, # number of products sold in France that are yogurts and that have a plastic bottle packaging component } }, .. } }, .. } }, .. } }