Slightly modified version from Ville's
Merge https://github.com/ginaschmalzle/tohoku_eq