The Perez option in `total_irrad` does not work due to the fact that the airmass keyword argument was changed in the last release.