Phosphorus removal by chemical precipitation in a biological aerated filter