At large scales, the air pressure and density depend essentially on the massive and slowly varying dry component and are well described by hydrostatic equilibrium. The air temperature, as we have seen, depends significantly on the abundance and distribution of water, CO2 (and O3 for the stratosphere).
At equilibrium:
Let us first consider a relatively small change in altitude:
km,
; we find Laplace's hydrostatic formula:
For larger altitudes, from Eq.8.8
dh = -dT'/b, then Eq.8.9 yields
Although the above equations represent fairly well the density and pressure throughout the troposphere, the temperature distribution can depart significantly from Eq.8.9 near the ground. This latter heats up faster than the transparent air during the day, and cools off more rapidly during the night. The temperature gradient at low altitudes (up to 1-2 km) can be thus steeper or shallower than shown in Eq.8.9. Occasionally, it can be inverted, the temperature increasing with altitude. The inversion layer usually stops briskly at 1 or 2 km altitude and the normal temperature gradient resumes above. Inversion layers are common during the night over bare land. They can also be caused by hot winds blowing from the sea.
The local temperature gradient determines stability of the air to vertical motions.
A rising bubble of wet air expands adiabatically as long as the water vapor it
contains does not condense. Expanding, it cools almost as an ideal gas with: