Astronomy Olympiad / Level 2 · INAO / Data Analysis

Data Analysis · lesson 3 of 3 · 45 min

Reading a noisy spectrum: which lines are there?

After this lesson you can:
  • Tell a real spectral line from noise by comparing its depth (or height) with the scatter.
  • Recognise the strongest lines in starlight: hydrogen's Balmer lines, sodium D, ionised calcium H and K.
  • Measure a redshift from a pattern of lines that all move by the same factor.
  • Explain why one line is not enough to name an element, and when two elements cannot be told apart.

Before this lesson: Atoms and spectral lines; the Balmer series · Graphs by hand: scales, linearising and straight-line fits

INAO questions solved here: INAO 2024 Q1(g) · all INAO questions

1. Concept

Every element absorbs and emits light at its own set of wavelengths. Find the set in a spectrum and you know the element is there: this is how we know what stars are made of without ever touching one. Real spectra are noisy, though, and real lines can sit almost on top of each other. Reading a spectrum is a careful game of evidence.

Is that dip real?

Noise makes the spectrum wobble up and down at random. Measure the size of the wobble, the standard deviation σ\sigma, in a stretch with no lines. A dip (or peak) is taken as real only if it is much bigger than that: a common rule is more than 3σ3\sigma. Smaller features turn up by chance all the time. A real line also has the right width: it is usually wider than one or two pixels of noise.

Fingerprints, not single lines

An element is present only if all of its strong lines are present. One matching line may be a coincidence; a missing strong line rules the element out.

Strong lines in starlight (air wavelengths, nm): hydrogen Hα 656.3, Hβ 486.1, Hγ 434.0, Hδ 410.2 · sodium D 589.0 and 589.6 · ionised calcium K 393.4 and H 396.8 · magnesium b near 517–518.

If two elements have lines closer together than the spectrograph can separate, a peak there cannot tell them apart. Then the honest answer is “at least one of the two is present”.

Redshift moves every line by the same factor

If the source moves away from us, every wavelength is stretched by the same factor:

λobs=(1+z) λrest,z=λobs−λrestλrest.\lambda_{\text{obs}} = (1 + z)\,\lambda_{\text{rest}}, \qquad z = \frac{\lambda_{\text{obs}} - \lambda_{\text{rest}}}{\lambda_{\text{rest}}} .

So the red lines move more nanometres than the blue ones, but by the same fraction. For speeds much less than light, v≈czv \approx cz.

Traps. Naming an element from one dip. Shifting all lines by the same number of nanometres instead of the same factor. Calling a one-pixel spike a line.

2. Explore it

A noisy stellar spectrum from 420 to 680 nm with three deep absorption lines marked at 438.5, 491.1 and 663.0 nm, and one shallow noise dip near 560 nm that is not marked
Figure 1. A noisy spectrum with three real absorption lines and one dip that is only noise. The dashed band shows ±3σ of the noise.

Before reading the worked example, find the dips that go well outside the dashed band. Which one is only noise? (The shallow one near 560 nm: it stays inside the band and is only a pixel or two wide.)

3. Worked example

The three real dips in Figure 1 are at 438.5, 491.1 and 663.0 nm. What are they, and how fast is the star moving?

Their ratios look like hydrogen’s Balmer lines, shifted. Test the idea: if each is a Balmer line, they must all give the same zz.

Hα: 663.0656.28−1=0.0102,Hβ: 491.1486.13−1=0.0102,Hγ: 438.5434.05−1=0.0103.\begin{aligned} \text{H}\alpha:&\ \frac{663.0}{656.28} - 1 = 0.0102, \\ \text{H}\beta:&\ \frac{491.1}{486.13} - 1 = 0.0102, \\ \text{H}\gamma:&\ \frac{438.5}{434.05} - 1 = 0.0103 . \end{aligned}

The same factor fits all three, so they are Hα, Hβ and Hγ at z=0.0102z = 0.0102, and the star moves away at v≈cz=3.06×103v \approx cz = 3.06 \times 10^{3} km/s. A single dip could never have told us this: it is the pattern that identifies the element and fixes zz.

4. From a past paper

INAO 2024, Question 1(g) (official paper: HBCSE). A probe on a distant moon records the emission spectrum of its soil, with noise. The paper shows the spectrum (wavelengths 100 to 200, arbitrary units) and a complete table of the emission lines of six imaginary elements, all strong enough to be seen if the element is there:

Element Line 1 Line 2 Line 3
Fh 193.44 – –
Dz 149.18 159.73 –
Ab 111.71 122.87 177.94
Hm 132.67 139.56 –
Cw 119.55 139.32 –
Xy 148.90 159.69 –

Which elements are present?

Our solution. Reading the spectrum: clear peaks stand far above the noise near 119.5, 139.5, 149, 159.5, 178 and 193.5; nothing rises out of the noise near 111.7, 122.9 or 132.7. Now test each element against all of its lines:

This agrees with the official answer: Fh and Cw present, Ab and Hm absent, Dz and Xy “maybe”. It is exactly the reasoning of a real line identification: every line must be found, and lines too close to separate leave an honest doubt.

5. Quick check

Q1. Which Balmer line of hydrogen lies in the red part of the spectrum?

Q2. Hβ (rest wavelength 486.13 nm) is seen at 510.4 nm in a galaxy's spectrum. What is the redshift zz?

Q3. An element has three strong lines. A noisy spectrum shows a clear peak at one of them, but nothing at the other two. What do you conclude?

Q4. In a stretch with no lines, the noise has a standard deviation of 2 units. Which feature should you accept as a real line?

6. Next