Anfonwch hwn fel neges destun: The quasi-geostrophic theory of the thermal shallow water equations