LIGHT LAB / EXPERIMENT 02
Spectroscopy Lab
Read between the colors
A point of light can carry the signature of matter. Choose what emits it, put gas in its path, and watch the bright and missing wavelengths reveal a pattern.
Measure wavelengths with the Diffraction Grating Calculator
SOURCE / GAS / SPECTRUM
What reached the detector?
Start with hydrogen absorbing light from an idealized continuum. Then compare an emitting gas, combine fingerprints, or zoom in on sodium’s closely spaced pair.
The starting spectrum and line table are shown. Loading the controls…
Continuum light passes through selected foreground gas. Some wavelengths are reduced.
Optical arrangement is schematic. Colored spread is a wavelength guide, not a brightness prediction.The visible spectrum
380–750 nmThe curve carries intensity; the colored strip makes its distribution visible. Screen colors are schematic. Both plots use the same relative scale, recalculated when settings change.
LOOK CLOSER
One feature can hide another.
Choose a wavelength to inspect its relative intensity and the nearest selected line.
READ THE RESULT
Hydrogen absorbs selected wavelengths from the continuum. Dark lines are reduced arriving light, not black material on the star.
That setting is outside the model’s range. The last valid spectrum is retained.
SPECTROSCOPY / BUILD A STELLAR COLOR
The same temperature.
A different star color.
Change a white dwarf’s temperature and illustrative atmospheric absorption. The spectrum and color preview respond to the same calculation. Compare the light before and after absorption, then try removing the absorption without changing the temperature.
Teaching model: these are invented spectral filters, not measured stellar spectra or fitted white-dwarf atmospheres. The green example illustrates the mechanism behind WD J1330+6435; it does not reproduce that star’s exact color.
Predicted color from this model
- Filtered color
- yellow-green · #BDFF9A
- Visible light remaining*
- 50.9%
*Eye-weighted light relative to this continuum at the same temperature. Both disks are brightened independently to show hue; their sizes and shading are artistic, and neither disk shows a real star’s brightness.
Part of this calculated color lies outside sRGB. Negative display channels are clipped, so this screen preview is approximate.
Broad sodium absorption reduces yellow, orange and red light; calcium reduces violet light. The surviving balance can look green. These invented profiles illustrate the mechanism, not a fit to WD J1330+6435.
Starting model shown. Loading the color controls…
That setting is outside this model’s range. The last valid result is retained.
Why can green appear?
A thermal continuum mixes many wavelengths, so moving its peak into green does not make the whole star green. Broad absorption can change that mixture. In this example, sodium reduces the yellow-to-red region and calcium reduces violet light, allowing a greenish balance to remain. It is missing light changing the color, rather than a green paint applied to the star.
Try the green-star mechanism, then choose Remove absorption. The temperature remains 7,172.3 °F / 4,240 K, while the spectrum and color return toward the warm continuum. Raise the temperature in continuum-only mode to explore the familiar warm-to-white-to-blue sequence.
How is the preview calculated?
The model multiplies a Planck continuum by smooth illustrative absorption profiles, then integrates the resulting spectrum against the CIE 1931 standard observer from 360–830 nm. It converts those XYZ values to sRGB, normalizes the largest linear color channel, and applies the sRGB transfer function. The spectrum and disk therefore share one calculation.
Real atmospheres redistribute energy and require pressure, ionization and radiative-transfer calculations. These fixed filters do not track the removed energy, infer a real composition, reproduce the paper’s fitted spectra, or predict detailed limb darkening. Screen calibration and viewing conditions also affect the preview.
Sources, color data and model assumptions
Hollands and colleagues: Any colour you like connects observed and modeled white-dwarf spectra with perceived colors. Its detailed model gives WD J1330+6435 an effective temperature of 4,240 K; this panel uses that temperature as a teaching starting point, with invented absorption profiles rather than the paper’s spectrum. Read the University of Warwick explanation.
The atomic examples use rounded selected line positions from the NIST references below; widths and strengths are invented. Carbon-band locations and the broad sodium/calcium example are qualitative teaching profiles. The absorption multiplier changes optical depth through exp(−strength × profile), not element abundance. The continuum is normalized at 550 nm; both plotted curves share the continuum maximum. No dust, redshift, noise, or inferred stellar distances are included.
Color-matching data: CIE 2019, Colour-matching functions of CIE 1931 standard colorimetric observer, DOI 10.25039/CIE.DS.xvudnb9b, CC BY-SA 4.0. All 471 one-nanometer rows are preserved numerically and repackaged as a self-hosted JavaScript table. This data license applies to that table.

