Revising the cross correlation technique at high spectral resolution

S. Zamora,1,2 A. I. Díaz1,2
1Departamento de Física Teórica, Universidad Autónoma de Madrid, 28049 Madrid, Spain
2CIAFF, Universidad Autónoma de Madrid, 28049 Madrid, Spain
E-mail: sandra.zamora@uam.es
(Accepted XXX. Received YYY; in original form ZZZ)
Abstract

Cross-correlation techniques have been used since 1974 for measuring velocity shifts and velocity dispersions from stellar and nebular spectra and, since 1979, the analysis based on the Fourier Method has been applied. However, we are currently obtaining data with spectral resolutions higher than those for which this technique was developed, hence some revision seems timely. The principal aim of this work is adapting Tonry and Davis’ method and implementing it for the treatment of very high spectral resolution data. We have applied this technique to two different sets of spectroscopic data of moderate and high resolutions obtained with the MUSE and MEGARA spectrographs respectively. Using stellar spectra obtained with these two instruments (i) we have optimised the input parameters; (ii) we have analysed the method assumptions; and (iii) we have compared the results for the two sets of data. For MEGARA data, we have found that the cross-correlation function lost its Gaussian behavior at higher resolutions. Thus, we have developed an equivalent mathematical method that can be used for this kind of data. Additionally, the velocity dispersion error analysis suggests that the greatest error introduced in this method is due to the subtraction or masking of the nebular lines. For the application of cross-correlation techniques to high spectral resolution data, we propose to calculate the galaxy-galaxy and star-galaxy correlations, with widths μggsubscript𝜇𝑔𝑔\mu_{gg}italic_μ start_POSTSUBSCRIPT italic_g italic_g end_POSTSUBSCRIPT and μgtsubscript𝜇𝑔𝑡\mu_{gt}italic_μ start_POSTSUBSCRIPT italic_g italic_t end_POSTSUBSCRIPT respectively. Then, the width of the broadening function can be calculated as σ=μgg2μgt2𝜎superscriptsubscript𝜇𝑔𝑔2superscriptsubscript𝜇𝑔𝑡2\sigma=\sqrt{\mu_{gg}^{2}-\mu_{gt}^{2}}italic_σ = square-root start_ARG italic_μ start_POSTSUBSCRIPT italic_g italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT - italic_μ start_POSTSUBSCRIPT italic_g italic_t end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG.

keywords:
galaxies: star clusters: general – galaxies: starburst – techniques: imaging spectroscopy – Astronomical instrumentation – methods – techniques
pubyear: 2015pagerange: Revising the cross correlation technique at high spectral resolutionRevising the cross correlation technique at high spectral resolution

1 Introduction

Cross-correlation techniques have been applied since several decades ago Simkin (1974) in order to derive objects’ redshifts and velocity dispersions by correlating the object’s spectrum with that of a reference star and measuring respectively the peak center and width of the found cross-correlation function. In Tonry & Davis (1979) a detailed correlation analysis based on the Fourier Method was presented. The use of the Fourier Transform algorithm reduces the operational and computing times, providing a straightforward determination of the cross correlation function. Additionally, an internal error measure of the correlation peak can be directly performed.

This technique can be applied to a large number of astronomical problems. Examples of these are: the derivation of the stellar velocity rotation, the gas and star velocity dispersion in different types of galaxies (including broad and narrow line active galaxies), or the study of regions with active star formation (i.e. Hägele et al., 2007; Nelson & Whittle, 1995).

Over at least half-a-century, numerous thorough method reviews have been presented by various authors, beginning with Davis et al. (1978) and followed by Moiseev (2001) or Greene & Ho (2006). However, we are currently obtaining data with instrument of characteristics very different from those used up to now that include a good number of spectrographs of very high spectral resolution. At this high resolutions, the cross correlation technique assumptions may not be correct, hence a revision of the method is required.

In this work, we have tested the widely used Tonry and Davis’ technique (Tonry & Davis, 1979) using data of moderate and high spectral resolutions obtained with two spectrographs currently in use: MUSE (R   2500) and MEGARA (R  6000 - 20000) adapting this method to the analysis of high spectral resolution data. We have chosen these two instruments just for illustration purposes although the results obtained can be generalised to any other since they do not depend on a given spectrograph but only on the spectral resolution.

In Section 2, we describe the observations used and the spectral resolution expected for each set of the data used. The cross correlation technique is introduced in Section 3 including the necessary mathematical concepts, the presentation of the original method, and the developing of the one proposed in this work, as well as the steps followed in the spectrum preparation required prior to the application of the method. Our analyses and results are presented in Section 4 for the MUSE and MEGARA data respectively. A discussion of the method assumptions at different spectral resolutions, the comparison between the traditional methodology and the new one presented here, and the analysis of the different errors involved in them are given in Section 5. Finally, the summary and conclusions of this work are given in Section 6.

2 Observations

In this work, we have used data from two different instruments in order to compare the traditional Tonry and Davis’ method (Tonry & Davis, 1979) and the proposed one at high spectral resolutions. We have used data from the Multi-Unit Spectroscopic Explorer (MUSE Bacon et al., 2010) and from the Multi-Espectrógrafo en GTC de Alta Resolución para Astronomía (MEGARA Carrasco et al., 2018). Both instruments are integral-field spectrographs (IFS) and are attached to one of the Very Large Telescopes (VLT) of the European Southern Observatory (ESO, Chile) and at the 10.4-m GTC telescope at La Palma Observatory (Spain) respectively. MUSE has a nominal dispersion of 1.25 Å/pixel with a spectral resolving power, RFWHM = λ/Δλ𝜆Δ𝜆\lambda/\Delta\lambdaitalic_λ / roman_Δ italic_λ, from 1770 (at 4800 Å) to 3590 (at 9300 Å) in the blue and red arms respectively. It covers the visible wavelength range from 4800 Å to 9300 Å . On the other hand, MEGARA has three observing modes: low resolution LR, medium resolution MR and high resolution HR providing R values from similar-to\sim 6000, 12000 and 20000 respectively, covering from 3654 Å to 9635 Å in different dispersion elements.

Table 1: Selected giants and super-giants MUSE stars from Ivanov et al. (2019).
Name RA DEC Sp Type Teff Logg Fe/H
HD 173158 18:43:45.3048425424 +05:44:14.622467928 K0 5164 ±plus-or-minus\pm± 121 0.87 ±plus-or-minus\pm± 0.43 0.04 ±plus-or-minus\pm± 0.20
HD 170820 18:32:13.1080081656 -19:07:26.333290848 K0III 4707 ±plus-or-minus\pm± 57 1.65 ±plus-or-minus\pm± 0.13 0.17
HD 099998 11:30:18.8933524920 -03:00:12.598924644 K3.5III 4001 ±plus-or-minus\pm± 32 1.56 ±plus-or-minus\pm± 0.20 -0.24 ±plus-or-minus\pm± 0.07
HD 232078 19:38:12.0696686280 +16:48:25.633514592 K3IIp 4295 ±plus-or-minus\pm± 48 0.82 ±plus-or-minus\pm± 0.27 -1.08 ±plus-or-minus\pm± 0.11
HD 114960 13:13:57.5656668240 +01:27:23.203612764 K5III 4000
HD 306799 11:36:34.8400229976 -61:36:35.189793504 M0Iab 3650
HD 102212 11:45:51.5595736 +06:31:45.741287 M1III 3738 ±plus-or-minus\pm± 6 1.55 ±plus-or-minus\pm± 0.10 -0.41 ±plus-or-minus\pm± 0.05
HD 101712 11:41:49.4048035632 -63:24:52.454152980 M3Iab 3200
HD 100733 11:35:13.2823419624 -47:22:21.284741784 M3III 3530
IRAS 15060+0947 15:08:25.7458537200 +09:36:18.371710980 M9III 3281
Table 2: Selected giants and super-giants MEGARA stars from García-Vargas et al. (2020).
Name RA J2000 (deg) DEC J2000 (deg) Spectral type Effective Temperature (K) log(g) [Fe/H]
HD042983 06:13:52.8 +02:48:31.9 K0 4633 3.23 0.00
HD105087 12:06:00.9 +14:38:56.7 K0 4966 4.16 -0.43
HD215704 22:46:20.4 +50:12:35.9 K0 5418 4.20 0.07
HD040801 06:03:17.9 +42:54:41.5 K01II 4740 2.94 -0.04
HD045829 06:30:02.3 +07:55:16.0 K0Iab 4500 0.20 0.00
HD027371 04:19:47.6 +15:37:39.5 K0III 4956 2.71 0.07
HD045410 06:30:47.1 +58:09:45.5 K0III 4838 2.34 0.17
HD100696 11:36:02.8 +69:19:22.6 K0III 4890 2.27 -0.25
HD107328 12:20:21.0 +03:18:45.3 K0III 4380 2.39 -0.48
HD131111 14:50:29.6 +37:16:19.4 K0III 4710 3.11 -0.29
HD147677 16:22:05.8 +30:53:31.2 K0III 4910 2.98 -0.08
HD063302 07:47:38.5 -15:59:26.5 K2Iab 4500 0.20 0.12
HD055280 07:15:54.9 +59:38:14.9 K2III 4623 2.54 0.08
HD072184 08:32:55.0 +38:00:58.9 K2III 4624 2.61 0.12
HD115136 13:13:28.0 +67:17:16.6 K2III 4541 2.40 0.05
HD017506 02:50:41.8 +55:53:43.8 K3I 3500 1.00 0.09
HD083425 09:38:27.3 +04:38:57.4 K3III 4120 1.77 -0.29
HD125560 14:19:45.2 +16:18:25.0 K3III 4426 2.42 0.00
HD034255 05:20:22.6 +62:39:13.4 K4I 3000 -0.23
HD126271 14:24:18.3 +08:05:04.6 K4III -0.12
HD131507 14:51:26.4 +59:17:38.4 K4III 4140 1.99 -0.20
HD149161 16:32:36.3 +11:29:16.9 K4III 3910 1.39 -0.17
HD044274 06:21:02.9 +02:34:07.6 M 4122 0.50 0.00
HD060501 07:35:03.0 +06:11:39.7 M 4003 0.50 0.00
HD042543 06:12:19.1 +22:54:30.7 M0Iab 3615 0.00 -0.42
HD039801 05:55:10.3 +07:24:25.4 M1-M2Ia-Iab 3547 0.03
HD035601 05:27:10.2 +29:55:15.8 M1.5Ia 3700 0.20
HD044537 06:24:53.9 +49:17:16.4 M2I 3055 0.08
HD078712 09:10:38.8 +30:57:47.3 M6III 3210 0.00 -0.11
HD196610 20:37:54.7 +18:16:06.9 M6III

