Stacking optical spectra of galaxies

Here’s a short animation showing the effects of stacking up spectra. Measuring the intensities and equivalent widths of emission lines can be tricky in galaxy spectra where the signal-to-noise (S/N) is low, mostly due to difficulty in determining the baseline … Read more

Posted in Code, Data Analysis | Tagged , | Comments Off on Stacking optical spectra of galaxies

Solutions to errors with APLpy show_regions()

Trying to display Ds9 region files on top of APLpy plots threw up two errors. Creating an aplpy.FITSFigure subplot using some standard code in a python script worked fine, until the line where the show_regions() call to pyregion encountered an … Read more

Posted in Code, Programming | Tagged , | Leave a comment

Creating figures from FITS images with APLpy

The Python module APLpy is a great tool for plotting professional-looking astro images. Short for Astronomical Plotting Library in Python, APLpy aims to produce publication-quality plots of astronomical images in FITS file format. As I’ve been using it a lot … Read more

Posted in Code | Tagged , , , | Leave a comment

Blogging code with WordPress

Frequently, I find myself trawling the net looking for a solution to some programming error. One of my aims for this blog was to post useful pieces of code, ¬†vague solutions to those sort of annoying problems that distract from … Read more

Posted in Code | Tagged , , | Leave a comment