If A-team sources are significantly far, do what we are doing now. Else go to next point.
Locate peak within the box and shrink the subtraction box till it reaches 30arcminutes or when all 4 corners of the box is above some threshold distance from solar centre. Values inside this box is used for subtraction.
All points within 1 degree radii from Sun is set to 0. This is done in an approximate manner, as I do not use the fact that the coordinate system is spherical, not euclidean. What this means that we ignore a larger area from the Sun as the solar elevation decreases. At noon, the distance is almost equal to 1 degree.
Implemented following: