Megadrought on Earth affected gravity waves at the edge of space