preprocess the annual totals (maybe move this file out of ‘examples’
later)