Heating of Earthís surface and atmosphere by the sun drives convection within the atmosphere and oceans, producing winds and ocean currents.