<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://gracebrazil28.github.io/radioskyjournal/feed.xml" rel="self" type="application/atom+xml" /><link href="https://gracebrazil28.github.io/radioskyjournal/" rel="alternate" type="text/html" /><updated>2026-11-20T21:40:29+00:00</updated><id>https://gracebrazil28.github.io/radioskyjournal/feed.xml</id><title type="html">Radio Sky Journal</title><subtitle>A working log of radio astronomy experiments, from public telescope data to eventually my own small-dish observations.</subtitle><author><name>Grace Brazil</name></author><entry><title type="html">OH masers in W3(OH), from raw telescope voltages</title><link href="https://gracebrazil28.github.io/radioskyjournal/log/2026/11/oh-masers-in-w3oh/" rel="alternate" type="text/html" title="OH masers in W3(OH), from raw telescope voltages" /><published>2026-11-20T00:00:00+00:00</published><updated>2026-11-20T00:00:00+00:00</updated><id>https://gracebrazil28.github.io/radioskyjournal/log/2026/11/oh-masers-in-w3oh</id><content type="html" xml:base="https://gracebrazil28.github.io/radioskyjournal/log/2026/11/oh-masers-in-w3oh/"><![CDATA[<p>I’ve been building toward hydrogen-line observations with my own SDR, and I wanted to try post processing on data where I knew the answer existed. Daniel Estévez published exactly a raw voltage recording of the hydroxyl (OH) line toward W3(OH), made with one dish of the Allen Telescope Array. It isn’t a spectrum. It’s eight minutes of raw samples from both feeds.</p>

<p>I worked through it in two rounds, a week apart, and wrote each one up. Both write-ups are linked at the bottom.</p>

<h2 id="why-this-source">Why this source</h2>

<p>W3(OH) is one of the best-studied OH maser sources in the sky. Masers are the microwave cousin of lasers: in the dense gas around a young massive star, OH molecules amplify the 1665 MHz line. So instead of a broad, smooth hump like hydrogen you get a cluster of very bright, very narrow spikes. Each spike is a small clump of gas moving at its own speed along the line of sight. OH also responds strongly to magnetic fields, which makes these masers one of the few direct ways to measure fields in star-forming regions.</p>

<h2 id="first-look-nothing">First look: nothing</h2>

<p>I opened the raw file in inspectrum, a spectrogram viewer, expecting to see something. It was noise from edge to edge. That turned out to be the first lesson: each column of the display is a single FFT, and the maser adds only a few percent to the receiver’s own noise. You can’t see it without averaging.</p>

<h2 id="averaging-506-seconds">Averaging 506 seconds</h2>

<p>Averaging about 59,000 spectra per feed brought it out. After dividing out the receiver’s bandpass and converting frequency to velocity, corrected for Earth’s motion (+14.9 km/s at the time of the recording), the emission sits between −46.5 and −44 km/s, peaking at −45.2 km/s at about 16σ.</p>

<figure>
  <img src="/radioskyjournal/assets/images/w3oh/xy_rows.png" alt="Four-panel plot: the raw bandpass of both feeds, the baseline-removed maser profile peaking near minus 45 kilometres per second, a waterfall with a steady vertical maser stripe, and a gain-versus-time plot where the X feed jumps by up to 6 percent." />
  <figcaption>From top: the raw bandpass of both feeds (the maser is the small bump at +335 kHz); the line profile; the waterfall over the full 506 s; and how much each feed's gain changed during the recording.</figcaption>
</figure>

<p>The noise check was the moment I trusted it. The radiometer equation predicts how much noise should remain after averaging 117 Hz channels for 506 seconds across two feeds: 0.0029 of the system noise. I measured 0.0027. The data is limited by thermal noise, not by leftover baseline wiggles or interference.</p>

<h2 id="the-x-feed-misbehaved">The X feed misbehaved</h2>

<p>My first waterfall had bright horizontal bands across every channel. They weren’t astronomical: the X feed’s gain jumped by up to 6% partway through, while the Y feed drifted by less than 1%. A change in the sky or the pointing would hit both feeds, so this was almost certainly the X electronics. Rescaling each 10-second row to its own gain removed the bands, and the maser turned out to be steady for the whole recording (bottom two panels above).</p>

