Move the refraction calculations out of the skypoint.
Fix header