How does the atmosphere affect weather?