A spectrum separates received light by wavelength. Lines and the broad continuum provide different clues. This artist’s concept is not a calibrated spectrum; use the lab’s labeled wavelength plots and numerical references for measurements.
CHECK THIS RESULT / TEACHING METHOD 1.0
Can one line hide two?
Choose Resolve sodium below the spectrum. It sets emission mode, sodium only, the sodium detail window, 80% contrast and resolving power R = 6,000. Then choose Blend sodium, which changes R to 400. These presets use the same two reference wavelengths and illustrative line strengths. The broader feature does not mean that sodium lost one of its transitions.
What is real, and what is modeled? The sodium wavelengths come from NIST’s published neutral-sodium table. The curves are generated by this lab’s Gaussian teaching model. They are not a telescope observation, a measured lamp spectrum or a recovery of an unknown star’s composition. The intrinsic width, relative strengths and contrast are illustrative assumptions.
| Quantity | Reference result | How to repeat it |
|---|---|---|
| Sodium D₂ / D₁ | 588.9950 / 589.5924 nm | NIST lists 5889.950 / 5895.924 Å. Divide by 10 to convert Å to nm. |
| Line separation | 0.5974 nm | 589.5924 − 588.9950 |
| Midpoint wavelength | 589.2937 nm | (588.9950 + 589.5924) / 2 |
| Instrumental width at R = 400 | 1.47323 nm | 589.2937 / 400, wider than the separation. |
| Instrumental width at R = 6,000 | 0.09822 nm | 589.2937 / 6,000, narrower than the separation. |
| Combined model width | 1.48523 / 0.21245 nm | Gaussian instrumental width combines with an illustrative intrinsic σ = 0.08 nm. |
| Spacing comparison | R ≈ 986.4 | 589.2937 / 0.5974; a width-versus-spacing comparison, not a guaranteed resolution threshold. |
The model’s broad low-resolution curve has one sampled maximum near 589.215 nm; its high-resolution curve has two near 588.995 and 589.590 nm on the kit’s 0.005-nm grid. Those are maxima of the simulated blend, not separately measured atomic wavelengths. An unresolved peak can sit between the underlying components. Its position alone is not proof of a third transition or a Doppler shift.
Reproduce the widths and profiles
ESO’s Science Data Products Standard describes resolving power using wavelength and spectral width. In this lab, instrumental FWHM = λ/R and Gaussian σinstrument = λ/(2.354820045R). The model combines widths as σtotal = √(0.08² + σinstrument²), all in nm. Multiplying σtotal by 2.354820045 returns the combined FWHM. Use the midpoint for the comparison table; each actual model component uses its own central wavelength.
Each emission component contributes 0.8 × strength × 0.2 / (√(2π) × σ_total) × exp(−0.5 × ((λ − λ_line)/σ_total)²). The two illustrative strengths are 1 and 0.65; the model ignores contributions more than eight standard deviations from their centers. Sum both components. Its integrated emission is about 0.264 in the model’s relative-intensity × nm units at either R. This is not a calibrated energy or photon flux.
Mind the graph normalization: the lab rescales the visible/full-detail plots together for each setting. Raw model emission area is preserved when only R changes; screen heights and displayed areas across different presets need not match. Use the unnormalized profile CSV to test area preservation. Real detectability also depends on noise, sampling, line strengths, intrinsic broadening and instrumental response; R ≈ 986 is not a universal boundary.
Repeat it in a spreadsheet or with Python
For the arithmetic, compute =589.5924-588.9950, =(588.9950+589.5924)/2, then divide the midpoint by 400 and 6000. Use =2.354820045*SQRT(0.08^2+(589.2937/(2.354820045*R))^2) for combined width, replacing R with a cell reference containing resolving power.
Plot the kit’s simulated-sodium-profiles.csv: air wavelength on the horizontal axis, the two intensity columns on one common vertical scale. The 1,601 rows span 585–593 nm at 0.005-nm spacing. These are generated model samples, not observed intensity measurements. For a numerical area estimate, add (λ_next−λ_current) × (I_next+I_current)/2 between neighboring rows. The finite window and sample spacing introduce small numerical differences.
For a separate implementation, extract the kit and run python3 verify_analysis.py --data-dir . (Windows: py -3 verify_analysis.py --data-dir .). Python 3.9+ and its standard library are sufficient. The script checks the two reference rows, units, all 1,601 simulated profile rows, widths, maxima and area. Compare the output with worked-result.json. It runs offline and leaves the files unchanged.
FOR EDUCATORS / INDEPENDENT LEARNERS
Resolve Sodium’s Spectral Doublet.
Suggested use: ages 14+ through introductory college; allow 30–40 minutes. Learners need subtraction, division, unit conversions and a calculator. Square roots are used in the optional width extension. Use the browser lab or the paper plots; a spreadsheet or Python is optional. No account, submitted answers or student data collection is required.
The four-page packet puts two learner pages before two educator pages. The kit includes reference wavelengths, clearly labeled simulated profiles, calculations, an offline verification script and a copy of the lab’s model source. The tasks and answers below provide a text-first alternative. The curve comparison uses text labels and line patterns as well as color.
Learning goals
- Distinguish emission from absorption and explain why the same reference wavelengths can appear as bright or missing light.
- Convert wavelength units and calculate the separation of a close doublet.
- Compare resolving power with line width and explain why a single broad feature may contain multiple components.
- Separate published reference values, teaching assumptions and claims that would require actual observational evidence.
Investigation record
- Predict: before opening the answer notes, explain what could make two fixed transitions look like one feature.
- Compare: select Resolve sodium and Blend sodium. Record mode, gas, R, apparent peak count and one thing that remains fixed. The presets sit directly below the spectrum.
- Calculate: convert the NIST Å values to nm, find the 0.5974-nm separation and compare λ/R at 400 and 6,000. Explain why R ≈ 986 is only a comparison scale.
- Change the geometry: return to Resolve sodium, switch to Absorption, then Continuous. Explain the difference between selected reference wavelengths and features actually added to the continuum in each mode. The lab already knows which gas you chose.
- Defend a claim: use two numerical clues, one model assumption and one limitation. Describe a calibration or observation you would need before identifying sodium in an unknown star.
Educator notes and suggested answers
Suggested timing: prediction 5 minutes, preset comparison 8, arithmetic 7, emission/absorption/continuum comparison 8, evidence-based explanation 7; allow five more minutes for an extension. For a 30-minute paper lesson, use the supplied plots and widths.
Resolution answer: the wavelengths stay 588.9950 and 589.5924 nm in air, 0.5974 nm apart. At the midpoint, instrumental FWHM is 1.47323 nm for R = 400 and 0.09822 nm for R = 6,000. The model therefore shows one broad maximum versus two. Combined widths including the invented intrinsic σ are about 1.48523 and 0.21245 nm. No physical transition vanishes when the instrumental resolution decreases.
Geometry answer: emission adds light at the selected transitions. Absorption reduces arriving continuum light at those wavelengths in the simplified weak-line model. Continuous mode leaves the gas selections as references without adding lines. The continuum temperature changes only the model’s Planck background; it does not update gas excitation or line populations.
Defensible claim: this model demonstrates how two known sodium reference transitions can blend at lower resolving power. It does not establish sodium in a particular observed star. A useful follow-up would be wavelength calibration, a sufficiently resolved measured spectrum, several consistent features, and checks for alternative species, shifts, blends and noise.
Common misconceptions: a merged feature does not mean one transition disappeared; a taller plotted peak is not automatically more total emitted power; the contrast slider is not an abundance meter; a matching single line is not unique composition proof; and a resolved doublet does not supply a distance. R is dimensionless; wavelength units must match.
Assessment: look for correct unit conversion, both width calculations, fixed underlying wavelengths, a clear model-versus-observation distinction, and a relevant additional test. The optional extension compares the two unnormalized CSV columns on one scale and integrates them numerically. No formal curriculum alignment or independent scientific review is claimed.
Credit the references. Identify the model.
Suggested citation: The Last Transmission. “Spectroscopy Lab: Resolve Sodium’s Spectral Doublet.” DarkScienceDocs.com. Teaching method 1.0, resource release 262; materials updated . https://darksciencedocs.com/light-lab/spectroscopy/. Add your access date.
Reference credit: NIST, Handbook of Basic Atomic Spectroscopic Data, Persistent Lines of Neutral Sodium (Na I), source checked October 25, 2026. Values were transcribed from Å and divided by 10. The NIST intensity column was not used for our line-strength assumptions. ESO Science Data Products Standard, §5.6, provides resolving-power context.
Model credit and update: The Last Transmission created the illustrative profiles, interface and teaching material. This addition documents the existing spectral-line model and preserves the separate stellar-color activity. It is not a NIST/ESO product or endorsement, and the package has not undergone independent scientific review. To report an error, select Scientific correction on the contact form and include the setting, result and supporting source.
THE WAVELENGTH REFERENCE
Match a pattern.
Keep the units.
Selected visible lines from NIST, using air wavelengths throughout. Hydrogen and helium features are rounded teaching markers; fine structure and many other lines are omitted. Select a line to center the inspection readout.
In continuous mode, the selected gas lines remain a reference only. Their presence in this table does not put them into the continuum.
| Atom | Feature | Air wavelength |
|---|---|---|
| H I | Hδ | |
| H I | Hγ | |
| H I | Hβ | |
| H I | Hα | |
| He I | He I | |
| He I | He I | |
| He I | He I | |
| He I | He I | |
| He I | He I | |
| Na I | D₂ | |
| Na I | D₁ |
No gases are selected. Choose a gas to show its reference lines.
FOLLOW THE LIGHT
Bright lines.
Missing lines.
Different questions.
The same transitions can leave opposite marks.
An excited, low-density gas can add light at particular wavelengths. Gas in front of a brighter continuum can remove light from selected parts of that continuum. Atomic energy levels set allowed transitions; temperature, density, ionization and viewing geometry determine which features appear and how strong they are.
A fingerprint needs several matches.
One feature rarely identifies a unique substance. Compare several wavelengths, the observing conditions and alternatives. This lab knows which gases you selected; it does not infer an unknown composition from data. Line contrast is an artistic control within the teaching model, not a calibrated abundance scale.
Resolution changes what can be separated.
Sodium’s two D lines are separated by 0.5974 nm. Choose Resolve sodium, then Blend sodium. The close-up shows their profiles merge when the instrumental width grows. The pair still exists even when it looks like one feature.
A continuum is another kind of clue.
The temperature slider changes an idealized Planck continuum. The graph is normalized, so it hides the change in total radiated power. The gas-line strengths do not respond to temperature here. A real stellar atmosphere requires excitation, ionization and radiative-transfer calculations that this experiment does not supply.
MODEL / ASSUMPTIONS
What the calculation includes.
Wavelengths, line shapes and resolving power
The visible teaching window is 380–750 nm in air. Selected hydrogen and helium features are rounded from NIST air-wavelength tables. Sodium uses 588.9950 and 589.5924 nm. Roman numeral I means a neutral atom. Intensities are illustrative and are not copied as physical source ratios from the NIST tables.
Emission lines use area-normalized Gaussian profiles. An illustrative intrinsic standard deviation of 0.08 nm combines in quadrature with a Gaussian instrumental standard deviation λ/(2.35482R). Here R = λ/FWHM for the instrumental profile. Broadening lowers a line’s peak while retaining its integrated emission strength.
Absorption uses a weak-line approximation: Gaussian deficits multiply a smooth continuum, with fixed equivalent-width scales as resolving power changes. It is not a treatment of saturated lines, overlapping optical depths, thermal broadening or a real spectrograph’s full response. The temperature control changes only the continuum; gas excitation is held fixed.
Continuum, color and what remains outside the model
The continuum follows Bλ(T) ∝ λ⁻⁵/[exp(hc/λkT) − 1], with wavelength converted to meters and normalized internally at 550 nm. The plots then share a displayed normalization across the full and detail views. The tiny air–vacuum distinction is ignored for this smooth continuum, so the result is not precision radiometry.
The colored strip uses schematic RGB colors and an enhanced brightness mapping. It does not reproduce calibrated human vision or a telescope image. Molecular bands, infrared and ultraviolet transitions, detector noise, dust, gas populations, Doppler shifts and cosmological redshift are omitted. A spectrum is not a direct distance measurement.
CHECK THE RECORD
From the display to the source.
NASA: Three types of spectra
Compare a continuous source, an excited gas and a continuum filtered through gas. The observing geometry matters alongside the atomic transitions.
NIST: Hydrogen line wavelengths
The selected Balmer features use rounded air wavelengths. Closely spaced fine-structure components are simplified into one teaching feature.
NIST: Helium line wavelengths
Selected neutral-helium features are rounded from the visible air-wavelength entries. This is a selection, not a complete helium spectrum.
NIST: Sodium persistent lines
The neutral-sodium D lines are 588.9950 and 589.5924 nm in air. Their separation is 0.5974 nm.
NIST: Wavelength and intensity conventions
Air and vacuum wavelengths must be distinguished. Relative spectral-line intensities depend on the source and excitation conditions.
NASA: Blackbody radiation
An ideal blackbody produces a continuum whose wavelength distribution depends on temperature. Real stars have atmospheres and depart from this idealized example.
NIST: Temperature conversion
Fahrenheit = 1.8 × kelvin − 459.67. Kelvin uses K without a degree sign. The continuum calculation retains its original kelvin input.
FOLLOW THE RESEARCH
Related investigations.
These readings connect the model or film with research questions. An illustrative scene is not a measurement of the particular object, organism, or event described.
- White Dwarf Colors: What a Green Appearance Would Mean ↗
Dense stellar atmospheres can remove broad regions of a spectrum and alter perceived color. The green-white-dwarf result comes from spectra and color modeling, rather than a close-up photograph.
- Fast Radio Burst Detective Lab ↗
Align synthetic radio frequencies, examine interference clues and narrow a fictional host-galaxy search. These cases do not reproduce FRB 20240304B.
SCIENTIFIC INQUIRY / APPLIED HERE
Explore all twelve principlesA spectral pattern needs a physical model.
Selected atomic wavelengths and the CIE color-response table are reference data; the continuum and absorption profiles are teaching assumptions. The stellar-color panel predicts color from its own spectrum, rather than measuring a real white dwarf. Compare several features and their observing conditions before assigning a composition. A missing line does not establish an absent element, and moving a control does not repeat a telescope observation.
Ask yourself Which assumptions drive this result, and where would the model stop being useful?
FOLLOW THE QUESTION / SCIENCE EXPEDITIONS
Make this one stop in a longer journey.
Follow three chapters and eight stops. Save your place in this browser, pause between chapters, and compare what each kind of evidence can establish.
AUTHORSHIP / EVIDENCE / ACCOUNTABILITY
Creator, sources and checks
Lance Jepsen created this resource for The Last Transmission and is the project contact for questions and corrections. His author biography explains his work and the project’s editorial process.
- Scientific sources and model limits
- Spectral-line model and assumptions Reference data, model credit and review scope
- Verification and review records
- Reproduce the sodium-doublet calculation
The reference data and invented teaching profiles have separate credits. The citation notes record the source checks and review scope for this resource.
AI-assisted development and model policyHow corrections are handledReport a scientific correction to Lance