Text this: Applying the Action Principle of Classical Mechanics to the Thermodynamics of the Troposphere