How is the atmosphere heated?