Area-preserving diffeomorphisms and the stability of the atmosphere