correct the calculation of the SPHERE model data
Merge branch 'gradient'