Theory
A discussion of relevant theory on balanced motion and the thermal wind equation can be found in the following notes:
- Hydrostatic balance: Section 3.2 and 3.3 here.
- Geostrophic balance: Section 7.1 here.
- Thermal wind relation: See here.
- Potential temperature: See here.
- Margules relation: Section 7.3 here.