<h2 id="five-components">Five components</h2>

<p>Fitting the profile as a sum of Gaussians, with the number of components chosen by a statistical test (the BIC) rather than by eye, gave five:</p>

<table>
  <thead>
    <tr>
      <th>Velocity (km/s)</th>
      <th>Width (km/s)</th>
      <th>Note</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>−46.22</td>
      <td>0.31</td>
      <td>narrow</td>
    </tr>
    <tr>
      <td>−45.20</td>
      <td>0.48</td>
      <td>main peak</td>
    </tr>
    <tr>
      <td>−45.30</td>
      <td>1.67</td>
      <td>broad, weak; about a third of the line area</td>
    </tr>
    <tr>
      <td>−44.13</td>
      <td>0.35</td>
      <td>weak</td>
    </tr>
    <tr>
      <td>−42.68</td>
      <td>0.15</td>
      <td>tentative, about 3.7σ</td>
    </tr>
  </tbody>
</table>

<figure>
  <img src="/radioskyjournal/assets/images/w3oh/xy_rows_fit.png" alt="The maser profile with five fitted Gaussian components and residuals that stay within plus or minus 2 sigma." />
  <figcaption>The five components and their sum. The residuals (bottom) stay within the noise.</figcaption>
</figure>

<p>The widths matter. Gas emitting thermally can’t produce a line narrower than its temperature allows: for OH at 50 K that’s 0.37 km/s. Three of these components are narrower, which would need gas colder than about 36 K, 44 K and 8 K. That’s the fingerprint of maser amplification, which narrows the line. The main peak is wider than the individual maser spots that interferometers resolve in W3(OH), which fits a blend of several spots inside the antenna’s two-degree beam.</p>

<h2 id="polarization">Polarization</h2>

<p>Because both feeds share one local oscillator, they can be cross-correlated, which gives the full set of Stokes parameters, the standard description of polarization.</p>

<figure>
  <img src="/radioskyjournal/assets/images/w3oh/w3oh_stokes.png" alt="Three-panel polarization plot: total intensity and linear polarization, the cross-correlation between the feeds, and the phase between feeds across the line." />
  <figcaption>Top: total intensity (I) and the X-minus-Y difference (Q). Middle: the part of the signal correlated between the feeds. Bottom: the phase between the feeds, which sweeps across the main peak.</figcaption>
</figure>

<ul>
  <li><strong>The −46.2 km/s feature is essentially fully polarized</strong> (115 ± 8%, within 2σ of 100%), yet equally strong in both feeds. A strongly circularly polarized maser would look like that.</li>
  <li><strong>The main feature is clearly stronger in Y</strong> (q = −0.18 ± 0.02, 7.7σ). Because the −46.2 km/s feature shows no such difference, it isn’t just one feed being noisier.</li>
  <li><strong>The phase between the feeds sweeps across the main peak</strong>, from about 180° on its blue side to about 0° on its red side. The main peak is a blend of components with different polarization.</li>
</ul>

<div class="note-pencil">
<strong>Not proven:</strong> the red side of the main peak sits 180° from the −46.2 km/s feature, which means opposite polarization. If both are circular, they could be a Zeeman pair: one maser split in two by a magnetic field of roughly 2 milligauss. But the phase between the feeds was never calibrated, so circular and linear polarization look the same here, and a single dish can't show the two features come from the same clump.
</div>

<h2 id="a-distance-thats-twice-too-far">A distance that’s twice too far</h2>

<p>Galactic rotation links a cloud’s velocity to its distance. Plugging in −45.2 km/s gives a kinematic distance of 3.8 kpc. But W3(OH)’s distance has been measured directly, by maser parallax, at 1.95 kpc (Xu et al. 2006). At that distance, simple rotation predicts −26 km/s.</p>

<figure>
  <img src="/radioskyjournal/assets/images/w3oh/xy_rows_fit_kinematic.png" alt="Velocity expected from Galactic rotation versus distance, crossing the measured velocity at 3.8 kiloparsecs, while the parallax distance of 1.95 kiloparsecs corresponds to minus 26 kilometres per second." />
  <figcaption>Circular rotation (blue) crosses the measured velocity at 3.8 kpc. At the parallax distance, it predicts a velocity 19 km/s off.</figcaption>
