Definition question: continuum-subtracted spectrum What is the exact definition of a "continuum-subtracted spectrum", such that one finds in SDSS spectra? 

http://classic.sdss.org/dr7/dm/flatFiles/spSpec.html#specmask

Is there a definition somewhere? Thanks
A spectrum of, say, a star or a galaxy, consists of wavelengths emitted from various physical processes. In the case of the star, there is the blackbody spectrum that reflects the temperature of all of its gas, whether it is hydrogen, helium, or metals. On top of this, there are lines, i.e. emission from certain atomic transitions that are excited and then de-excite emitting photons in a very narrow wavelength interval. The blackbody spectrum is said to comprise the continuum of the total spectrum.

In the case of galaxies, the continuum consists of the combined spectrum of many different stars' different blackbody spectra, infrared light from dust, etc. On top of this, there are lines, e.g. from nebular processes such as my favorite line Lyman $\alpha$, which is emitted when hard UV radiation from hot O and B stars ionize their surrounding neutral hydrogen, which subsequently recombines emitting mostly Lyman $\alpha$.

If we want to measure the total flux in a given line, we are usually only interested in the flux that comes from a particular physical process, and not the part of the flux that comes from the "underlying" sources which contribute to the continuum. Hence, we need to subtract the continuum. This is usually done by fitting some functional form to the continuum (e.g. a straight line or a second order polynomial), substract this fit from the spectrum, and finally integrate from one side of the line to the other in the resulting "continuum-subtracted spectrum".

In the top figure below, the total spectrum's flux density$^\dagger$ is in black, and the fit is the red lines. Underneath is drawn the continuum-subtracted spectrum, and a few dashed green lines show some lines that rise above the continuum. The integrated line flux is indicated by light red.



$^\dagger$Note that many authors use the term "flux" where it should actually be "flux density". Integrating flux density in $\mathrm{erg}\,\mathrm{s}^{-1}\,\mathrm{cm}^{-2}\,\mathrm{Å}^{-1}$ over wavelength in Å$^{-1}$ gives flux in $\mathrm{erg}\,\mathrm{s}^{-1}\,\mathrm{cm}^{-2}$.