Functional Data Analysis on Spectroscopic Data