</figure>

<p>The 19 km/s gap isn’t an error in my spectrum. I’ve read in academic paper that it is the non-circular motion in this part of the Perseus Arm, and the parallax measurement that revealed it is a well-known result. Getting there from raw voltages was very satisfying.</p>

<h2 id="checking-my-own-work">Checking my own work</h2>

<p>To make sure the pipeline wasn’t inventing results, I generated a synthetic recording with known answers: a 3% gain jump in one feed, a phase offset between feeds, and five lines in five different polarization states. The pipeline recovered all of them, within about 2σ.</p>

<figure>
  <img src="/radioskyjournal/assets/images/w3oh/synthetic_stokes.png" alt="Polarization analysis of the synthetic test recording, recovering five lines with known polarization states." />
  <figcaption>The synthetic test. One line is polarized along X (seen only in Q), three are correlated between the feeds, one is unpolarized, and the two circular lines come out 181° apart, as they should.</figcaption>
</figure>

<p>It also confirmed something about the real data: the synthetic feeds share almost no correlated noise (0.01%), while the real ones share 5%. That correlation comes from the telescope, not from my code.</p>

<h2 id="summary-of-my-two-experiments-and-write-ups">Summary of my two experiments and write-ups</h2>

<p><strong>November 13, the first pass.</strong> I got from raw samples to a calibrated spectrum: averaging, removing the bandpass, correcting the velocity for Earth’s motion, a first waterfall and a kinematic distance. Most conclusions were read off the plots by eye. I noticed the main peak looked stronger in Y than in X and called it a possible sign of polarization.</p>

<p><strong>November 20, the second pass.</strong> I went back to turn impressions into measurements:</p>

<ul>
  <li>rescaled each row of the waterfall to its own gain, which removed the bands and exposed the X-feed jumps;</li>
  <li>checked the noise against the radiometer equation instead of estimating it by eye;</li>
  <li>fitted the profile with Gaussian components instead of reading off peaks, which turned the “shoulder” into a broad component and turned up a tentative fifth feature;</li>
  <li>cross-correlated the two feeds to measure polarization properly, instead of comparing the two profiles by eye;</li>
  <li>built the synthetic test recording to check that the pipeline gets known answers right</li>
</ul>

<p>The first write-up is worth keeping next to the second: comparing them shows which early impressions remained plausible (the Y-stronger main peak, the distance discrepancy) and which didn’t (the shoulder).</p>

<h2 id="mistakes-worth-recording">Mistakes worth recording</h2>

<ul>
  <li><strong>Velocity frames.</strong> In one early run I set the plot window in one velocity frame while the data was in another, and cut the peak in half without noticing. The 15 km/s correction for Earth’s motion is easy to forget.</li>
  <li><strong>Reading plots by eye.</strong> I first described a “shoulder” near −44.9 km/s. The fit showed it’s better explained as a broad, weak component under the main peak.</li>
  <li><strong>Environment trouble.</strong> A half-upgraded SciPy broke imports partway through. A fresh conda environment fixed it.</li>
</ul>

<h2 id="next">Next</h2>

<ul>
  <li>Split the recording in half and check that every feature appears in both halves.</li>
  <li>Look for a way to calibrate the phase between the feeds, to test the Zeeman idea properly.</li>
</ul>

<p><strong>Official Github Repository:</strong> <a href="https://github.com/gracebrazil28/OH-Spectral-Line-Analysis">https://github.com/gracebrazil28/OH-Spectral-Line-Analysis</a> (for this project)</p>]]></content><author><name>Grace Brazil</name></author><summary type="html"><![CDATA[I’ve been building toward hydrogen-line observations with my own SDR, and I wanted to try post processing on data where I knew the answer existed. Daniel Estévez published exactly a raw voltage recording of the hydroxyl (OH) line toward W3(OH), made with one dish of the Allen Telescope Array. It isn’t a spectrum. It’s eight minutes of raw samples from both feeds.]]></summary></entry></feed>