a gaseous component is extracted non - cryogenically from a feed gas containing condensable hydrocarbons . the feed gas is passed first through a module containing polymeric fibers useful for removing water vapor from the gas . the gas is then passed through a module containing polymeric fibers selected such that they remove some , but not all , of the carbon dioxide in the stream . the gas is then passed through a module containing polymeric fibers selected to remove at least some of the remaining carbon dioxide as well as heavy hydrocarbons , defined as c5 and heavier , from the stream . the invention is especially useful in processing raw methane taken from a well , and in producing methane which is relatively free of water vapor , carbon dioxide , and heavy hydrocarbons .