The gas trapped between ice crystals offers a sample of the ancient atmosphere, and we can use it to determine what the concentrations of greenhouse gases such as carbon dioxide and methane were long before human beings measured the atmosphere directly.