Astronomical Data Analysis Software and Systems V
ASP Conference Series, Vol. 101, 1996
George H. Jacoby and Jeannette Barnes, eds.

SPEFO---A Simple, Yet Powerful Program for One-Dimensional Spectra Processing

Petr Skoda
Astronomical Institute of the Academy of Sciences of the Czech Republic, 25165 Ondrejov, Czech Republic

Abstract:

SPEFO is a small, yet powerful program used for processing stellar spectra at the Astronomical Institute of the Academy of Sciences of the Czech Republic in Ondrejov. It was originally written in 1990 by Dr. Jirí Horn for processing spectral plates obtained with the 2m telescope of the Ondrejov observatory and scanned with the local five channel microphotometer. Since then the code had been under constant improvement until the sudden death of the author in December 1994. Currently SPEFO is used mainly for the reduction of data from the Ondrejov Reticon detector (1872 pixels, 12 bit A/D), however it can process data from other instruments too, provided that they are in FITS one-dimensional format.

The code was written in Turbo Pascal for MS-DOS; the size of the binaries is less than 350 KB. SPEFO will run on an ordinary PC computer with very modest hardware demands (PC AT 286, 1 MB RAM, 30 MB HD color EGA or VGA). Despite its small size the program is very powerful, and user friendly as well. The basic data reduction tasks such as derivation of the dispersion function, spectrum rectification, Fourier noise filtering, radial velocity and equivalent width measurements are performed in an easy manner, and the user can immediately see changes to the data on a screen plot (e.g., the line position is determined in the ``oscilloscopic'' mode by finding the coincidence of the displayed line and its interactively shifted mirrored profile, the continuum level spline is recalculated after fixing each new point, etc.).

The main output of SPEFO is a table of radial velocities of measured stellar lines (including the atmospheric line correction), their equivalent widths and higher order moments, relative central line intensities and FWHM, together with the HPGL plot file. The program can do basic operations on spectra like comparison of two spectra, subtraction, adding, production of differential spectra or the transformation by rotational broadening. SPEFO can also deal with synthetic spectra produced from various model stellar atmospheres allowing their comparison with real data and hence determining the physical parameters (, chemical composition) of the star under investigation.

1. Introduction

At the beginning of 1990 a new system was commissioned in the stellar department for processing of photographic spectral plates---the five-channel stellar microphotometer. It can simultaneously scan in all five channels---two fog and two comparison spectra on both sides of the stellar one---a spectroscopic plate up to 400 mm long with a step as small as 1 m, the data being digitized by 12 bit A/D conversion. Although driven by an old-fashioned TMS-9900 based microcomputer, it can be controlled through a serial port from an ordinary PC AT computer. At that time our colleague Dr. Jirí Horn decided to write a new spectra reduction program called SPEFO (as SPEctroFOtometry), the microphotometer driving program being embedded in it. After switching from photographic plates to a Reticon 1872F linear detector (in 1993), the SPEFO was upgraded to be capable of processing electronic data produced by the Reticon control software RETICON as well as to do FITS conversion and synthetic spectra investigation.

2. The SPEFO General Overview

The SPEFO is written in Borland Turbo Pascal using its graphic library BGI and it consists of a 75 KB long spefo.exe and a 245 KB overlay spefo.ovr binary. The program is modular with each module solving a particular problem. Each partial step of processing is secured in a file with a characteristic extension, and at the same time the current state of processing is saved in the file's header (e.g., the spectrum after establishing its continuum spline remembers the control points of the polynomial).

Several files must be prepared by hand (in ASCII) before the measurements, to describe the particular type of investigation dependent on the object, personal preferences, etc. In this category belong the list of comparison spectrum lines, the stellar lines under investigation, telluric lines, interstellar ones, etc. The result of the processing of a particular problem is the comprehensive report file as well as the graphic plot of the spectra in HPGL format that may be converted to, e.g., PostScript, and used in publications.

Every action has its prompt and the user is informed each time of what is being done. The data are shown in interactive graphics with the possibility of X,Y zooming, panning, setting of control points (the data are recalculated in real time---so, e.g., you can estimate the continuum spline like the rubber band just by inserting and deleting its control points). A very nice part of the SPEFO is the line position measurement in a manner similar to an oscilloscopic comparator. The enlarged spectral line is shown together with its mirrored profile (in another color) that can be interactively shifted until they match. It is valuable for blended lines for fitting each component, or for asymmetric lines to fit both the wings and the core separately.

3. The SPEFO Basic Functions

The description of SPEFO's basic modules may be divided into the functions related to photographic plate processing, electronic spectra processing and general functions.

3.1. Photographic Plate Processing

3.2. Electronic Spectra Processing

 

3.3. General Processing Utilities

4. Conclusion

SPEFO is considered by its users to be a very powerful program providing the stellar astronomer with all the tools necessary for efficient stellar spectra investigation, from the raw data acquisition and its basic reduction up to the final session protocol and plot, that may be directly included into the published article. It might be a good choice for someone wishing to do his work on a small MSDOS-based PC (e.g., the notebook), as one of SPEFO's outstanding features is its compactness and small size with minimal HW demands.