Disclosed herein is the use of differences in x-ray linear absorption coefficients to process ore and remove elements with higher atomic number from elements with lower atomic numbers. Use of this dry method at the mine reduces pollution and transportation costs. One example of said invention is the ejection of inclusions with sulfur, silicates, mercury, arsenic and radioactive elements from coal. This reduces the amount and toxicity of coal ash. It also reduces air emissions and the energy required to clean stack gases from coal combustion. Removal of said ejected elements improves thermal efficiency and reduces the pollution and carbon footprint for electrical production.