Earth's climate as a problem in physics