upper atmospheric thermodynamics