Scientists have developed an algorithm called Astroclimes, which transforms stargazing instruments into climate sensors that measure greenhouse gases in Earth's atmosphere.