In steep, rugged country, thermal air currents greatly affect wind direction. At sunrise, thermals are going downhill, but when the sun warms a slope, the heated air will begin to rise. This causes the thermals to switch, usually at midmorning. The new uphill flow continues until evening shadows or heavy clouds cool the earth. The lower temperatures send thermals flowing downward once again.