Modelling and observation of the global thermal energy and water cycle of the atmosphere