Compute and visualize the duration the sun is above a certain elevation angle for all latitudes and averaged over longitudes.
Adjust thresh_ele (indicates the angle above which the duration counts). thresh_ele >= 0: above horizon; thresh_ele < 0: below horizon
To balance computational efficiency or accuracy, set the arrays lats (array of latitudes) and lons (array of longitudes) with a higher or lower spacing. The time_resolution can also be used to balance accuracy or efficiency. However, I do not recommend to use time resolutions worse than 1 hour.