In one of Lorenz’s paper (I mean the meteorologists Edward Lorenz), he stated that the total potential energy of the whole atmosphere $P + I$ (means the sum of potential energy and internal energy) is
\begin{equation} P + I = c_p p_{00}^{-x} \int p^x \Theta dM \end{equation}
where $p$ is pressure, $p_{00}$ is a standard pressure, and $x$ is the ratio $(c_p - c_v)/c_p$, $c_v$ and $c_p$ are the specific heats of air,$\Theta$ is the temperature and M is the mass.
Based on my knowledge, the internal energy should be a simple form that \begin{equation} I = \int c_v T dM \end{equation} and the potential energy is actually the gravitational potential energy, which is \begin{equation} P = \int g h dM \end{equation}
where $g$ is the gravitational acceleration and $h$ is the height. So my question is how did Lorenz derived his form of the total potential energy of the atmosphere? The original paper is Energy and numerical weather predictionLorenz 1960, and this equation was the first equation in the paper.