Nonlinear wave propagation through a stratified atmosphere