The sun is usually assumed to be approximately very close to a blackbody, but using spectroscopy it is concluded that the sun is made up of Hydrogen and Helium because the lines corresponding to those elements can be seen in the spectrum. If the sun is a blackbody shouldn't the peak of the spectrum be determined by Planck's law? If so how can we conclude that the sun is made of Helium and Hydrogen?
If those are the only lines visible how can we conclude that the sun is approximately a blackbody?
Edit: My question is not about why it can behave as blackbody, I was trying to understand this: How can it simultaneously behave as blackbody radiation, where the peak is dependent on temperature and at the same time spectroscopically tell us about it's composition where the peaks are dependent on the emmission spectra of its constituents
My question is not about why it can behave as blackbody, I was trying to understand this: How can it simultaneously behave as blackbody radiation, where the peak is dependent on temperature and at the same time spectroscopically tell us about it's composition where the peaks are dependent on the emmission spectra of its constituents.