Data Processing Chemical State Spectra