Solar limb detection and correction