Determination of the cosmic abundance of elements has a history dating back to early spectroscopic measurements of light from astronomical objects and the identification of emission and absorption lines which corresponded to particular electronic transitions in chemical elements identified on Earth.
Computing relative abundances was achieved through corresponding spectroscopic observations to measurements of the elemental composition of meteorites.