Tuesday, February 25, 2014

Toward Long-Slit Data Reduction in Python

I recently collected a bunch of long-slit spectroscopy data at the Apache Point Observatory 3.5m telescope. Now, it's been about 20 yrs since I've reduced a long-slit spectrum. I wasn't keen to re-learn IRAF, and so I thought I'd give it a try in Python. I've managed to get as far as correcting the distortion of the wavelength grid based on observations of neon arc lines. The correction is subtle: essentially, in the raw image, an emission line gently curves so that an image column does not map uniquely to a specific wavelength. The correction removes this curvature.

This wavelength grid correction makes sky subtraction a lot easier, and my first results are shown in the figure below. The top panel is a raw spectrum of an active galaxy; actually, if you look closely, you'll see spectra of two galaxies whose nuclei fell within the slit. The spectrum is dominated by sky glow (bright vertical lines). The bottom panel shows the image after the wavelength grid correction, and the sky glow has been subtracted by interpolating over the source. The quality of the sky subtraction has been affected by cosmic ray hits, but it's a good start. To be clear: all work was done in Python with no help from IRAF!


Monday, February 17, 2014

I've been meaning to post a spectrum from the APO observing run, but fighting the snow has kept me busy. Instead, here's an undoctored smartphone photo of icicles illuminated by moonlight.

Monday, February 3, 2014

I just returned from the Apache Point Observatory

I was using the Dual Imaging Spectrograph on the APO 3.5 m, shown here on an unfortunately cloudy evening. On a clearer night, I managed to collect some excellent observations of a sample of active galactic nuclei.