Impurities are removed from field gas before carbon dioxide is injected underground to produce more oil at a tertiary recovery site.