The wind at 5,000 feet AGL is southwesterly while the surface wind is southerly. This difference in direction is primarily due to