In this work, we have used late-type giant and supergiant stars as templates. The sample stars have been selected from the MUSE and MEGARA stellar libraries presented in Ivanov et al. (2019) and García-Vargas et al. (2020) respectively. Tables 1 and 2 show the characteristics of each of the selected stars listing in columns 1 to 7: (1) the star name; (2,3) the right ascension and declination of the star; (4) its spectral type; (5) its effective temperature; (6) its surface gravity in logarithmic units; and (7) its metallicity.

The Ca II λλ𝜆𝜆\lambda\lambdaitalic_λ italic_λ 8498, 8542, 8662 Å triplet lines (CaT) have often been used to measure the velocity dispersion of stars in galaxies. The use of these features with respect to other ones present in galaxy spectra presents some advantages. First, the velocity resolution at longer wavelengths is higher than at the bluer part of the spectrum for the same spectral dispersion. At these wavelengths, we expect similar-to\sim 37.7 km/s and similar-to\sim 6.2 km/s spectral resolutions in σ𝜎\sigmaitalic_σ for the MUSE and MEGARA (using the HR-I mode, VPH 863) data respectively. Second, the measurement of these lines is not affected by the presence of TiO bands. And third, the CaT lines are dominated by young supergiant stars, much more luminous than red giants, whose strength increases with decreasing surface gravity (Diaz et al., 1989) (although they depend on metal abundance in the low metallicity regime, at moderate to high metallicities surface gravity becomes the dominant parameter governing these strengths). Also, they are less affected by the possible presence of an AGN since the dilution of stellar features due to the presence of a power-law continuum is lower at red wavelengths. Thus, they are especially suitable for the study the velocity dispersions of young star clusters located at the central regions of galaxies, as circumnuclear star-forming regions (CNSFRs).

Refer to caption
Figure 1: MUSE Giant and supergiant stars (upper and lower spectra respectively, see text).
Refer to caption
Refer to caption
Figure 2: MEGARA giant and supergiant stars (upper and lower panels respectively, see text).

Figures 1 and 2 show the stellar spectral range used in this work. Red and blue spectra correspond to red giant and supergiant stars respectively and at the end of each series the mean spectrum which has been used as template is shown. All the spectra have been corrected for velocity shifts so that no artificial broadening was introduced in the final templates. For our analysis, we have used a mean stellar template computed after aligning all selected spectra and verifying that no apparent broadening is introduced in the procedure. We have checked that the use of different stars of the same spectral type does not introduce errors in the correlation results. Nevertheless, the use of only two stellar types as templates can introduce errors in the velocity dispersion measurements of a given star cluster or galaxy due to the presence of different stellar types with different luminosities. The possible mismatch between the stellar template and the cluster or galaxy lines has been minimised by using the CaT lines since they are very strong in most stars except for the hottest ones. However, it is important to emphasise that our work constitutes only a method revision and its application should be adapted to each particular scientific case.

3 Cross Correlation Technique

3.1 Correlation theoretical concepts

The convolution product has been applied with discrete Fourier transforms, using the Convolution, the Correlation and the Parseveral Theorems. For two generic functions, s(t) p(t), these theorems can respectively be abbreviated as:

F[s(t)p(t)](k)=S(k)P(k)𝐹delimited-[]𝑠𝑡𝑝𝑡𝑘𝑆𝑘𝑃𝑘F\left[s(t)\ast p(t)\right](k)=S(k)\cdot P(k)italic_F [ italic_s ( italic_t ) ∗ italic_p ( italic_t ) ] ( italic_k ) = italic_S ( italic_k ) ⋅ italic_P ( italic_k )
F[s(t)p(t)](k)=P(k)S(k)𝐹delimited-[]tensor-product𝑠𝑡𝑝𝑡𝑘𝑃𝑘superscript𝑆𝑘F\left[s(t)\otimes p(t)\right](k)=P(k)\cdot S^{*}(k)italic_F [ italic_s ( italic_t ) ⊗ italic_p ( italic_t ) ] ( italic_k ) = italic_P ( italic_k ) ⋅ italic_S start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT ( italic_k )
ns(n)2=1Nk|S(k)|2subscript𝑛𝑠superscript𝑛21𝑁subscript𝑘superscript𝑆𝑘2\displaystyle\sum_{n}s(n)^{2}=\frac{1}{N}\displaystyle\sum_{k}|S(k)|^{2}∑ start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT italic_s ( italic_n ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT = divide start_ARG 1 end_ARG start_ARG italic_N end_ARG ∑ start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT | italic_S ( italic_k ) | start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT

where F𝐹Fitalic_F denotes the discrete Fourier transform, \ast means the convolution product, tensor-product\otimes means the cross correlation product, S(K)𝑆𝐾S(K)italic_S ( italic_K ) and P(k)𝑃𝑘P(k)italic_P ( italic_k ) are the Discrete Fourier Transforms of s(t)𝑠𝑡s(t)italic_s ( italic_t ) and p(t)𝑝𝑡p(t)italic_p ( italic_t ) functions respectively, and S(K)𝑆𝐾S*(K)italic_S ∗ ( italic_K ) and |S(k)|𝑆𝑘|S(k)|| italic_S ( italic_k ) | are the complex conjugate and the module of S(k)𝑆𝑘S(k)italic_S ( italic_k ) respectively. The spectra will be considered periodic in N in order to calculate the discrete Fourier transforms.

The method is based on the idea that galaxy spectra can be represented by a star spectrum convolved with a broadening function:

g(n)α[t(n)b(nδ)]similar-to𝑔𝑛𝛼delimited-[]𝑡𝑛𝑏𝑛𝛿g(n)\sim\alpha[t(n)\ast b(n-\delta)]italic_g ( italic_n ) ∼ italic_α [ italic_t ( italic_n ) ∗ italic_b ( italic_n - italic_δ ) ] (1)

where \ast stands for the convolution product, g(n)𝑔𝑛g(n)italic_g ( italic_n ) is the galaxy spectrum, α𝛼\alphaitalic_α is the number of stars, t(n)𝑡𝑛t(n)italic_t ( italic_n ) is the template spectrum, b(n)𝑏𝑛b(n)italic_b ( italic_n ) is the broadening function and δ𝛿\deltaitalic_δ is the offset of the broadening function with respect to the template. This equation can be understood as the galaxy spectrum being a sum of different star spectra with different velocity offsets.

The broadening function will be assumed to be a Gaussian:

b(n)=12πσen22σ2𝑏𝑛12𝜋𝜎superscript𝑒superscript𝑛22superscript𝜎2b(n)=\frac{1}{\sqrt{2\pi}\sigma}e^{-\frac{n^{2}}{2\sigma^{2}}}italic_b ( italic_n ) = divide start_ARG 1 end_ARG start_ARG square-root start_ARG 2 italic_π end_ARG italic_σ end_ARG italic_e start_POSTSUPERSCRIPT - divide start_ARG italic_n start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 italic_σ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG end_POSTSUPERSCRIPT (2)

whose Fourier transform is:

B(k)=n12πσen22σ2e2πinkN=e(2σπk)22N22πσne[n+(2σ2πikN)]2(2σ)2𝐵𝑘subscript𝑛12𝜋𝜎superscript𝑒superscript𝑛22superscript𝜎2superscript𝑒2𝜋𝑖𝑛𝑘𝑁superscript𝑒superscript2𝜎𝜋𝑘22superscript𝑁22𝜋𝜎subscript𝑛superscript𝑒superscriptdelimited-[]𝑛2superscript𝜎2𝜋𝑖𝑘𝑁2superscript2𝜎2B(k)=\displaystyle\sum_{n}\frac{1}{\sqrt{2\pi}\sigma}e^{-\frac{n^{2}}{2\sigma^% {2}}}e^{-\frac{2\pi ink}{N}}=\frac{e^{-\frac{\left(2\sigma\pi k\right)^{2}}{2N% ^{2}}}}{\sqrt{2\pi}\sigma}\displaystyle\sum_{n}e^{-\frac{\left[n+\left(\frac{2% \sigma^{2}\pi ik}{N}\right)\right]^{2}}{(\sqrt{2}\sigma)^{2}}}italic_B ( italic_k ) = ∑ start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT divide start_ARG 1 end_ARG start_ARG square-root start_ARG 2 italic_π end_ARG italic_σ end_ARG italic_e start_POSTSUPERSCRIPT - divide start_ARG italic_n start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 italic_σ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG end_POSTSUPERSCRIPT italic_e start_POSTSUPERSCRIPT - divide start_ARG 2 italic_π italic_i italic_n italic_k end_ARG start_ARG italic_N end_ARG end_POSTSUPERSCRIPT = divide start_ARG italic_e start_POSTSUPERSCRIPT - divide start_ARG ( 2 italic_σ italic_π italic_k ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 italic_N start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG end_POSTSUPERSCRIPT end_ARG start_ARG square-root start_ARG 2 italic_π end_ARG italic_σ end_ARG ∑ start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT italic_e start_POSTSUPERSCRIPT - divide start_ARG [ italic_n + ( divide start_ARG 2 italic_σ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_π italic_i italic_k end_ARG start_ARG italic_N end_ARG ) ] start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG ( square-root start_ARG 2 end_ARG italic_σ ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG end_POSTSUPERSCRIPT

Taking into account the approximation en2/σ2πσsimilar-tosuperscript𝑒superscript𝑛2superscript𝜎2𝜋𝜎\sum e^{n^{2}/\sigma^{2}}\sim\sqrt{\pi}\sigma∑ italic_e start_POSTSUPERSCRIPT italic_n start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT / italic_σ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_POSTSUPERSCRIPT ∼ square-root start_ARG italic_π end_ARG italic_σ this can be writen as:

B(k)e(2σπk)22N2similar-to𝐵𝑘superscript𝑒superscript2𝜎𝜋𝑘22superscript𝑁2B(k)\sim e^{-\frac{\left(2\sigma\pi k\right)^{2}}{2N^{2}}}italic_B ( italic_k ) ∼ italic_e start_POSTSUPERSCRIPT - divide start_ARG ( 2 italic_σ italic_π italic_k ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 italic_N start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG end_POSTSUPERSCRIPT (3)

Also, a Gaussian amplitude of stellar Fourier transform can be assumed:

|T(k)|=σt(2πNτπ)1/2e(2πτk)22N2𝑇𝑘subscript𝜎𝑡superscript2𝜋𝑁𝜏𝜋12superscript𝑒superscript2𝜋𝜏𝑘22superscript𝑁2|T(k)|=\sigma_{t}\left(\frac{2\pi N\tau}{\sqrt{\pi}}\right)^{1/2}e^{-\frac{(2% \pi\tau k)^{2}}{2N^{2}}}| italic_T ( italic_k ) | = italic_σ start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT ( divide start_ARG 2 italic_π italic_N italic_τ end_ARG start_ARG square-root start_ARG italic_π end_ARG end_ARG ) start_POSTSUPERSCRIPT 1 / 2 end_POSTSUPERSCRIPT italic_e start_POSTSUPERSCRIPT - divide start_ARG ( 2 italic_π italic_τ italic_k ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 italic_N start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG end_POSTSUPERSCRIPT (4)

3.2 Cross correlations methods

In this work, we have calculated three cross correlations: (i) the correlation of the galaxy spectrum with itself; (ii) the correlation of the star spectrum with itself; and (iii) the correlation of the galaxy spectrum with the star spectrum. We have used the following normalisation:

σg2=1Nng(n)2σt2=1Nnt(n)2formulae-sequencesuperscriptsubscript𝜎𝑔21𝑁subscript𝑛𝑔superscript𝑛2superscriptsubscript𝜎𝑡21𝑁subscript𝑛𝑡superscript𝑛2\sigma_{g}^{2}=\frac{1}{N}\displaystyle\sum_{n}g(n)^{2}\qquad\sigma_{t}^{2}=% \frac{1}{N}\displaystyle\sum_{n}t(n)^{2}italic_σ start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT = divide start_ARG 1 end_ARG start_ARG italic_N end_ARG ∑ start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT italic_g ( italic_n ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_σ start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT = divide start_ARG 1 end_ARG start_ARG italic_N end_ARG ∑ start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT italic_t ( italic_n ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT

The correlation of the galaxy spectrum with itself can be calculated as:

cgg(n)=g(n)g(n)|norm=1Nσg2mg(m)g(mn)subscript𝑐𝑔𝑔𝑛evaluated-attensor-product𝑔𝑛𝑔𝑛𝑛𝑜𝑟𝑚1𝑁superscriptsubscript𝜎𝑔2subscript𝑚𝑔𝑚𝑔𝑚𝑛c_{gg}(n)=g(n)\otimes g(n)|_{norm}=\frac{1}{N\sigma_{g}^{2}}\displaystyle\sum_% {m}g(m)\cdot g(m-n)italic_c start_POSTSUBSCRIPT italic_g italic_g end_POSTSUBSCRIPT ( italic_n ) = italic_g ( italic_n ) ⊗ italic_g ( italic_n ) | start_POSTSUBSCRIPT italic_n italic_o italic_r italic_m end_POSTSUBSCRIPT = divide start_ARG 1 end_ARG start_ARG italic_N italic_σ start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG ∑ start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT italic_g ( italic_m ) ⋅ italic_g ( italic_m - italic_n )

In the Fourier form:

Cgg(k)=F[cgg(n)]=F[g(n)g(n)]norm=1Nσg2G(k)G(k)=1Nσg2|G(k)|2=α2Nσg2|T(k)B(k)|2=α2Nσg2|T(k)|2|B(k)|2=2πτα2σt2σg2πexp[k22(N/2π2τ2+2σ2)2]\begin{split}C_{gg}(k)=F[c_{gg}(n)]=F[g(n)\otimes g(n)]_{norm}=\frac{1}{N% \sigma_{g}^{2}}G(k)\cdot G(k)*\\ =\frac{1}{N\sigma_{g}^{2}}|G(k)|^{2}=\frac{\alpha^{2}}{N\sigma_{g}^{2}}|T(k)% \cdot B(k)|^{2}=\frac{\alpha^{2}}{N\sigma_{g}^{2}}|T(k)|^{2}\cdot|B(k)|^{2}\\ =\frac{2\pi\tau\alpha^{2}\sigma_{t}^{2}}{\sigma_{g}^{2}\sqrt{\pi}}\cdot exp% \left[{\frac{-k^{2}}{2\cdot\left(\nicefrac{{N}}{{2\pi\sqrt{2\tau^{2}+2\sigma^{% 2}}}}\right)^{2}}}\right]\end{split}start_ROW start_CELL italic_C start_POSTSUBSCRIPT italic_g italic_g end_POSTSUBSCRIPT ( italic_k ) = italic_F [ italic_c start_POSTSUBSCRIPT italic_g italic_g end_POSTSUBSCRIPT ( italic_n ) ] = italic_F [ italic_g ( italic_n ) ⊗ italic_g ( italic_n ) ] start_POSTSUBSCRIPT italic_n italic_o italic_r italic_m end_POSTSUBSCRIPT = divide start_ARG 1 end_ARG start_ARG italic_N italic_σ start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG italic_G ( italic_k ) ⋅ italic_G ( italic_k ) ∗ end_CELL end_ROW start_ROW start_CELL = divide start_ARG 1 end_ARG start_ARG italic_N italic_σ start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG | italic_G ( italic_k ) | start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT = divide start_ARG italic_α start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG italic_N italic_σ start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG | italic_T ( italic_k ) ⋅ italic_B ( italic_k ) | start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT = divide start_ARG italic_α start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG italic_N italic_σ start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG | italic_T ( italic_k ) | start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ⋅ | italic_B ( italic_k ) | start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_CELL end_ROW start_ROW start_CELL = divide start_ARG 2 italic_π italic_τ italic_α start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_σ start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG italic_σ start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT square-root start_ARG italic_π end_ARG end_ARG ⋅ italic_e italic_x italic_p [ divide start_ARG - italic_k start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 ⋅ ( / start_ARG italic_N end_ARG start_ARG 2 italic_π square-root start_ARG 2 italic_τ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT + 2 italic_σ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG end_ARG ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG ] end_CELL end_ROW (5)

The correlation of the star spectrum with itself can be calculated as:

ctt(n)=t(n)t(n)|norm=1Nσt2mt(m)t(mn)subscript𝑐𝑡𝑡𝑛evaluated-attensor-product𝑡𝑛𝑡𝑛𝑛𝑜𝑟𝑚1𝑁superscriptsubscript𝜎𝑡2subscript𝑚𝑡𝑚𝑡𝑚𝑛c_{tt}(n)=t(n)\otimes t(n)|_{norm}=\frac{1}{N\sigma_{t}^{2}}\displaystyle\sum_% {m}t(m)\cdot t(m-n)italic_c start_POSTSUBSCRIPT italic_t italic_t end_POSTSUBSCRIPT ( italic_n ) = italic_t ( italic_n ) ⊗ italic_t ( italic_n ) | start_POSTSUBSCRIPT italic_n italic_o italic_r italic_m end_POSTSUBSCRIPT = divide start_ARG 1 end_ARG start_ARG italic_N italic_σ start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG ∑ start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT italic_t ( italic_m ) ⋅ italic_t ( italic_m - italic_n )

In the Fourier form:

Ctt(k)=F[ctt(n)]=F[t(n)t(n)]norm=1Nσt2T(k)T(k)=1Nσg2|T(k)|2=2πτπexp[k22(N/2π2τ)]\begin{split}C_{tt}(k)=F[c_{tt}(n)]=F[t(n)\otimes t(n)]_{norm}=\frac{1}{N% \sigma_{t}^{2}}T(k)\cdot T(k)*\\ =\frac{1}{N\sigma_{g}^{2}}|T(k)|^{2}=\frac{2\pi\tau}{\sqrt{\pi}}\cdot exp\left% [\frac{-k^{2}}{2\cdot\left(\nicefrac{{N}}{{2\pi\sqrt{2}\tau}}\right)}\right]% \end{split}start_ROW start_CELL italic_C start_POSTSUBSCRIPT italic_t italic_t end_POSTSUBSCRIPT ( italic_k ) = italic_F [ italic_c start_POSTSUBSCRIPT italic_t italic_t end_POSTSUBSCRIPT ( italic_n ) ] = italic_F [ italic_t ( italic_n ) ⊗ italic_t ( italic_n ) ] start_POSTSUBSCRIPT italic_n italic_o italic_r italic_m end_POSTSUBSCRIPT = divide start_ARG 1 end_ARG start_ARG italic_N italic_σ start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG italic_T ( italic_k ) ⋅ italic_T ( italic_k ) ∗ end_CELL end_ROW start_ROW start_CELL = divide start_ARG 1 end_ARG start_ARG italic_N italic_σ start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG | italic_T ( italic_k ) | start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT = divide start_ARG 2 italic_π italic_τ end_ARG start_ARG square-root start_ARG italic_π end_ARG end_ARG ⋅ italic_e italic_x italic_p [ divide start_ARG - italic_k start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 ⋅ ( / start_ARG italic_N end_ARG start_ARG 2 italic_π square-root start_ARG 2 end_ARG italic_τ end_ARG ) end_ARG ] end_CELL end_ROW (6)

Finally, the correlation of the galaxy spectrum with the star spectrum can be calculated as:

cgt(n)=g(n)t(n)|norm=1Nσtσgmg(m)t(mn)subscript𝑐𝑔𝑡𝑛evaluated-attensor-product𝑔𝑛𝑡𝑛𝑛𝑜𝑟𝑚1𝑁subscript𝜎𝑡subscript𝜎𝑔subscript𝑚𝑔𝑚𝑡𝑚𝑛c_{gt}(n)=g(n)\otimes t(n)|_{norm}=\frac{1}{N\sigma_{t}\sigma_{g}}% \displaystyle\sum_{m}g(m)\cdot t(m-n)italic_c start_POSTSUBSCRIPT italic_g italic_t end_POSTSUBSCRIPT ( italic_n ) = italic_g ( italic_n ) ⊗ italic_t ( italic_n ) | start_POSTSUBSCRIPT italic_n italic_o italic_r italic_m end_POSTSUBSCRIPT = divide start_ARG 1 end_ARG start_ARG italic_N italic_σ start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT italic_σ start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT end_ARG ∑ start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT italic_g ( italic_m ) ⋅ italic_t ( italic_m - italic_n )

In the Fourier form:

Cgt(k)=F[cgt(n)]=F[g(n)t(n)]norm=1NσtσgG(k)T(k)=1NσtσgF[α[t(n)b(nδ)]]T(k)=αNσtσgB(k)|T(k)|2=2πτασtσgπexp[k22(N/2π2τ2+σ2)2]subscript𝐶𝑔𝑡𝑘𝐹delimited-[]subscript𝑐𝑔𝑡𝑛𝐹subscriptdelimited-[]tensor-product𝑔𝑛𝑡𝑛𝑛𝑜𝑟𝑚1𝑁subscript𝜎𝑡subscript𝜎𝑔𝐺𝑘superscript𝑇𝑘1𝑁subscript𝜎𝑡subscript𝜎𝑔𝐹delimited-[]𝛼delimited-[]𝑡𝑛𝑏𝑛𝛿superscript𝑇𝑘𝛼𝑁subscript𝜎𝑡subscript𝜎𝑔𝐵𝑘superscript𝑇𝑘22𝜋𝜏𝛼subscript𝜎𝑡subscript𝜎𝑔𝜋𝑒𝑥𝑝delimited-[]superscript𝑘22superscript𝑁2𝜋2superscript𝜏2superscript𝜎22\begin{split}C_{gt}(k)=F[c_{gt}(n)]=F[g(n)\otimes t(n)]_{norm}=\frac{1}{N% \sigma_{t}\sigma_{g}}G(k)\cdot T^{*}(k)\\ =\frac{1}{N\sigma_{t}\sigma_{g}}F[\alpha[t(n)\ast b(n-\delta)]]\cdot T^{*}(k)=% \frac{\alpha}{N\sigma_{t}\sigma_{g}}B(k)\cdot|T(k)|^{2}\\ =\frac{2\pi\tau\alpha\sigma_{t}}{\sigma_{g}\sqrt{\pi}}\cdot exp\left[{\frac{-k% ^{2}}{2\cdot\left(\nicefrac{{N}}{{2\pi\sqrt{2\tau^{2}+\sigma^{2}}}}\right)^{2}% }}\right]\end{split}start_ROW start_CELL italic_C start_POSTSUBSCRIPT italic_g italic_t end_POSTSUBSCRIPT ( italic_k ) = italic_F [ italic_c start_POSTSUBSCRIPT italic_g italic_t end_POSTSUBSCRIPT ( italic_n ) ] = italic_F [ italic_g ( italic_n ) ⊗ italic_t ( italic_n ) ] start_POSTSUBSCRIPT italic_n italic_o italic_r italic_m end_POSTSUBSCRIPT = divide start_ARG 1 end_ARG start_ARG italic_N italic_σ start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT italic_σ start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT end_ARG italic_G ( italic_k ) ⋅ italic_T start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT ( italic_k ) end_CELL end_ROW start_ROW start_CELL = divide start_ARG 1 end_ARG start_ARG italic_N italic_σ start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT italic_σ start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT end_ARG italic_F [ italic_α [ italic_t ( italic_n ) ∗ italic_b ( italic_n - italic_δ ) ] ] ⋅ italic_T start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT ( italic_k ) = divide start_ARG italic_α end_ARG start_ARG italic_N italic_σ start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT italic_σ start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT end_ARG italic_B ( italic_k ) ⋅ | italic_T ( italic_k ) | start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_CELL end_ROW start_ROW start_CELL = divide start_ARG 2 italic_π italic_τ italic_α italic_σ start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT end_ARG start_ARG italic_σ start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT square-root start_ARG italic_π end_ARG end_ARG ⋅ italic_e italic_x italic_p [ divide start_ARG - italic_k start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 ⋅ ( / start_ARG italic_N end_ARG start_ARG 2 italic_π square-root start_ARG 2 italic_τ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT + italic_σ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG end_ARG ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG ] end_CELL end_ROW (7)

3.3 Velocity dispersion from the correlation peak

A Gaussian behaviour of the correlation peak has been assumed, centered at δ𝛿\deltaitalic_δ and with dispersion μ𝜇\muitalic_μ:

c(n)c(δ)e(nδ)22μ2similar-to𝑐𝑛𝑐𝛿superscript𝑒superscript𝑛𝛿22superscript𝜇2c(n)\sim c(\delta)\cdot e^{-\frac{(n-\delta)^{2}}{2\mu^{2}}}italic_c ( italic_n ) ∼ italic_c ( italic_δ ) ⋅ italic_e start_POSTSUPERSCRIPT - divide start_ARG ( italic_n - italic_δ ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 italic_μ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG end_POSTSUPERSCRIPT (8)

whose Fourier transform is:

C(k)=c(δ)neδ22μ2e(n+2μ2πikNδ)22μ2e(2μ2πikNδ)22μ2𝐶𝑘𝑐𝛿subscript𝑛superscript𝑒superscript𝛿22superscript𝜇2superscript𝑒superscript𝑛2superscript𝜇2𝜋𝑖𝑘𝑁𝛿22superscript𝜇2superscript𝑒superscript2superscript𝜇2𝜋𝑖𝑘𝑁𝛿22superscript𝜇2C(k)=c(\delta)\displaystyle\sum_{n}e^{-\frac{\delta^{2}}{2\mu^{2}}}e^{-\frac{% \left(n+\frac{2\mu^{2}\pi ik}{N}-\delta\right)^{2}}{2\mu^{2}}}e^{\frac{\left(% \frac{2\mu^{2}\pi ik}{N}-\delta\right)^{2}}{2\mu^{2}}}italic_C ( italic_k ) = italic_c ( italic_δ ) ∑ start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT italic_e start_POSTSUPERSCRIPT - divide start_ARG italic_δ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 italic_μ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG end_POSTSUPERSCRIPT italic_e start_POSTSUPERSCRIPT - divide start_ARG ( italic_n + divide start_ARG 2 italic_μ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_π italic_i italic_k end_ARG start_ARG italic_N end_ARG - italic_δ ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 italic_μ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG end_POSTSUPERSCRIPT italic_e start_POSTSUPERSCRIPT divide start_ARG ( divide start_ARG 2 italic_μ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_π italic_i italic_k end_ARG start_ARG italic_N end_ARG - italic_δ ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 italic_μ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG end_POSTSUPERSCRIPT

Taking into account the approximation en2/σ2πσsimilar-tosuperscript𝑒superscript𝑛2superscript𝜎2𝜋𝜎\sum e^{n^{2}/\sigma^{2}}\sim\sqrt{\pi}\sigma∑ italic_e start_POSTSUPERSCRIPT italic_n start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT / italic_σ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_POSTSUPERSCRIPT ∼ square-root start_ARG italic_π end_ARG italic_σ it can be writen as:

C(k)c(δ)2πμie2πikδiNexp[k22(N/2πμ)2]similar-to𝐶𝑘𝑐𝛿2𝜋subscript𝜇𝑖superscript𝑒2𝜋𝑖𝑘subscript𝛿𝑖𝑁𝑒𝑥𝑝delimited-[]superscript𝑘22superscript𝑁2𝜋𝜇2C(k)\sim c(\delta)\sqrt{2\pi}\mu_{i}\cdot e^{-\frac{2\pi ik\delta_{i}}{N}}% \cdot exp\left[-\frac{k^{2}}{2\left(\nicefrac{{N}}{{2\pi\mu}}\right)^{2}}\right]italic_C ( italic_k ) ∼ italic_c ( italic_δ ) square-root start_ARG 2 italic_π end_ARG italic_μ start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ⋅ italic_e start_POSTSUPERSCRIPT - divide start_ARG 2 italic_π italic_i italic_k italic_δ start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_ARG start_ARG italic_N end_ARG end_POSTSUPERSCRIPT ⋅ italic_e italic_x italic_p [ - divide start_ARG italic_k start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 ( / start_ARG italic_N end_ARG start_ARG 2 italic_π italic_μ end_ARG ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG ] (9)

The comparison between this last equation and the results of the three calculated cross-correlation functions (see Sec. 3.2) establishes relationships between the correlation peaks, μgg,tt,gtsubscript𝜇𝑔𝑔𝑡𝑡𝑔𝑡\mu_{gg,tt,gt}italic_μ start_POSTSUBSCRIPT italic_g italic_g , italic_t italic_t , italic_g italic_t end_POSTSUBSCRIPT, the template width in the Fourier space, τ𝜏\tauitalic_τ, and the broadening function width, σ𝜎\sigmaitalic_σ. From Eqs. 5 and 9:

μgg2=2τ2+2σ2superscriptsubscript𝜇𝑔𝑔22superscript𝜏22superscript𝜎2\mu_{gg}^{2}=2\tau^{2}+2\sigma^{2}italic_μ start_POSTSUBSCRIPT italic_g italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT = 2 italic_τ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT + 2 italic_σ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT (10)

From Eqs. 6 and 9:

μtt2=2τ2superscriptsubscript𝜇𝑡𝑡22superscript𝜏2\mu_{tt}^{2}=2\tau^{2}italic_μ start_POSTSUBSCRIPT italic_t italic_t end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT = 2 italic_τ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT (11)

From Eqs. 7 and 9:

μgt2=2τ2+σ2superscriptsubscript𝜇𝑔𝑡22superscript𝜏2superscript𝜎2\mu_{gt}^{2}=2\tau^{2}+\sigma^{2}italic_μ start_POSTSUBSCRIPT italic_g italic_t end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT = 2 italic_τ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT + italic_σ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT (12)

Combining these three last equations, we can fit a Gaussian to the correlation functions and derive the broadening function width, which is related to the velocity dispersion to be measured. From Eqs. 10 and 11:

σ2=μgg2μtt22superscript𝜎2subscriptsuperscript𝜇2𝑔𝑔subscriptsuperscript𝜇2𝑡𝑡2\sigma^{2}=\frac{\mu^{2}_{gg}-\mu^{2}_{tt}}{2}italic_σ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT = divide start_ARG italic_μ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_g italic_g end_POSTSUBSCRIPT - italic_μ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_t italic_t end_POSTSUBSCRIPT end_ARG start_ARG 2 end_ARG (13)

From Eqs. 10 and 12:

σ2=μgg2μgt2superscript𝜎2subscriptsuperscript𝜇2𝑔𝑔subscriptsuperscript𝜇2𝑔𝑡\sigma^{2}=\mu^{2}_{gg}-\mu^{2}_{gt}italic_σ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT = italic_μ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_g italic_g end_POSTSUBSCRIPT - italic_μ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_g italic_t end_POSTSUBSCRIPT (14)

From Eqs. 11 and 12:

σ2=μgt2μtt2superscript𝜎2subscriptsuperscript𝜇2𝑔𝑡subscriptsuperscript𝜇2𝑡𝑡\sigma^{2}=\mu^{2}_{gt}-\mu^{2}_{tt}italic_σ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT = italic_μ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_g italic_t end_POSTSUBSCRIPT - italic_μ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_t italic_t end_POSTSUBSCRIPT (15)

This last equation is the one proposed by Tonry & Davis (1979). The other two equations are equivalent to this one being their assumptions and mathematical development analogous to the original method.

3.4 Spectrum preparation for the correlation analysis

Each spectrum analysed with the cross-correlation technique should be binned into logarithmic wavelengths in order to get a uniform velocity shift. Let λ𝜆\lambdaitalic_λ be the wavelength of the spectrum and n the equivalent bin number; then we can apply the following equation:

n(λ)=Aln(λ)+B𝑛𝜆𝐴𝑙𝑛𝜆𝐵n(\lambda)=A\cdot ln(\lambda)+Bitalic_n ( italic_λ ) = italic_A ⋅ italic_l italic_n ( italic_λ ) + italic_B (16)

where A and B are constants for each spectrum.

The number of the sampled bins depends on the velocity resolution, ΔvΔ𝑣\Delta vroman_Δ italic_v, which we need to obtain. If the wavelength range of the analysed spectrum is between λ1subscript𝜆1\lambda_{1}italic_λ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT and λ2subscript𝜆2\lambda_{2}italic_λ start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT, the minimum number of bins that should be used to not lose spectral resolution can be calculated as:

N=ln(λ2/λ1)ln(Δv/c+1)𝑁𝑙𝑛subscript𝜆2subscript𝜆1𝑙𝑛Δ𝑣𝑐1N=\frac{ln(\lambda_{2}/\lambda_{1})}{ln(\Delta v/c+1)}italic_N = divide start_ARG italic_l italic_n ( italic_λ start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT / italic_λ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ) end_ARG start_ARG italic_l italic_n ( roman_Δ italic_v / italic_c + 1 ) end_ARG (17)

where c is the speed of light in the same units of ΔvΔ𝑣\Delta vroman_Δ italic_v. Using this value, we can calculate the A and B constant values from Eq. 16:

B=N(1ln(λ2)ln(λ1))𝐵𝑁1𝑙𝑛subscript𝜆2𝑙𝑛subscript𝜆1B=N\cdot\left(1-\frac{ln(\lambda_{2})}{ln(\lambda_{1})}\right)italic_B = italic_N ⋅ ( 1 - divide start_ARG italic_l italic_n ( italic_λ start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ) end_ARG start_ARG italic_l italic_n ( italic_λ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ) end_ARG ) (18)
A=Nln(λ1)(1ln(λ2)ln(λ1))𝐴𝑁𝑙𝑛subscript𝜆11𝑙𝑛subscript𝜆2𝑙𝑛subscript𝜆1A=-\frac{N}{ln(\lambda_{1})}\cdot\left(1-\frac{ln(\lambda_{2})}{ln(\lambda_{1}% )}\right)italic_A = - divide start_ARG italic_N end_ARG start_ARG italic_l italic_n ( italic_λ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ) end_ARG ⋅ ( 1 - divide start_ARG italic_l italic_n ( italic_λ start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ) end_ARG start_ARG italic_l italic_n ( italic_λ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ) end_ARG ) (19)

Any emission line present in the spectrum should be removed. Also, the continuum spectrum should be subtracted. A second order polynomial is sufficient to model this component since any mistake made will be corrected in the following steps.

The final step in the spectrum preparation is filtering the high and low frequency variations that can affect the velocity dispersion determination. They are associated with noise components and errors in the continuum subtraction respectively. This filtering is performed by applying a band-pass to the Fourier spectrum transform with minimum and maximum wave numbers, kmin and kmax which can be calculated as follows:

kmin=N2πAln(1Δλmax/λ1)subscript𝑘𝑚𝑖𝑛𝑁2𝜋𝐴𝑙𝑛1Δsuperscript𝜆𝑚𝑎𝑥subscript𝜆1k_{min}=\frac{N}{2\pi A\cdot ln\left(1-\Delta\lambda^{max}/\lambda_{1}\right)}italic_k start_POSTSUBSCRIPT italic_m italic_i italic_n end_POSTSUBSCRIPT = divide start_ARG italic_N end_ARG start_ARG 2 italic_π italic_A ⋅ italic_l italic_n ( 1 - roman_Δ italic_λ start_POSTSUPERSCRIPT italic_m italic_a italic_x end_POSTSUPERSCRIPT / italic_λ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ) end_ARG (20)
kmax=N2πAln(1Δλmin/(2λ22ln(2)))subscript𝑘𝑚𝑎𝑥𝑁2𝜋𝐴𝑙𝑛1Δsuperscript𝜆𝑚𝑖𝑛2subscript𝜆22𝑙𝑛2k_{max}=\frac{N}{2\pi A\cdot ln\left(1-\Delta\lambda^{min}/\left(2\cdot\lambda% _{2}\sqrt{2\cdot ln(2)}\right)\right)}italic_k start_POSTSUBSCRIPT italic_m italic_a italic_x end_POSTSUBSCRIPT = divide start_ARG italic_N end_ARG start_ARG 2 italic_π italic_A ⋅ italic_l italic_n ( 1 - roman_Δ italic_λ start_POSTSUPERSCRIPT italic_m italic_i italic_n end_POSTSUPERSCRIPT / ( 2 ⋅ italic_λ start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT square-root start_ARG 2 ⋅ italic_l italic_n ( 2 ) end_ARG ) ) end_ARG (21)

where ΔλminΔsuperscript𝜆𝑚𝑖𝑛\Delta\lambda^{min}roman_Δ italic_λ start_POSTSUPERSCRIPT italic_m italic_i italic_n end_POSTSUPERSCRIPT and ΔλmaxΔsuperscript𝜆𝑚𝑎𝑥\Delta\lambda^{max}roman_Δ italic_λ start_POSTSUPERSCRIPT italic_m italic_a italic_x end_POSTSUPERSCRIPT are the minimum and maximum detail that we expect in each spectrum. We have assumed as the minimum value the nominal spectral resolution in Å, and as the maximum value 10 Å, a size significantly larger than the width of the absorption lines in each spectrum.

4 Analysis and results

We have used the mean spectrum of all stars presented above to calculate the broadening function of MUSE and MEGARA data aiming to check: (i) the traditional methodology proposed by Tonry and Davis (Tonry & Davis, 1979, from Eq. 15) and (ii) the other two proposed in this work (from Eq. 13 and Eq. 14). Additionally, we have analysed the results of the frequency filtering in the data and we have quantified the effects of the spectrum preparation steps in the results.

4.1 Application to MUSE data

First, we have selected wavelengths between 8450Å and 8850 Å in order to exclude the [OI]λ𝜆\lambdaitalic_λ 8446 Å and Pa11 lines. We have binned the template spectrum into logarithmic wavelengths using N = 512 bins which corresponds to a uniform velocity shift of ΔΔ\Deltaroman_Δv = 27.1 km/s, lower than the nominal velocity resolution of MUSE. Using Eqs. 19 and 18 we have evaluated the constants as A = 11070.03 and B = -100094.31.

Next, we have calculated and subtracted the continuum spectrum, also masking emission nebular lines and absorption stellar lines using widths of 6 Å and 20 Å respectively, and we have fitted a quadratic equation.

Later, we have used the N value and the selected wavelengths to calculate the band-pass filter constants using Eqs. 20 and 21. The selected wave numbers in the Fourier space for MUSE data are kminsubscript𝑘𝑚𝑖𝑛k_{min}italic_k start_POSTSUBSCRIPT italic_m italic_i italic_n end_POSTSUBSCRIPT similar-to\sim 3 and kmaxsubscript𝑘𝑚𝑎𝑥k_{max}italic_k start_POSTSUBSCRIPT italic_m italic_a italic_x end_POSTSUBSCRIPT similar-to\sim 60 which correspond to a bin number shift between 1.4 and 26.2. Thus, the Fourier transform of each spectrum has been multiplied by the following function:

f(k)={0if k < 1.5k/1.51if 1.5< k < 3 1if 3< k < 60k/60+2if 60< k < 120 0if k > 120𝑓𝑘cases0if k < 1.5𝑘1.51if 1.5< k < 31if 3< k < 60𝑘602if 60< k < 120 0if k > 120f(k)=\begin{cases*}0&if k < 1.5\\ \ k/1.5-1&if 1.5< k < 3\\ \ 1&if 3< k < 60\\ \ -k/60+2&if 60< k < 120\\ \ 0&if k > 120\end{cases*}italic_f ( italic_k ) = { start_ROW start_CELL 0 end_CELL start_CELL if k < 1.5 end_CELL end_ROW start_ROW start_CELL italic_k / 1.5 - 1 end_CELL start_CELL if 1.5< k < 3 end_CELL end_ROW start_ROW start_CELL 1 end_CELL start_CELL if 3< k < 60 end_CELL end_ROW start_ROW start_CELL - italic_k / 60 + 2 end_CELL start_CELL if 60< k < 120 end_CELL end_ROW start_ROW start_CELL 0 end_CELL start_CELL if k > 120 end_CELL end_ROW (22)
Refer to caption
Figure 3: MUSE star spectrum after resampling into logarithmic wavelengths and applying the pass-band filter for the higher frequencies.

Figure 3 shows the result of this filtering at high frequencies. The original spectrum and the filtered one are shown as dotted and solid lines respectively. We can see that the filter application removes the noise component of the analysed spectrum.

Refer to caption
Refer to caption
Figure 4: Upper panel: Amplitude of the Fourier transform of the MUSE stellar template (red triangles), this template convolved with a Gaussian function (blue triangles) and the cross correlation of the two (purple dots). Lower panel: Fourier transform phase of the same functions with the same colour coding.

In order to verify if the frequency filter is well applied, we have simulated a cluster spectrum convolving the stellar template with a known Gaussian function of width σ𝜎\sigmaitalic_σ = 1.09 Å, which corresponds to the MUSE spectral resolution. Figure 4 shows, in the upper and lower panels respectively, the phase and the amplitude of the cross-correlation function in the Fourier space as a function of wave number. Red triangles show the template results; blue triangles show the results of the simulated cluster spectrum; and purple dots show the results of the correlation between the two. Vertical grey lines mark the kmax and 2\cdotkmax values used for the band-pass filter. We can see that the phase becomes random at higher values of the 2\cdotkmax value while the amplitude is compatible with zero in the same range. Hence, we can conclude that the chosen kmax values are correct.

4.2 Application to MEGARA data

In this case, we have selected the same wavelength range although the needed number of bins is now larger, N = 4096 (ΔΔ\Deltaroman_Δv = 3.4 km/s), corresponding to a value lower than the velocity resolution of HR-I MEGARA setup. The appropriate binning constants are A = 88560.21 and B = -800754.52. As in the case of MUSE data, nebular and stellar lines have been removed.

Then, we have applied the band-pass filter with wave numbers in Fourier space kminsubscript𝑘𝑚𝑖𝑛k_{min}italic_k start_POSTSUBSCRIPT italic_m italic_i italic_n end_POSTSUBSCRIPT similar-to\sim 3 and kmaxsubscript𝑘𝑚𝑎𝑥k_{max}italic_k start_POSTSUBSCRIPT italic_m italic_a italic_x end_POSTSUBSCRIPT similar-to\sim 350 corresponding to bin number shifts between 1.9 and 209.4:

f(k)={0if k < 1.5k/1.51if 1.5< k < 3 1if 3< k < 350k/350+2if 350< k < 700 0if k > 700𝑓𝑘cases0if k < 1.5𝑘1.51if 1.5< k < 31if 3< k < 350𝑘3502if 350< k < 700 0if k > 700f(k)=\begin{cases*}0&if k < 1.5\\ \ k/1.5-1&if 1.5< k < 3\\ \ 1&if 3< k < 350\\ \ -k/350+2&if 350< k < 700\\ \ 0&if k > 700\end{cases*}italic_f ( italic_k ) = { start_ROW start_CELL 0 end_CELL start_CELL if k < 1.5 end_CELL end_ROW start_ROW start_CELL italic_k / 1.5 - 1 end_CELL start_CELL if 1.5< k < 3 end_CELL end_ROW start_ROW start_CELL 1 end_CELL start_CELL if 3< k < 350 end_CELL end_ROW start_ROW start_CELL - italic_k / 350 + 2 end_CELL start_CELL if 350< k < 700 end_CELL end_ROW start_ROW start_CELL 0 end_CELL start_CELL if k > 700 end_CELL end_ROW (23)
Refer to caption
Refer to caption
Figure 5: MEGARA star spectrum after resampling into logarithmic wavelengths and applying the pass-band filter for the higher frequencies (upper panel) and the lower ones (bottom panel).

Figure 5 shows the result of this filtering on the data. The upper panel shows the effect of the high frequency variation whose behaviour is similar to the case of MUSE data. The lower panel shows the effect of the low frequency filter which corrects the errors in the continuum subtraction as expected.

Refer to caption
Refer to caption
Figure 6: Upper panel: Amplitude of the Fourier transform of the MEGARA stellar template (red triangles), this template convolves with a Gaussian function (blue triangles) and the cross correlation of the two previous ones (purple dots). Lower panel: Phase of the same functions mentioned above. The color code is the same as in the upper panel.

In this case, we have convolved the stellar template with a Gaussian function with σ𝜎\sigmaitalic_σ = 0.18 (MEGARA spectral resolution, HR-I setup) to check if the filter application is correct. Figure 6 shows the phase (upper panel) and the amplitude (lower panel) of the cross-correlation function (the color code is the same as in Fig. 4). Vertical grey lines mark the values used in the band-pass filter (kmax = 350 and 2\cdotkmax = 700 values). This result is similar to that found for MUSE data: at higher wave number values the phase is random and the amplitude of the correlation function is compatible with zero.

5 Discussion

5.1 Method assumptions at different spectral resolutions

The main purpose of this work is to test the method and assumptions of the classical cross-correlation technique. The principal assumptions of this method are: (i) the broadening function is assumed to be a Gaussian; (ii) the cross-correlation function has a Gaussian behavior and (iii) the amplitude of stellar Fourier transform can also be represented by a Gaussian. The first one depends on the particular scientific case to which this methodology is applied since it is based on the idea that the analysed spectrum can be well represented by a star spectrum convolved with a broadening function. This is true, for example, in the case of Seyfert galaxies, circumnuclear star-forming regions and HII regions (Greene & Ho, 2006; Hägele et al., 2007; Nelson & Whittle, 1995; Moiseev, 2001).

Refer to caption
Refer to caption
Figure 7: Autocorrelation functions for each star from MUSE (upper panel) and MEGARA (lower panel) data. Giant and supergiant stars are marked with red and blue lines respectively.

In order to evaluate the second assumption, we have correlated each stellar template with itself; this cross correlation is the one carrying the instrumental resolution information and therefore is usually narrower than the star-to-galaxy or galaxy-to-galaxy cross-correlation, hence in very high resolution data it can become too narrow to be adequately represented by a Gaussian function.

Figure 7 shows the results obtained for all the stars used in this work observed with the MUSE and MEGARA instruments (upper and lower panels respectively). First, we can see that all the stars observed with each of the instruments present similar widths and therefore we are not introducing errors by using their mean value as the star template in our analysis. Then, it is also important to emphasise that MUSE star-to-star cross correlation functions present a Gaussian behaviour and hence the assumption (ii) of the method is correct and therefore applicable at this instrumental resolution. However, the results obtained for MEGARA data show just the opposite: the correlation peak is too narrow and cannot be approximated by a Gaussian function. Thus, the application of the Tonry & Davis’ method to this kind of data would overestimate the obtained velocity dispersion and any quantity derived from it, including the calculation of dynamical masses.

Refer to caption
Figure 8: Amplitude of the Fourier transform of the MUSE (purple line) and MEGARA (green line) stellar templates. Lines made of triangles and dots show the Gaussian fits performed for these two functions respectively.

Finally, Figure 8 shows the Fourier transform amplitudes of MUSE and MEGARA templates (in purple and green respectively); triangle and dot lines correspond to the two fitted Gaussian functions. The central peak of each one corresponds to the low frequency variations which are removed from the correlation function after the band-pass filtering. We can see that in both cases a Gaussian amplitude can be assumed, thus the assumption (iii) remains valid at high spectral resolutions.

5.2 Comparison among methods

We have verified the spectral resolution range at which the traditional correlation method and the two ones proposed in this work are valid. In order to do that, we have convolved each stellar template spectrum with known Gaussian functions of different σ𝜎\sigmaitalic_σ values, simulating velocity dispersions from 10 km/s to 200 km/s in steps of similar-to\sim 10 km/s for MUSE data and from 2 km/s to 100 km/s in steps of similar-to\sim 5 km/s for MEGARA data. These spectra have been then cross-correlated with the original template and the output broadening function widths have been calculated.

Refer to caption
Refer to caption
Figure 9: Velocity dispersion obtained from the three cross correlation methods studied in this work: the traditional Tonry & Davis’ method (purple dots), the one obtained from [g tensor-product\otimes g] and [t tensor-product\otimes t] (red squares) and from [g tensor-product\otimes g] and [g tensor-product\otimes t] (green triangles). The results from MUSE and MEGARA data are shown in the upper and lower panel respectively. Error bars have the same length for all the points.

The upper panel of Figure 9 shows the comparison between input and output broadening function widths for the three methods proposed in Sec. 3.1 for MUSE data. Purple dots show Tonry & Davis’ method results; red squares show the results using the galaxy-to-galaxy and star-to-star cross correlations, and green triangles show the results in the case of using the galaxy-to-galaxy and galaxy-to-star cross correlations. We can see, at the MUSE spectral resolution the results are entirely compatible within the errors for the tree methods which confirms the results of the previous section that Tonry & Davis’ method can be safely applied at MUSE spectral resolution. Also an asymptotic behavior is found at σ𝜎\sigmaitalic_σ = 0.765 Å (ΔΔ\Deltaroman_Δv = 26.51 km/s) that probably corresponds to the empirical spectral resolution of the data, that is somewhat lower than the nominal one (σ𝜎\sigmaitalic_σ = 2.556 Å, ΔΔ\Deltaroman_Δv = 37.62 km/s).

The lower panel of the figure shows the same comparison described above but for MEGARA data. In this case, we can see that the two methods which include the star-to-star correlation are not able to recover the input velocity dispersion. At this spectral resolution Tonry & Davis’ method fails being the most discrepant one. In fact it overestimates the derived velocity dispersions by factors ranging from 25 % at a sigma of 100 km/s to 220 % at a sigma of 12 km/s. These discrepancies would propagate to any derived quantity. In particular, dynamical masses scale with the square of the velocity dispersion, hence for velocity dispersions of 100 km/s the derived masses would be overestimated by about 50%; however at low velocity dispersions, as the ones being sought with the use of high resolution data, the derived masses would be overestimated by about one order of magnitude. The best technique to use is the one including the two broader correlation functions, g(n) tensor-product\otimes g(n) and g(n) tensor-product\otimes t(n), and, even in this case, discrepancies begin to appear at the lower velocity dispersion values, although they are always within the errors. Therefore this is the recommended method to be applied for high spectral resolution data and results found by the usual application of Tonry & Davis’ method cannot be considered as correct.

Refer to caption
Figure 10: Velocity dispersion correction for MEGARA data for the three cross correlation methods studied in this work: the traditional Tonry & Davis (purple dots) and the ones obtained from [g tensor-product\otimes g] and [t tensor-product\otimes t] (red squares) and [g tensor-product\otimes g] and [g tensor-product\otimes t] (green triangles).

We have used Fig. 9 to quantify the differences between measured and real velocity dispersions in the two methods which include the star-to-star correlation. Fig. 10 shows these differences. A second order polynomial has been fitted for each method, from 10 km/s to 120 km/s, in order to estimate a correction for the MEGARA spectral resolution. For the traditional Tonry & Davis’ method, the correction applied can be calculated using the following equation:

σ=1.8339+0.2212σmeasured+0.004858(σmeasured)2𝜎1.83390.2212subscript𝜎𝑚𝑒𝑎𝑠𝑢𝑟𝑒𝑑0.004858superscriptsubscript𝜎𝑚𝑒𝑎𝑠𝑢𝑟𝑒𝑑2\sigma=-1.8339+0.2212\cdot\sigma_{measured}+0.004858\cdot(\sigma_{measured})^{2}italic_σ = - 1.8339 + 0.2212 ⋅ italic_σ start_POSTSUBSCRIPT italic_m italic_e italic_a italic_s italic_u italic_r italic_e italic_d end_POSTSUBSCRIPT + 0.004858 ⋅ ( italic_σ start_POSTSUBSCRIPT italic_m italic_e italic_a italic_s italic_u italic_r italic_e italic_d end_POSTSUBSCRIPT ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT (24)

where σ𝜎\sigmaitalic_σ is the real velocity dispersion in km/s and σmeasuredsubscript𝜎𝑚𝑒𝑎𝑠𝑢𝑟𝑒𝑑\sigma_{measured}italic_σ start_POSTSUBSCRIPT italic_m italic_e italic_a italic_s italic_u italic_r italic_e italic_d end_POSTSUBSCRIPT is the measured one in the same units. For the method [g tensor-product\otimes g] - [t tensor-product\otimes t] the correction is given by:

σ=6.9671+0.6014σmeasured+0.003154(σmeasured)2𝜎6.96710.6014subscript𝜎𝑚𝑒𝑎𝑠𝑢𝑟𝑒𝑑0.003154superscriptsubscript𝜎𝑚𝑒𝑎𝑠𝑢𝑟𝑒𝑑2\sigma=-6.9671+0.6014\cdot\sigma_{measured}+0.003154\cdot(\sigma_{measured})^{2}italic_σ = - 6.9671 + 0.6014 ⋅ italic_σ start_POSTSUBSCRIPT italic_m italic_e italic_a italic_s italic_u italic_r italic_e italic_d end_POSTSUBSCRIPT + 0.003154 ⋅ ( italic_σ start_POSTSUBSCRIPT italic_m italic_e italic_a italic_s italic_u italic_r italic_e italic_d end_POSTSUBSCRIPT ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT (25)

5.3 Error analysis

Refer to caption
Refer to caption
Figure 11: upper panels: Cross correlations between frequency filtered and not filtered functions (solid and dotted lines respectively). From left to right are shown: g(v) tensor-product\otimes t(v), t(v) tensor-product\otimes t(v), and g(v) tensor-product\otimes g(v) in units of velocity. Lower panels: Cross correlations between functions with and without nebular component (dotted and solid lines respectively). Left and right panels show the g(v) tensor-product\otimes t(v) and g(v) tensor-product\otimes g(v) correlation functions.

We have analysed the errors that can occur in two of the steps of the application of the method. The first one is the frequency filtering, and it is shown in the upper panels of Figure 11 that show from left to right the galaxy-to-star, star-to-star and galaxy-to-galaxy cross correlation functions for MEGARA data. Two different lines, solid and dotted, show the results for a filtered spectrum using the values given above (see Sec. 4.2) and a non-filtered one respectively. We can see that the filtering only has an effect on the step level of the correlation peak, hence the velocity dispersion calculations are not affected by errors associated with this part of the procedure.

The second important step is the subtraction of the non-stellar component from the spectrum. If we want to apply this method to galaxies or star clusters the removal of the nebular component is necessary. In order to evaluate the involved errors, we have simulated a nebula ionised by a young star cluster synthesised using the PopStar code (Mollá et al., 2009) with Salpeter’s IMF (Salpeter, 1955) IMF with lower and upper mass limits of 0.85 and 120 M respectively. We have selected an age of 5 Myr, and constant electron density of 100 cm-3. A cluster with 4 ×\times× 104 M and a nebular and stellar velocity dispersion of 20 km/s has been calculated to represent the simulated clusters. From the Hβ𝛽\betaitalic_β calculated emission line intensity, the equivalent Paschen lines have been obtained with the PyNeb tool (Luridiana et al., 2015) for ne(cm-3) = 102 and T(K) = 104 values using Storey & Hummer (1995) atomic data.

The lower panels of Figure 11 show the galaxy-to-star and the galaxy-to-galaxy cross correlations respectively, and the correlation without and with nebular emission lines are shown by solid and dotted lines. We can see that the shape of the correlation function peaks and their width are modified, introducing errors in the obtained results. In this particular case, the different measured velocities differ in 4.8 km/s.

Tonry & Davis (1979) proposed estimating the internal error of the method from the asymmetric part of the correlation peak, calculating its root mean square. However, after our analysis we can conclude that, at high spectral resolution, this value is not representative of the real measurement error since our main error sources come from the spectrum preparation and the measurement procedure, and not from the quality of the data themselves. Thus, we propose estimating the velocity dispersion errors considering the asymmetries in the correlation peak caused by the entire procedure, calculating the largest and smallest Gaussian width that can be fitted. The corresponding error will be the semi-difference between these two values.

6 Conclusions

In this work, we have applied Tonry and Davis’ technique (Tonry & Davis, 1979) to MUSE and MEGARA data in order to evaluate its validity at intermediate and high spectral resolutions. For this purpose, we have used as galaxy spectra convolutions of the stellar template spectrum with known Gaussian functions of different widths. The comparison between the input and output broadening functions shows that the application of Tonry and Davis’ method is entirely compatible within the errors for MUSE data but this is not the case for the higher resolution data obtained by MEGARA. This is due to the main assumption of the cross-correlation technique not being fulfilled: the cross-correlation function does not present a Gaussian behavior in the star-to-star correlation at this high spectral resolution.

Therefore, we have adapted Tonry and Davis’ method by developing a mathematical equivalent one using the galaxy-to-galaxy correlation instead of the star-to-star correlation which is the one carrying the instrumental resolution information and therefore is the narrower of the three, hence in very high resolution data can become too narrow to be adequately represented by a Gaussian function. At this spectral resolution Tonry & Davis’ method fails entirely, overestimating the derived velocity dispersions by factors up to about 3.5. Taking into account that derived dynamical masses scale with the square of the velocity dispersion, these latter ones would be overestimated by up to a factor of about 10. According to these results the recommended method to be applied for high spectral resolution data is the one using the galaxy-to-galaxy and star-to-galaxy correlations. Results found by the usual application of Tonry & Davis’ method cannot be considered as correct when applied to high spectral resolution data.

An error analysis shows that the internal errors of the method are unrealistically low and not representative of the real measurement errors. Therefore, we propose estimating errors by calculating the largest and smallest Gaussian widths that can be fitted to the principal correlation peak and using the semi-difference between these two values.

Acknowledgements

This work has been supported by Spanish grants from the former Ministry of Economy, Industry and Competitiveness through the MINECO-FEDER research grant AYA2016-79724-C4-1-P, the present Ministry of Science and Innovation through research grant PID2019-107408GB-C42 and the National Research Agency through research grant AEI/10.13039/501100011033.

S.Z. acknowledges the support from contract: BES-2017-080509 associated to the first of these grants.

Data Availability

The data on which this article is based can be found in the web page of the MEGASTAR stellar library111https://www.fractal-es.com/megaragtc-stellarlibrary/private/home.

References

  • Bacon et al. (2010) Bacon, R., Accardo, M., Adjali, L., et al. 2010, Society of Photo-Optical Instrumentation Engineers (SPIE) Conference Series, Vol. 7735, The MUSE second-generation VLT instrument, 773508
  • Carrasco et al. (2018) Carrasco, E., Gil de Paz, A., Gallego, J., et al. 2018, in Society of Photo-Optical Instrumentation Engineers (SPIE) Conference Series, Vol. 10702, Ground-based and Airborne Instrumentation for Astronomy VII, ed. C. J. Evans, L. Simard, & H. Takami, 1070216
  • Davis et al. (1978) Davis, M., Geller, M. J., & Huchra, J. 1978, ApJ, 221, 1
  • Diaz et al. (1989) Diaz, A. I., Terlevich, E., & Terlevich, R. 1989, MNRAS, 239, 325
  • García-Vargas et al. (2020) García-Vargas, M. L., Carrasco, E., Mollá, M., et al. 2020, MNRAS, 493, 871
  • Greene & Ho (2006) Greene, J. E. & Ho, L. C. 2006, ApJ, 641, 117
  • Hägele et al. (2007) Hägele, G. F., Díaz, Á. I., Cardaci, M. V., Terlevich, E., & Terlevich, R. 2007, MNRAS, 378, 163
  • Ivanov et al. (2019) Ivanov, V. D., Coccato, L., Neeser, M. J., et al. 2019, A&A, 629, A100
  • Luridiana et al. (2015) Luridiana, V., Morisset, C., & Shaw, R. A. 2015, A&A, 573, A42
  • Moiseev (2001) Moiseev, A. V. 2001, Bulletin of the Special Astrophysics Observatory, 51, 11
  • Mollá et al. (2009) Mollá, M., García-Vargas, M. L., & Bressan, A. 2009, MNRAS, 398, 451
  • Nelson & Whittle (1995) Nelson, C. H. & Whittle, M. 1995, ApJS, 99, 67
  • Salpeter (1955) Salpeter, E. E. 1955, ApJ, 121, 161
  • Simkin (1974) Simkin, S. M. 1974, A&A, 31, 129
  • Storey & Hummer (1995) Storey, P. J. & Hummer, D. G. 1995, MNRAS, 272, 41
  • Tonry & Davis (1979) Tonry, J. & Davis, M. 1979, AJ, 84, 1511