The sun is the primary energy source for Earth's climate system. It emits radiation isotropically that decreases with the inverse square of distance. At the top of the atmosphere, the solar irradiance is approximately 1361 W/m^2. The atmosphere absorbs and transmits parts of the solar spectrum. Earth's climate is maintained by a balance between absorbed solar radiation and outgoing terrestrial radiation. There are spatial and seasonal variations in this energy budget due to Earth's orbit and tilt.