Here's why:
* Atomic Emission Spectra are Unique: The emission spectrum of an element is determined by the energy levels of its electrons. These energy levels are intrinsic to the element's atomic structure and remain constant regardless of the atom's location.
* Sodium is Sodium: Whether a sodium atom is on Earth or in the Sun, its atomic structure is the same. The electrons will occupy the same energy levels and will transition between them in the same way when excited.
Therefore, the characteristic yellow lines produced by excited sodium atoms in an emission spectrum will be identical whether observed from Earth or the Sun.
Important Note: While the emission spectra would be the same, the intensity of the lines might differ. This is because factors like temperature and pressure can influence the population of excited states in the atoms.