next previous
Up: A strategy for fitting


5 A template-fitting procedure

We deduce from the above considerations that there are substantial regions of the $l-\nu$ plane where attempts to fit independently all the peaks in a given frequency range of a given (l,m) spectrum are likely to fail; indeed, the region where such fitting is appropriate is a relatively small fraction of the full $l-\nu$ plane that is accessible to measurements from GONG or the MDI instrument on SOHO. To make inferences about mode parameters outside this region, we need to make some assumptions about the position and relative strength of the leaked modes in the spectrum. However, the proper calculation of the leakage matrix at high degree is computationally expensive. The approach to mode-fitting described here aims to work around this by fixing some of the parameters of the fit in advance, using information obtained from the data rather than a detailed leakage model.

To illustrate the procedure, we shall concentrate on one typical multiplet, that with l=150, n=4 in GONG month 4.

The first stage in the process is to locate the target system of peaks and leaks, which forms one of the broad, slanted bands of power shown in the greyscale plot in Fig. 7. This requires only approximate knowledge of the m=0 frequency of the target mode and its nearest neighbouring leaks ($\delta l =\pm 1$), and the linear part of the m-dependence arising from rotation. Figure 10 shows the power in the region of interest in the $m-\nu$plane with the linear part of the rotational dependence taken out to show the differential rotation more clearly. The data are averaged over bands covering several m-values, and smoothed in frequency, to clarify the structure. Next we locate the maximum of the smoothed data in each band as shown in the figure.

  
\begin{figure}
\epsfxsize= 8.5 cm
\vspace{0cm}
\hspace{3mm}{
\epsfbox {ds146610.eps}
}\vskip -.00 true cm
\vspace{0cm}\end{figure} Figure 10: Smoothed $m-\nu$ power spectrum of the n=4,l=150 mode and its leaks. The linear part of the m-dependence of the frequencies has been removed. The stars indicate maxima of the central ridge, and the curve shows a polynomial fit through these maximum points. The parallel curves indicate the frequency range, determined from the initial estimate of the linewidth, in which the maximum is sought

A better approximation to the m-dependence due to rotation can be obtained from a third-order polynomial fit to the position of the smoothed maxima as a function of m. Then, taking this m-dependence into account, the individual m spectra can be collapsed to form a first approximation to the m-averaged spectrum.

Under standard assumptions that the modes are randomly and independently excited with a white-noise forcing function, at each frequency point the real and imaginary parts of the Fourier transform of the individual-m time series $S_{\rm obs}$ will be normally distributed with zero mean. (This is true even when leakage is taken into account, since the sum of independent Normal variables is itself Normal.) Thus at each frequency point the individual-m power spectra are proportional to a chi-squared variable with two degrees of freedom. (Of course, as discussed in more detail by Appourchaux et al. 1998, in the presence of leakage the different individual-m spectra will not in general be independent.)

Since there are 2l+1 individual m spectra for a given l, and notwithstanding the fact that the errors in each spectrum may not be entirely independent, we assume that by the Central Limit Theorem the errors in the m-averaged spectrum for high l approach a normal distribution, and we proceed to fit the spectrum using a non-linear least-squares method in which the variance at each frequency point is approximated as being proportional to the data value divided by the number of spectra averaged. The algorithm used is based on the CURFIT routine of Bevington (1969). The model consists of seven peaks -- the target and the leaks out to $\delta l=\pm 3$ -- of equal width, evenly spaced and with the relative powers of the leaks forced to be symmetrical, on a flat background, as illustrated in Fig. 11. The peak profile is assumed to be Lorentzian, defined by
\begin{displaymath}
P(\nu,\nu_0,P_0,\Gamma)={{(\Gamma/2)^2P_0}\over{(\nu-\nu_0)^2+(\Gamma/2)^2}}\end{displaymath} (10)
where $\nu_0$ is the central frequency of the peak, $\Gamma$ the FWHM and P0 the maximum height of the peak; $\nu$ is frequency. The full model for the m-averaged spectrum is thus given by
\begin{displaymath}
T(\nu,\nu_0) = \sum_{\delta l=-3}^3 P[\nu,\nu_0-\delta l \times \delta\nu,
P_0(\vert\delta l\vert),\Gamma]+B_0,\end{displaymath} (11)
where $\delta\nu$ is the spacing (assumed uniform) between the peaks, B0 is the background level of the power, and $P_0(\vert\delta l\vert)$ is the power of each ridge, which in this symmetric model depends only on $\vert\delta l\vert$.Thus we determine eight constants - $\nu_0$, $\Gamma$, $\delta\nu$,B0 and four amplitudes P0(0,1,2,3) - which together define the fitted model $T(\nu,\nu_0)$.

  
\begin{figure}
\epsfxsize=7.8 cm
\vspace{0cm}
\hspace{5mm}{
\epsfbox {ds146611.eps}
}\vskip -.00 true cm
\vspace{3mm}\end{figure} Figure 11: The m-averaged spectrum of the l=150,n=4 mode (crosses) after removal of a third-order polynomial approximation to the m-dependence due to rotation. The continuous curve shows the fit of a symmetrical model comprising 7 equally spaced Lorentzian peaks. The units of power are arbitrary

