An atmosphere is a layer of gasses that envelop an astronomical object, held in place by the gravity of the object. A planet retains an atmosphere when the gravity is great and the temperature of the atmosphere is low. A stellar atmosphere is the outer region of a star, which includes the layers above the opaque photosphere; stars of low temperature might have outer atmospheres containing compound molecules.
The atmospheric gases around Earth scatter blue light (shorter wavelengths) more than light toward the red end (longer wavelengths) of the visible spectrum; thus, a blue glow over the horizon is seen when observing Earth from outer space.
The atmosphere of Earth is the layer of gases, known collectively as air, retained by Earth's gravity that surrounds the planet and forms its planetary atmosphere. The atmosphere of Earth creates pressure, absorbs most meteoroids and ultraviolet solar radiation, warms the surface through heat retention, and reduces temperature extremes between day and night, maintaining conditions allowing life and liquid water to exist on the Earth's surface.
Blue light is scattered more than other wavelengths by the gases in the atmosphere, surrounding Earth in a visibly blue layer at the stratosphere, above the clouds of the troposphere, when seen from space on board the ISS at an altitude of 335 km (208 mi) (the Moon is visible as a crescent in the far background).
Afterglow of the troposphere (orange), the stratosphere (blue) and the mesosphere (dark) at which atmospheric entry begins, leaving smoke trails, such as in this case of a spacecraft reentry
A picture of Earth's troposphere with its different cloud types of low to high altitudes casting shadows. Sunlight is reflected off the ocean, after it was filtered into a redish light by passing through much of the troposphere at sunset. The above lying stratosphere can be seen at the horizon as a band of its characteristic glow of blue scattered sunlight.
Temperature trends in two thick layers of the atmosphere as measured between January 1979 and December 2005 by microwave sounding units and advanced microwave sounding units on NOAA weather satellites. The instruments record microwaves emitted from oxygen molecules in the atmosphere. Source: