RSPEC Spectrum Analysis Software

Using the “subtract background” function in RSPEC Software to bring the baseline down towards zero on Altair spectrum from 10/10/2018

Following my recent post:

Attempt to generate instrument response curve in RSPEC software for CCDSPEC using Altair spectrum from 10/10/2018

Peter Hill asked me whether I had used the “subtract background” option in RSPEC to bring the baseline down towards zero on the spectrum – I had not done it and did not know what to do so I looked it up and here is the difference it makes……(below)

A dramatic improvement! Thanks Pete for the advice!

Andy

WITHOUT the “subtract background” feature being used (below):

WITH the “subtract background” feature being used (below):

Spectroscopy of Altair (and Vega) in Lichfield, UK 11/10/2018, using CCDSPEC, Sky Watcher Equinox Pro 80mm OTA on Manfrotto manual mount

A new star tonight for me – Altair! I have not taken a spectrum of this star before. Being also an A type star (A7V), it was going to be similar to Vega (A0V). Therefore, I took a spectrum of Vega for comparison too..

Taken using CCDSPEC spectrometer with Sky Watcher Equinox Pro 800mm Telescope on alt-az undriven Manfrotto mount – hand-guided for 50 second exposures.

RSPEC software has some great reference spectra which I was able to use to calibrate these images this evening. Cross checked using my own image of Vega as reference spectrum.

Note Vega = A0V spectral type

Altair = A7V spectral type

Andy

The post below follows on from the above post:

Attempt to generate instrument response curve in RSPEC software for CCDSPEC using Altair spectrum from 10/10/2018

 

Attempting to calibrate RELCO Starter against 12V Compact Fluorescent Lamp in order to work out the wavelengths of the main lines on RELCO spectrum

Today, I have had a go at calibrating the homemade RELCO Starter bulb calibration lamp I made against 12V compact fluorescent lamp bulb in order to determine the wavelengths of the main lines on the CCDSPEC spectrum of the RELCO bulb.

Download calibration files from analysis by clicking on link below – calibration files RELCO vs CFL CCDSPEC no telescope 30/9/2018:

Spectrum RELCO Starter on CCDSPEC without telescope 300918

Also look at https://stargazerslounge.com/topic/226911-neon-lamp-to-set-spectroscope/?tab=comments#comment-3521335 to find out what happened when I tried to compare the lines I identified below with the atlas of lines from http://www.ursusmajor.ch/downloads/sques-relco-sc480-calibration-lines-5.0.pdf – sadly they don’t seem to match!

Andy

RELCO Starter Bulb spectrum taken with CCDSPEC Spectrometer (below):

Spectrum of compact fluorescent light bulb taken with CCDSPEC (below):

Graphing both above spectra together:

Calibrating spectra of both RELCO and CFL using above two lines in RSPEC gives following calibrated spectra:

The following is my final labelled image showing main lines on RELCO starter bulb spectrum (below):

How to process spectra recorded from the Science Surplus “DIY Spectrometer” using the “Spectrum Studio” software in either Microsoft Excel, RSPEC or VSPEC software

How to process spectra recorded from the “DIY Spectrometer” using the “Spectrum Studio” software in either Microsoft Excel, RSPEC or VSPEC software.

The following is my summary and my own screenshots of the process using a solar spectrum I took using the DIY Spectrometer. I am indebted to Jeffrey L. Hopkins’ excellent book for teaching me about the process “Using commercial amateur astronomical spectrographs” and is the only resource that I know of that explains how to do this.

Processing the results from the DIY spectrometer in Excel, RSPEC, VSPEC:

Spectrum line profiles generated from the DIY spectrometer using its own software Spectrum Studio can be saved as a CSV file. Later we need to convert it in to a text file, once we have manipulated it in Micosoft Excel or Open Office or other similar spreadsheet programme.

Saving profiles from Spectrum Studio:

As shown in the screenshots above, Spectrum Studio automatically saves as CSV file which can then be directly loaded into Excel.

The CSV file produced includes a header with the scan date which uses the computers date and time, integration time which is the same as exposure time, and number of averages.

The following screenshot shows the Spectrum Studio CSV file as generated by Spectrum Studio opened in Microsoft Excel. I have highlighted the header:

Five columns of data will be found below this header.

Under the five columns are 2047 rows of data corresponding to the 2047 pixels on the linear CCD chip. Each row has an associated column for pixel number, wavelength in nanometres, sum, average, background. If the spectrum has been calibrated then the pixel number and wavelength will be the same.

The CSV file that is been saved above can be opened in Excel. Only two columns are needed for further analysis – the pixel number and the sum.

The following screenshot shows the Spectrum Studio CSV file opened in Excel with the Pixel Number and Sum columns highlighted – these are the two columns that need to be kept in order to open the file in RSPEC/VSPEC – other columns are deleted as is the header:

To create a line profile in Excel or Open Office or other similar spreadsheet programme, select these two columns and choose the desired graph from the options open to you in the spreadsheet software. The data files of multiple columns of ADU counts, Microsoft excel can be used to produce another column which is the sum of those counts for a given pixel position. That sum and pixel position can be used to create the line profile graph. The pixel number versus the wavelength can be determined and a new column created that shows the wavelength for each pixel position. The sum column and the new wavelength column can then be used to create a wavelength calibrated line profile graph. Such a graph would be very similar to the one that appears on the DIY spectrograph’s own spectrum software when you take spectrum.

Microsoft Excel helps allows you to manipulate the file so that it can be loaded in RSPEC/VSPEC but programmes such as RSPEC or VSPEC are easy to use if you want to process the spectrum in practice.

In order to open the text file from the DIY spectrograph spectrum in RSPEC or VSPEC, some changes need to be made to this text file. Open it in Microsoft Excel and then:

1. Delete the header data
2. Delete the column titles
3. Delete all columns except pixel number and sum
4. Save the resulting file as a text file. It does not matter from my own experience whether you save as Unicode text file or as tab-delimited – both with open in RSPEC/VPSEC.
5. Change the extension from .txt to .dat

The file can now be opened in RSPEC or VSPEC.

This file is not an image file any longer so it must be opened as a line profile .dat file.

Opening profile in RSPEC:

 


Once opened in RSPEC or VSPEC the profile can then be wavelength calibrated and further processed.