Irregularities in the general pattern described above can be caused by mountains and coastlines. Here, the air cools as it rises, allowing water to condense and fall as rain.