@micheles, They are a general utility that can be used both by hazard and risk.

@larsbutler, I have moved the functions you have linked in ```openquake.calculators.post_processing` (without any modification). They are identical indeed.