Paleoclimatology studies past climates using various proxy records such as glacial deposits, fossils, tree rings, coral reefs, and rock and sediment layers. These proxies provide clues about past climate conditions like temperature and precipitation. Ice cores contain air bubbles that reveal the levels of greenhouse gases in the atmosphere from different time periods. Tree rings and coral reefs also indicate year-to-year climate variations. Together these proxy records allow scientists to predict climate patterns dating back hundreds of thousands of years.