Quasiperiodic oscillations in the atmospheres of the Sun, Earth, and planets