As world leaders prepare to meet in Copenhagen to discuss climate change - how did the Earth's climate arrive at its current state and how do scientists delve into the secrets of our planet's past?
The layers of ice laid down each year in Antarctica and Greenland store a record of the Earth's climate. Bubbles of air trapped in the ice as it froze can be analysed to give details on temperature at the time it froze, and on atmospheric concentrations of gases.
The oldest ice core so far extracted belongs to the European Project for Ice Coring in Antarctica (Epica). It allows scientists to look back 800,000 years.
Over time, the Earth's orbit around the Sun varies slightly.
This changes the amount of solar energy reaching the Earth's surface, alternately warming and cooling the planet's surface.
In a warming phase, greenhouse gases such as carbon dioxide are released and amplify the warming - increasing the natural greenhouse effect. They are stored again when an ice age starts.
So over this period, we see temperature and carbon dioxide concentrations changing in step, in cycles lasting about 100,000 years.
About 10,000 years ago, the Earth emerged from its most recent ice age. Agriculture developed, and the extra food supported a growing global population.
The last 1,000 years saw development of international trade - and eventually, in the 1700s, the birth of the Industrial Revolution. This ran largely on coal and later, oil.
The human population was also growing, reaching one billion around the start of the 19th Century.
By this time, a growing network of weather stations was taking daily measurements of temperature, a record that increases in precision as time goes on.
In the 20th Century, fuel use, industry, land clearance and agriculture all increased atmospheric concentrations of CO2 and other greenhouse gases.
The temperature curve for the last 100 years shows two distinct periods of warming with an intervening period of cooling around 1940, probably caused by increased industrial emissions of aerosols, tiny particles that reflect sunlight.
In the second half of the century, highly accurate measurements, taken initially in Hawaii and Antarctica, proved that carbon dioxide concentrations were steadily rising in a regular manner. Other greenhouse gases such as methane showed similar trends.
The Intergovernmental Panel on Climate Change (IPCC) concludes it is more than 90% probable that the warming seen in the second half of the 20th Century is mainly driven by human emissions of greenhouse gases.
Click here to see the change in the co2 Change in level of co2
For the time period covering the last 1,500 years the CO2 record is from the Law Dome ice core, again in Antarctica. McFarling Meure et al, 2006 is the source. For the past 60 or so years the CO2 source is the readings taken at Mauna Loa by the NOAA.