Previous           Next          Tutorials           Help

Fit Continuum and Compute Moments

Button Function
GuessCont Define intervals to fit the continuum and its guess level and slope

Guess the level of the continuum

Once clicked on the icon under the spectrum, a dialog window will ask to select the degree of the polynomial to fit the continuum, the boundary condition for fitting (continuum has to be positive or not), and the kernel used to compute the spectrum (1, 5, or 9 pixels around the position of each spatial pixel).

At this point, click and drag to trace the continuum on the right and the left of the line. Try to avoid the brightest part of the line to have a better fit of the continuum. The traced guessed continuum will appear on the image. It is possible to select a point and drag it around to change the region or the height of the point. By clicking 'd' one can delete the guess. To restart with another guess (and deleting the previously computed moments), reclick the icon.

Button Function
FitCont Fit the continuum

Fit the continuum

Under the image, click the icon to fit the continuum. A dialog will ask if the fit has to be done on the entire cube or limited to a selected region. If the second case is true, you can select a region on the image by click and dragging the mouse. Once the region is selected, the fit starts automatically and will show on the spectra the level of the continuum and on the image "C0" the continuum computed at the reference wavelength.

I the reference wavelength changes, it is possible to recompute C0 by clicking in the menu: Fit-->Recompute C0,v,sv.

Button Function
DefineMoments Select the interval to compute moments

Define the interval to compute the moments

Click the relative icon under the spectrum. The "PIX" tab will be automatically selected. By clicking and dragging the mouse, a region of the spectrum is shaded. This is the interval which will be considered for computing the moments.

The moments

These are the definitions used.

Zeroth moment: $M_0 = \int F d\lambda$.

First moment: $M_1 = \int \frac{\lambda}{M_0} F d\lambda$

Second moment: $M_2 = \int \frac{(\lambda-M_1)^2}{M_0} F d\lambda$

Third moment: $M_3 = \int \frac{(\lambda-M_1)^3}{M_0 \sigma^3} F d\lambda$

Fourth moment: $M_4 = \int \frac{(\lambda-M_1)^4}{M_0 \sigma^4} F d\lambda - 3$

with $\sigma = \sqrt{M_2}$.

The zeroth moment (once the continuum emission is subtracted) gives information about the intensity of the line (or lines).

The first moment gives information about the velocity field of the reference line:

$v = (M_1-\lambda_0) c /\lambda_0$,

where $\lambda_0$ is the reference wavelength:

$\lambda_0 = \lambda_{line} (1+z)$.

To obtain velocities relative to the mean velocity of the structure, one has to subtract $cz$.

The second moment gives information about the velocity dispersion of the reference line:

$\sigma_v = \sqrt{M_2} c /\lambda_0$.

The third moment, normalized skewness, tells if a distribution is slanted to the right (positive values) or the left (negative values).

Finally, the fourth moment, kurtosis excess, tells if the distribution is platykurtic (more plate than the Gaussian) or leptokurtic (narrower than a Gaussian). The normalized kurtosis of a Gaussian is

  1. This is the reason that subtracting 3 we compute the kurtosis excess with respect to a Gaussian distribution.
Button Function
ComputeMoments Compute the moments

Compute the moments

After clicking the icon, a dialog will ask to decide if computing moments on the entire cube or only in a selected region. If the line appears at different velocities in the map, it is advisable to compute the moments in regions by selecting different intervals.

To select a region, click and drag the mouse over the rectangular area on the image where you want to compute the moments. Once the computation is done, a cross will appear over the "PIX" spectrum with location, amplitude, and dispersion corresponding to the computed moments. Also the new images M0, M1, M2, v, and sv are created.