Underground temperature and inferred climatic temperature of the past millenium