This $T(\nu,\nu_0)$, which has been obtained by fitting the m-averaged spectrum, then becomes the "template'' used to fit to the individual-m spectra. To each m spectrum we fit a model,
\begin{displaymath}
P(\nu,m)=A_{\rm T}(m)T[\nu,\nu_{\rm T}(m)]+B_{\rm T}(m)\;,\end{displaymath} (12)
with the vertical scale $A_{\rm T}(m)$, background level $B_{\rm T}(m)$and central frequency $\nu_{\rm T}(m)$as the only free parameters. As already stated, we assume that each point of the spectrum is proportional to a chi-squared random variable with two degrees of freedom. The fit is then obtained by minimizing
\begin{displaymath}
M = \sum_{i=1}^{n_{\rm p}} {\rm log}y_{\rm m}(\nu_i) + y_i/2 y_{\rm m}(\nu_i),\end{displaymath} (13)
where the index i runs over the number $n_{\rm p}$ of data points in the fitting region (which extends roughly 10 times $\delta\nu$ either side of the central frequency), $\nu_i$ and yi are the values of the frequency and the power at each point in the fitting region, and $y_{\rm m}(\nu)$ is the model function. This is equivalent to maximizing the likelihood function, given the assumed chi-squared statistics. (See Anderson et al. 1990, for a discussion of this kind of fitting.) Any reasonable minimization technique can be used; in the example followed here, we used an IDL version of the DFPMIN routine from Press  et al. (1989).

From these crude fits we obtain an improved approximation to the m-dependence of the splitting $\delta\nu(n,l,m)$, defined by
\begin{displaymath}
\delta\nu(n,l,m)\ =\ {1\over 2}\left(\nu(n,l,-m)-\nu(n,l,m)\right)
\;,\end{displaymath} (14)
which is sufficient to provide a starting point for the iteration of more realistic fits. We next approximate the splitting as a function of m with a sum of Legendre polynomials Pi(m/L), where L=l+1/2, containing $n_{\rm a}$odd and even terms:
\begin{displaymath}
\delta\nu_{\rm model}(n,l,m)/L = \sum_{i=0}^{n_{\rm a}} a_i(n,l) P_i(m/L) \;.\end{displaymath} (15)
This expression for $\delta\nu$ is used in turn to recompute the collapse of the individual m spectra and yields an improved m-averaged spectrum.

In the next iteration, the template is obtained by fitting the m-averaged spectrum with a model that allows the leaks to have independent width, relative power and spacing, so that the template is given by
\begin{displaymath}
T(\nu,m)=\sum_{\delta l=-3}^3 P[\nu,\nu_0-\delta\nu(\delta l),
P_0(\delta l),\Gamma(\delta l)]+B_0,\end{displaymath} (16)
where $\delta\nu(\delta l)$ is now the separation of each ridge from the central frequency (for $\delta l\ne 0$). Thus we now determine a central frequency $\nu_0$, six constants $\delta\nu$, seven constants P0, seven constants $\Gamma$ and one background. Furthermore, the fitting is done separately over three ranges of m, to allow some variation with m of the leak power and spacing. This is illustrated in Fig. 12. The existence of such variation can be deduced even from a simplified version of the leakage calculation. The spacing variation arises because each leaked "peak" is really a doublet with $\delta m=\pm 1$ peaks, separated by about 2a1, where a1 is the leading rotational splitting coefficient as in Eq. (15). The strength of the two leaks varies, as illustrated in Fig. 3; and so as m goes from -l to l the main contribution to the power in the ridge shifts from the component that is farther from the target (l,m) to the one that is closer. Similar arguments apply to the leaks with $\vert\delta l\vert \gt 1$, though these leaks are triplets rather than doublets. Dividing the fits in this way does not appear to introduce any noticeable discontinuities in the results; the division was chosen after consideration both of the simple leakage model behaviour discussed above and the behaviour of the real data.

  
\begin{figure}
\epsfxsize= 7.8 cm
\vspace{0cm}
\hspace{4mm}{
\epsfbox {ds146612.eps}
}\vskip -.00 true cm
\vspace{3mm}\end{figure} Figure 12: The m-averaged spectra (symbols) for the l=150,n=4 mode, showing fits (solid curve) to a seven-peak model where all peaks have independent parameters, for a) $-150\leq m\leq -50$,b) $-50<m\leq 50$, and c) $50<m \leq 150$

Each template is then used as before over the appropriate range of m to obtain the final frequencies. Figure 13 shows the final splittings derived for our multiplet, again with the linear m-dependence removed to show the curvature.

  
\begin{figure}
\epsfxsize= 7.5 cm
\vspace{0cm}
\hspace{5mm}{
\epsfbox {ds146613.eps}
}\vskip -.00 true cm
\vspace{0cm}\end{figure} Figure 13: Splittings $\delta\nu$, as defined in Eq. (14), for the l=150,n=4 multiplet, with linear m-dependence removed. The solid curve shows the fitted $\delta\nu_{\rm model}$ as defined in Eq. (15)

next previous
Up: A strategy for fitting

Copyright The European Southern Observatory (ESO)