NOVELTY - Removing methane from biogas involves: receiving biogas including methane and other components into a first tank (102); receiving water into the first tank; contacting the biogas with the water inside the first tank; dispensing methane gas from an outlet of the first tank; and producing from the tank an effluent stream that includes other components of the biogas.    USE - For removing methane from biogas and for treating wastewater (claimed).    ADVANTAGE - The present methods process noxious byproducts of anaerobic and aerobic digestion byproducts to generate clean energy and promote production of useful downstream products, while a conventional wastewater treatment processes release noxious byproducts of anaerobic and aerobic digestion into the atmosphere, some of which are believed to contribute to the greenhouse effect. As a result, conventional wastewater treatment processes fail to recognize, among other things, that a portion of the treated water can be used to convert byproducts of wastewater treatment into clean energy. The present system provides a substantially closed system that treats wastewater and recycles a portion of that treated wastewater to convert noxious byproducts of wastewater treatment into useful energy. If the closed system is implemented on a farm, then the wastewater generated at the farm can be treated and at the same time be used to produce clean energy for the farm. Unlike conventional solid sedimentation in the prior art, the present system does not require solids to fully settle to the bottom of the sedimentation removal tank to be trapped there. The sedimentation removal tank affects separation of residual solids by actively increasing the hydraulic flow path and providing physical impediments to particles for permanently trapping them. An increase in the hydraulic flow path allows for separating a greater amount of solids from wastewater. By reducing biochemical oxygen demand level and solid content and raising level of dissolved oxygen in wastewater, the present method promotes conditions for removal of organic matter in early stages and well before such removal is the primary focus during subsequent treatment.    DETAILED DESCRIPTION - Removing methane from biogas involves: receiving biogas including methane and other components into a first tank (102); receiving water into the first tank; contacting the biogas with the water inside the first tank; dispensing methane gas from an outlet of the first tank; and producing from the tank an effluent stream that includes other components of the biogas. The method further involves carrying out in a second tank (114) anaerobic digestion of water enriched with organic matter to produce the biogas. The organic matter in the water is 0.5-25 vol.%. The water is purified water which is obtained from a wastewater treatment facility. The contacting includes passing bubbles of biogas through the water. The method further involves sending the effluent stream from the tank to a diffused air flotation tank designed to effect removal of solids; sending the methane gas to an electrical generator that is designed to burn the methane gas and produce electrical energy. The water having dissolved in it at least one of CO2 gas, SOx gas and NOx gas is delivered to an algal pond. INDEPENDENT CLAIMS are included for the following:    (1) a system for removing byproducts of anaerobic digestion, comprising: a first tank including a first inlet that is connected to receive byproduct gases of anaerobic digestion including at least one gas and methane; a first outlet that provides methane gas as exhaust; a second inlet that is connected to receive a stream of water; and a second outlet that discharges an effluent water stream having dissolved in it at least one gas into a tank designed for removing solids; and an electrical generator that is connected to the first outlet of the first tank, where the first tank is designed to contact the stream of water with the byproduct gases of anaerobic digestion and produce the effluent stream of water having dissolved in it the gas;    (2) a system for wastewater treatment, comprising: a solids-removal subassembly designed to remove solids from wastewater and produce solids-depleted water; an assembly designed for processing organic material in the solids-depleted wastewater to produce treated water and the assembly connected to the solids-removal subassembly; and a tank having first inlet, first outlet, and second outlet, where the first inlet of the tank is designed to receive treated water, the first outlet is designed to discharge a first portion of treated water, the second outlet is designed to discharge a second portion of treated water, and the first portion of treated water is used for processing byproduct gases resulting from wastewater treatment; and    (3) treating wastewater involving: removing solids from wastewater to produce solids-depleted water; processing organic material in the solids-depleted wastewater to produce treated water; discharging a first portion of treated water and a second portion of treated water; and using the first portion of treated water to processes byproduct gases resulting from wastewater treatment.    DESCRIPTION OF DRAWING(S) - The figure shows a system for wastewater treatment.    Anaerobic tank (102)    Solids separator (104)    Diffused air flotation tank (106)    First sedimentation removal tank (108)    Biological chip reactors (110, 112)    Aerobic sludge digester tank (114)    Second sedimentation removal tank (116)    High rate algal pond (118)    Maturation pond (122)    Biogas (128)