next up previous 104
Next: Saving the results
Up: Help for individual windows
Previous: The generate spectra from interpolated lines window

The spectral line fitting window

The spectral line fitting window allows you to measure the wavelength and equivalent width of emission or absorption lines and to fit various standard profiles to the lines.

The standard profiles offered are Gaussian, Lorentzian and Voigt, as well as a model independent intensity analysis measure.

3070

Background type: Choose a type of background estimate to be subtracted from the spectrum before fitting. The choices are Constant and Polynomial. If you have already subtracted the background from the spectrum, or have applied a normalisation (so that the background is flat, usually with a value of 1) then you need to choose Constant and provide a suitable value. Otherwise choose Polynomial and select a spectrum from the list in Background fit.

Background fit: For emission lines you would normally define a background spectrum using the polynomial fitting tool. In this case select the Polynomial option and choose the background spectrum you have created. Note that you can actually use any spectrum from the global list as the background (so you are not restricted to what SPLAT-VO, provides) but if you choose the same spectrum as is being measured then a background of $0$ is assumed.

The default background should be set to the first polynomial found on the global list.

Use error as weights: If your spectrum has associated error measurements then you can select this checkbox to use the errors as weights in the fitting procedure.

Coordinate ranges: This table shows the upper and lower coordinate range for each line that you want to measure.

To add a line to this list press the Add button. Now drag out a region on the plot display area that encompasses the spectral line. You should now see a yellow rectangle over the line:

3085

Note that the rectangle is just defining a range, not an area, so you just need to worry about its width and position along the X axis, not its height.

To adjust the rectangle position select it and either drag it around, or use the grips on the exterior to resize it. You can see the physical extent of the region in the Coordinate ranges: table. To set these to a known value double click on the value you'd like to set, make the change, and then press <Return> to apply it.

The extents of lines can be saved to a simple text file and re-read. The format is simple. It should have two fields separated by whitespace or commas. Comments are indicated by lines starting with a hash (#) and are ignored.

Types of fit:

Once you have defined the extents of your spectral lines and chosen a background, you can proceed to make the measurements you want. Just select the types of fit you want from the list Gaussian, Lorentzian and Voigt. Note you can de-select all these and just get a Quick measurement.

All types except Quick use a non-linear least squares (Levenberg-Marquardt) minimisation stage to perform the actual fit of the model to the data (possibly with weighting, if the spectrum has any error measurements). So it is necessary to have some idea of the shape of the line, before attempting to fit it. This job is done by the Quick fit, which is compulsory. The description of each of the types and what their measurements represent is given below.

The error estimates are based on the variances produced by the fit. If you have errors for the data values, these will be used as weights and providing they are realistic the errors will be correct. In the absence of data errors the errors produced will be decided assuming that the fit is good (the chi-square statistic will be artificially forced to have a value of 1).

Quick: The default line measurement type. This is based on the ABLINE technique described in the FIGARO documentation. This just uses an analysis of the intensities in the selected region and the chosen background. The results you get are:

Gaussian: The formula used for the Gaussian is:

\begin{displaymath}
y(r) = A * exp\left( -0.5 * \left(\frac{x-c}{\sigma}\right)^{2}\right)
\end{displaymath}

where $A$ is the scale height, $r$ is the distance from the centre, $c$ is the centre, $x$ the distance from the origin and $\sigma$ is the Gaussian sigma. The $y$ values are background subtracted.

The values measured for this line shape are:

Lorentzian: The formula used for the Lorentzian is:

\begin{displaymath}
y(r) = \frac{A}{1+0.5*(\frac{x-c}{w})^{2}}
\end{displaymath}

where $A$ is the scale height, $r$ is the distance from the centre, $c$ is the centre, $x$ the distance from the origin and $w$ the Lorentzian width. The $y$ values are background subtracted. The full width half maximum ($fwhm$) of the curve is:

\begin{displaymath}
fwhm = w*2\sqrt{2}
\end{displaymath}

The values measured for this line shape are:

Voigt: The formula for a Voigt profile (a convolution of a Gaussian and Lorentzian) is:

\begin{displaymath}
K(a,b) = \frac{b}{\pi}\int_{-\infty}^{\infty}\frac{\mathrm{exp}(-t^{2})}{(a-t)^{2}+b^{2}}dt
\end{displaymath}

where:

\begin{displaymath}
a = \sqrt{\ln{2}} \, \left(\frac{x-c}{\sigma}\right)
\end{displaymath}

and

\begin{displaymath}
b = \sqrt{\ln{2}} \, \left(\frac{w}{\sigma}\right)
\end{displaymath}

In these equations $c$ is the central wavelength, $x$ the distance from the origin, $\sigma$ is the Gaussian width and $w$ the Lorentzian width. Which is complex to solve. However, if we take a complex variable $z=a+ib$, then the Voigt function is, within a scale factor ($A$), also the real part of the complex error function:

\begin{displaymath}
w(z) = \mathrm{exp}(-z^{2}) \, \mathrm{erfc}(-iz)
\end{displaymath}

which has been approximated by various numerical codes. Using this fact with a non-linear minimisation routine (plus some derivatives) is how SPLAT performs its Voigt fitting.

The values measured for this line shape are:



Subsections

next up previous 104
Next: Saving the results
Up: Help for individual windows
Previous: The generate spectra from interpolated lines window

SPLAT-VO -- A VO-enabled Spectral Analysis Tool
Starlink User Note 243
Peter W. Draper & Mark Taylor
19 December 2008
E-mail:splat@star.rl.ac.uk

Copyright (C) 2001-2005 Council for the Central Laboratory of the Research Councils
Copyright (C) 2006-2007 Particle Physics and Astronomy Research Council
Copyright (C) 2007-2008 Science and Technology Facilities Council