Next: Deconvolution by the Multiscale Maximum Entropy Method
Previous: Modelling the 2-D Response of Cameras and Spectrographs with Synphot
Table of Contents --- Search ---
PS reprint
Petr Skoda
Astronomical Institute of the Academy of Sciences of the
Czech Republic, 25165 Ondrejov, Czech Republic
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.
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.
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.
The description of SPEFO's basic modules may be divided into the functions related to photographic plate processing, electronic spectra processing and general functions.
Then the comparison lines from a particular arc line list are identified interactively in either the oscilloscopic or automatic mode with the chosen polynomial fit order. The wavelength-zoomed comparison lines are displayed and their approximate center position has to be marked by moving a vertical cursor together with their identification number according to the arc line list. Then the enlarged line together with its mirror profile is shown, and it may be interactively shifted until their exact match is reached. After identification of at least three lines the estimate of the dispersion curve fit is calculated, and the other lines may be identified automatically. Badly defined lines may be rejected. After the line list has been exhausted, the dispersion curve is displayed with the possibility of rejecting points with large errors. The result of the processing is the wavelength-calibrated unrectified stellar spectrum.
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.