Investigation of the interaction between gravity waves and the tropopause