# Deciphering stellar chorus: apollinaire, a Python 3 module for Bayesian peakbagging in helioseismology and asteroseismology

S. N. Breton, R. A. García, J. Ballot, V. Delsanti, D. Salabert

► To cite this version:

S. N. Breton, R. A. García, J. Ballot, V. Delsanti, D. Salabert. Deciphering stellar chorus: apollinaire, a Python 3 module for Bayesian peakbagging in helioseismology and asteroseismology. Astronomy and Astrophysics - A&A, 2022, 663, 10.1051/0004-6361/202243330. insu-03745324

HAL Id: insu-03745324

https://insu.hal.science/insu-03745324

Submitted on 4 Aug 2022

HAL is a multi-disciplinary open access
archive for the deposit and dissemination of sci-
entific research documents, whether they are pub-
lished or not. The documents may come from
teaching and research institutions in France or
abroad, or from public or private research centers.

L'archive ouverte pluridisciplinaire HAL, est
destinée au dépôt et à la diffusion de documents
scientifiques de niveau recherche, publiés ou non,
émanant des établissements d'enseignement et de
recherche français ou étrangers, des laboratoires
publics ou privés.

<figure><img src="image_1.png" /></figure>

Distributed under a Creative Commons Attribution 4.0 International License
# Deciphering stellar chorus: apollinaire, a Python 3 module for Bayesian peakbagging in helioseismology and asteroseismology

S. N. Breton<fnref n="1" />, R. A. García<fnref n="1" />, J. Ballot<fnref n="2" />, V. Delsanti<fnref n="3" />,<fnref n="1" /> and D. Salabert<fnref n="4" />

Received 15 February 2022 / Accepted 6 May 2022

## ABSTRACT

Since the asteroseismic revolution, the availability of efficient and reliable methods to extract stellar-oscillation mode parameters has been an important part of modern stellar physics. In the fields of helio- and asteroseismology, these methods are usually referred to as peakbagging. Here, we introduce the *apollinaire* module, a new Python 3 open-source Markov chain Monte Carlo (MCMC) framework dedicated to peakbagging. We extensively describe the theoretical framework necessary to understand MCMC peakbagging methods for disk-integrated helio- and asteroseismic observations. In particular, we present the models that are used to estimate the posterior probability function in a peakbagging framework. A description of the *apollinaire* module is then provided. We explain how the module enables stellar background, p-mode global pattern, and individual-mode parameter extraction. By taking into account instrumental specificities, stellar inclination angle, rotational splittings, and asymmetries, the module allows a large variety of p-mode models to be fitted that are suited for solar and stellar data analysis with different instruments. After presenting a validation of the module with a Monte Carlo fitting trial on synthetic data, it is benchmarked by comparing its outputs with results obtained with other peakbagging codes. We present our analysis of the power spectral density (PSD) of 89 one-year subseries of GOLF observations. We also selected six stars from the *Kepler* LEGACY sample in order to demonstrate the code abilities on asteroseismic data. The parameters we extract with *apollinaire* are in good agreement with those presented in the literature and demonstrate the precision and reliability of the module.

**Key words.** Sun: helioseismology – asteroseismology – stars: oscillations – methods: data analysis – stars: solar-type

## 1. Introduction

Models implemented in stellar evolution codes require strong constraints in order to accurately infer stellar ages (Appourchaux et al. 2012; Davies et al. 2016; Lund et al. 2017; Silva Aguirre et al. 2017; Tayar et al. 2020). When available, stellar seismic parameters such as pressure-mode (p-mode) frequencies provide excellent constraints on the inputs required for stellar modelling. Reliable tools to infer those parameters from observations are therefore necessary.

The theory behind p modes has been extensively described (e.g. Unno et al. 1989; Christensen-Dalsgaard 2008, and references therein) while solar-like oscillations have been abundantly observed in the Sun with helioseismic facilities such as the Global Oscillations at Low Frequency instrument (GOLF, Gabriel et al. 1995), the Variability of solar IRradiance and Gravity Oscillations instrument (VIRGO, Fröhlich et al. 1995), the Solar Oscillations Investigation's Michelson Doppler Imager instrument (SOI/MDI, Scherrer et al. 1995), the Helioseismic Magnetic Imager instrument (HMI, Scherrer et al. 2012), the Global Oscillations Network Group (GONG, Harvey et al. 1996), the Birmingham Solar Oscillations Network (BiSON, Chaplin et al. 1996), and the solar counterpart of the Stellar Observations Network Group (Solar-SONG, Pallé et al. 2013; Fredslund Andersen et al. 2019; Breton et al. 2022), as well in main

sequence solar-like stars (e.g. Appourchaux et al. 2014; Lund et al. 2017), subgiants (e.g. Kjeldsen et al. 1995), and red giants, from the red giant branch to the clump (e.g. Beck et al. 2011; Mosser et al. 2011; Bedding et al. 2011). Following space missions such as the Microvariability and Oscillations of STars mission (MOST, Matthews et al. 2000), the Convection, Rotation, and planetary Transit satellite (CoRoT, Auvergne et al. 2009) and especially *Kepler*/K2 (Borucki et al. 2011; Howell et al. 2014)<fnref n="1" />, the golden years of solar-like-star asteroseismology are not over yet, with the Transiting Exoplanet Survey Satellite (TESS, Ricker et al. 2015) currently taking place and the launch of the PLAnetary Transits and Oscillations of stars mission (PLATO, Rauer et al. 2014) on the horizon in 2026. Ground-based stellar observations provided by networks such as SONG (Grundahl et al. 2007, 2017) also provide asteroseismic data that will benefit from our analysis tools.

Helio- and asteroseismic parameter fitting (usually referred to as peakbagging) is a topic that has been extensively discussed in the literature over recent decades. The parameter inference may follow a frequentist approach through the use of maximum-likelihood estimator (MLE; see e.g. Toutain & Appourchaux 1994; Appourchaux et al. 1998) methods or a

<footnote n="1">¹ AIM, CEA, CNRS, Université Paris-Saclay, Université de Paris, Sorbonne Paris Cité, 91191 Gif-sur-Yvette, France
e-mail: sylvain.breton@cea.fr</footnote>

<footnote n="2">² IRAP, CNRS, Université de Toulouse, UPS-OMP, CNES 14 avenue Edouard Belin, 31400 Toulouse, France</footnote>

<footnote n="3">³ CentraleSupélec, 3 Rue Joliot Curie, 91190 Gif-sur-Yvette, France</footnote>

<footnote n="4">⁴ Université Côte d'Azur, Observatoire de la Côte d'Azur, CNRS, Laboratoire Lagrange, France</footnote>

<footnote n="1">¹ For sake of completeness, the observation of α Ursae Majoris by the Wide-field InfraRed Explorer (WIRE, Buzasi et al. 2000) satellite must also be mentioned for its precursor role.</footnote>
Bayesian approach, with for example implementation of maximum a posteriori algorithms (MAP; see e.g. Gaulme et al. 2009), Monte Carlo Markov chains methods (MCMC, see e.g. Benomar et al. 2009; Gruberbauer et al. 2009, 2013; Handberg & Campante 2011; Gruberbauer & Guenther 2013; Deheuvels et al. 2015; Davies et al. 2016; Lund et al. 2017; Nielsen et al. 2021), or nested Monte Carlo (see e.g. Corsaro & De Ridder 2014; Corsaro et al. 2020).

The apollinaire<fnref n="2" /> package is designed to provide a ready-to-use, consistent, and flexible open-source MCMC peakbagging framework for solar and stellar time series. It has already been used in several publications (Hill et al. 2021; Breton et al. 2022; Huber et al. 2022; Mathur et al. 2022; Smith et al. 2022). The code is fully written in Python 3. Available solar time series being unequaled in quality and length, their specificities were fully taken into account during the development phase of the module. The difficulties of stellar peakbagging were also exhaustively considered in order to provide an automated process for p-mode parameter extraction. Therefore, apollinaire is able to perform fits globally, by order ($\ell = \{0, 1, 2, 3\}$), by pair ($\ell = \{0, 2\}$ or $\{1, 3\}$), or for a single mode, and to extract parameters such as mode splittings, stellar inclination angles, and the choice of symmetric or asymmetric Lorentzian profiles (see e.g. Nigam & Kosovichev 1998; Korzennik 2005). Similar automated frameworks with the Interactive Data Language (IDL) or Python interface have already been developed in the past few years (see e.g. Fast and AutoMated pEak bagging with DIAMONDS (FAMED) from Corsaro et al. 2020, or PBJam from Nielsen et al. 2021). With the upcoming PLATO mission at the end of the decade, the existence of a wide diversity of peakbagging open source modules will be a considerable asset for the asteroseismic community, as it will allow non-expert peakbaggers to easily access ready-to-use frameworks for p-mode parameters extraction.

The layout of this paper is as follows. Section 2 presents the principles of parameter fitting in a Bayesian framework and extensively describes the set of models that are implemented in apollinaire. Section 3 provides a detailed presentation of how these models are used in the different steps of the apollinaire framework. Section 4 presents an extended benchmark of the module, with comparison of published results from helioseimic and asteroseismic data. Usual fitting strategies are discussed in Sect. 5 while conclusions and perspectives for improvement of the current apollinaire releases are provided in Sect. 6.

## 2. Model spectrum

In this paper, we exclusively focus on peakbagging methods for full-disk-integrated time series. The single-sided power spectral density (PSD) is taken as the squared modulus of the Fourier transform of a given time series with the following calibration (e.g. Press et al. 1992; García 2015) verifying the Parseval theorem:

$$ \int_{0}^{v_N} \text{PSD}(v)dv = \sigma^2, \qquad (1) $$

where $v_N$ is the Nyquist frequency of the spectrum and $\sigma$ is the rms value of the temporal signal.

The goal of the peakbagging process is to extract stellar background parameters and global and individual oscillation mode

parameters from the PSD. After briefly describing the principle of mode fitting in a Bayesian framework, we present and extensively describe the background and p-mode models implemented in apollinaire in the following subsections.

### 2.1. Statistics

The PSD follows a $\chi^2$ distribution with two degrees of freedom (Woodard 1984). The likelihood of an ideal spectrum S parametrised by a set of parameters $\theta$ and considered against an observed spectrum $S_{\text{obs}}$ at a given set of k frequency bins $v_i$ is:

$$ \mathcal{L}(S_{\text{obs}}, \theta) = \prod_{i=1}^{k} \frac{1}{S(v_i, \theta)} \exp \left[ -\frac{S_{\text{obs},i}}{S(v_i, \theta)} \right]. \qquad (2) $$

This expression of the likelihood assumes that all frequency bins are independent, an assumption that is theoretically fulfilled only for uninterrupted, evenly sampled observations. However, in the case of high-duty-cycle time series, the independence assumption can be made without introducing any bias in the parameter estimation (Stahn & Gizon 2008; Davies et al. 2016). The cases of significant gaps is discussed in Sect. 2.7.

The goal of a Bayesian approach is to sample the posterior probability $p(\theta|S_{\text{obs}})$ defined as:

$$ p(\theta|S_{\text{obs}}) = \frac{p(S_{\text{obs}}|\theta)p(\theta)}{p(S_{\text{obs}})}, \qquad (3) $$

where $p(S_{\text{obs}}|\theta)$ is the likelihood $\mathcal{L}$, $p(\theta)$ is the prior probability, and $p(S_{\text{obs}})$ is a normalisation factor. The prior probability forms the core of the Bayesian approach and contains the information we have before confronting the model to the data. In practice, the function that will be sampled is a normalised measure of the posterior distribution, $\mathcal{L}(S_{\text{obs}}, \theta)p(\theta)$. The strength of this approach is that it allows the fitter to evaluate the shape of the probability distribution of the model parameters. Moreover, parameter uncertainties can be extracted directly from it, while the MLE approach only provides a lower bound on the uncertainty, obtained through a Hessian inversion (for more details about the Hessian matrix see Toutain & Appourchaux 1994).

### 2.2. Background model

The power distribution in the PSD can be separated between the p-mode contribution and a stellar background (see e.g. Mathur et al. 2010; Kallinger et al. 2014). The global spectrum can then be modelled in the following way:

$$ S(v) = B(v) + P(v), \qquad (4) $$

with B the background contribution and P the p-mode contribution.

The background is dominated at high frequency by a photon noise term $P_n$. At low frequency, the effects of stellar activity and surface rotation are visible together with long-period instrumental variations (see e.g. García 2015). In the presence of stellar activity alone, these low-frequency regions can be modelled through a power law (Mathur et al. 2010). However, it is difficult to define a general functional profile for both rotational modulations and instrumental effects, and these contributions are not taken into account in apollinaire. Therefore, when power excesses due to such effects are identified in the PSD, the minimal frequency chosen for the background analysis should

<footnote n="2">² This paper describes the v1.1 of the module, for which additional documentation can be found at https://apollinaire.readthedocs.io/en/v1.1/</footnote>
be set sufficiently high to prevent their contribution from biasing the fitted profile. In the case of *Kepler*, the typical period of the instrumental effects is ~40–45 days (see e.g. Santos et al. 2019; Breton et al. 2021) which corresponds to frequency regions below ~0.3 µHz. The location of the rotational modulations in the PSD depends of course on the surface rotation period of the considered stars, but also on the power distribution between the different harmonics of the signal. The fastest main sequence solar-like stars with detected surface rotation still exhibit a power contribution at a few tens of µHz. Nevertheless, most of the stars are rotating slowly enough for their rotational power contribution to only influence the shape of the PSD below a few µHz. Concerning the *Kepler* nominal survey, stars exhibiting photometric rotational modulations can be identified with the Santos et al. (2019, 2021) reference catalogues.

Surface convection is the main process shaping the profile of the remaining components of the background. Harvey (1985) suggested that these trends could be described through empirical laws (referred to as Harvey models or sometimes super-Lorentzians, a nomenclature discussion on the term is provided by Kallinger et al. 2014) of the following form:

$$ \mathcal{H}(v) = \frac{A}{1 + \left(\frac{v}{v_c}\right)^\gamma}, \qquad (5) $$

where A is the reduced amplitude component, $v_c$ the characteristic frequency, and $\gamma$ is an exponent that can be linked to the amount of memory in the physical process described by the Harvey model (see e.g. García & Ballot 2019).

There is no clear consensus in the community on the best number of Harvey models to consider in order to optimally fit the background. Mathur et al. (2010) combined one Harvey model and a power law in their model, while Kallinger et al. (2014) decided to fit the data with two Harvey models after using a Bayesian framework to compare six possible models.

For the sake of generality, the considered limit background is then taken as the sum of k Harvey models, a power law, and a white noise term:

$$ B(v) = \sum_{k} \mathcal{H}_{k}(v) + av^{-b} + P_{n}, \qquad (6) $$

where a and b are the power-law parameters. In the cases of long cadence observations from *Kepler* or TESS, it can be necessary to include a damping factor $\eta$ to take into account the power loss in the components of the signals close to the Nyquist frequency (Chaplin et al. 2011; Kallinger et al. 2014):

$$ \eta^2(v) = \mathrm{sinc}^2\left(\frac{\pi v}{2v_N}\right). \qquad (7) $$

The photon noise is not affected by this effect and Eq. (6) therefore becomes

$$ B(v) = \left[ \sum_{k} \mathcal{H}_{k}(v) + av^{-b} \right] \eta^2 + P_{n}. \qquad (8) $$

## 2.3. The Lorentzian model

In asteroseismology, p-mode profiles are usually described with symmetric Lorentzian profiles. However, previous helioseismic observations provide evidence that the p-mode spectral profile was actually asymmetric (Duvall et al. 1993; Toutain et al. 1998). Two solutions were suggested to model

p-mode asymmetric Lorentzian profiles. The first one was proposed by Nigam & Kosovichев (1998):

$$ L(v, v_0, \Gamma, H, \alpha) = \frac{H}{1 + x^2} \left[ (1 + \alpha x)^2 + \alpha^2 \right], \qquad (9) $$

while the second possibility was put forward by Korzennik (2005):

$$ L(v, v_0, \Gamma, H, \alpha) = \frac{H}{1 + x^2} \left[ 1 + \alpha(x - \alpha/2) \right]. \qquad (10) $$

In the two previous equations, H is the height of the Lorentzian, $\alpha$ is the asymmetry parameter, and x is the reduced frequency, defined as

$$ x(v, v_0, \Gamma) = \frac{v - v_0}{\Gamma/2}, \qquad (11) $$

where v is the frequency, $v_0$ the Lorentzian central frequency, and $\Gamma$ the Lorentzian full width at half maximum (FWHM). If $\alpha = 0$, the modelled profile is a standard symmetric Lorentzian.

It is finally important to note that H and $\Gamma$ can be related to the mode amplitude A through (Fletcher et al. 2006; Chaplin et al. 2008; Lund et al. 2017):

$$ H = \frac{2A^2}{\pi\Gamma}. \qquad (12) $$

## 2.4. Low resolution and sinc model

In the PSD, the ideal mode profile is in reality convolved by the Fourier transform of the observational window. In case of continuous observations of length $T_{\text{obs}}$, this Fourier transform has the shape of a sinc function. There is no significant bias in the observed height H (or amplitude A) and width $\Gamma$ of the mode in the case $T_{\text{obs}} \gg 1/\Gamma$. However, as illustrated in Fig. 1, when we represent the result of the convolution of the ideal signal by the Fourier transform of the observational window for different $\Gamma T_{\text{obs}}$ values, the effect of the convolution appears as soon as $\Gamma T_{\text{obs}}$ is of the order of several times unity, and the sinc function profile dominates the Lorentzian profile when $\Gamma T_{\text{obs}} < 1$. Therefore, if the considered modes have a long lifetime with regards to the duration of the observation, the Lorentzian nature of their profile may not appear clearly because of insufficient resolution (frequency bins) to properly characterise the profile. In this case, it is more adequate to model the p-mode peaks with squared sinc functions instead of Lorentzians:

$$ L(v, v_0, \Gamma, H) = H \mathrm{sinc}^2 x. \qquad (13) $$

## 2.5. Mode description

Under the effect of slow rotation (Ledoux 1951), an acoustic mode M of order n and given degree $\ell$ is described as a multiplet of $2\ell + 1$ components (modelled with symmetric Lorentzian profiles, asymmetric Lorentzian profiles, or sinc profiles as explained above) according to the following equation:

$$ M_{n,l}(v) = \sum_{m=-\ell}^{\ell} L(v, v_{n,l} + m s_{n,l}, \Gamma_{n,l}, r_{\ell,m} H_{n,l}, \alpha), \qquad (14) $$
<figure><img src="image_2.png" /><figcaption>**Fig. 1.** Top: Effects of the convolution by the Fourier transform of the observational window on an ideal Lorentzian mode profile (grey) in the case of continuous observations, with $\Gamma T_{\text{obs}} = 0.25$ (red), 0.5 (dark blue), 0.75 (green), 1 (orange), 2 (light blue), and 5 (brown). Bottom: Same as top panel, but for the y-axis range [1, 2].</figcaption></figure>

with $s_{n,l}$ being the mode splittings, and $r_{l,m}$ the m-height ratio (with $\sum_{m=-l}^{m=l} r_{l,m} = 1$). The $r_{l,m}$ term is, in principle, purely geometric and depends on the stellar inclination angle $i$ (Dziembowski 1977; Toutain & Gouttebroze 1993; Gizon & Solanki 2003; Ballot et al. 2006). Typical $r_{l,m}$ values considered for different instruments are given in Table 1.

## 2.6. Mode visibilities

It is often useful to be able to define the mode-height ratio between close-frequency modes. This can be achieved by computing the mode visibility, $V_l$, which depends on the stellar limb darkening and links the mode surface amplitude to the disk-integrated mode amplitude.

$$V_l = \sqrt{(2l + 1)\pi} \int_0^1 P_l(\mu)w(\mu)\mu d\mu, \quad (15)$$

where $P_l$ is the $l$th-order Legendre polynomial and $w$ is a weighting function. Assuming energy equipartition at close frequencies, the height ratio can be computed as the visibility ratio $V_l/V_0$. For some instruments, the dependence is more complex

<table><caption>**Table 1.** m-height ratios $r_{l,m}$.</caption><thead><tr><th>r<sub>l,m</sub></th><th>GOLF</th><th>VIRGO</th><th>Kepler/K2/TESS</th></tr></thead><tbody><tr><td>r<sub>1,0</sub></td><td>0</td><td>0</td><td>cos<sup>2</sup> i</td></tr><tr><td>r<sub>1,±1</sub></td><td>0.5</td><td>0.5</td><td><sup>1</sup>&frasl;<sub>2</sub> sin<sup>2</sup> i</td></tr><tr><td>r<sub>2,0</sub></td><td>0.65/2.65</td><td>0.75/2.75</td><td><sup>1</sup>&frasl;<sub>4</sub>(3 cos i - 1)<sup>2</sup></td></tr><tr><td>r<sub>2,±1</sub></td><td>0</td><td>0</td><td><sup>3</sup>&frasl;<sub>8</sub> sin<sup>2</sup> i</td></tr><tr><td>r<sub>2,±2</sub></td><td>1/2.65</td><td>1/2.75</td><td><sup>3</sup>&frasl;<sub>8</sub> sin<sup>4</sup> i</td></tr><tr><td>r<sub>3,0</sub></td><td>0</td><td>0</td><td><sup>1</sup>&frasl;<sub>64</sub>(5 cos 3i + 3 cos i)<sup>2</sup></td></tr><tr><td>r<sub>3,±1</sub></td><td>0.41/2.82</td><td>0.63/3.26</td><td><sup>3</sup>&frasl;<sub>64</sub> sin<sup>2</sup> i(5 cos 2i + 3)<sup>2</sup></td></tr><tr><td>r<sub>3,±2</sub></td><td>0</td><td>0</td><td><sup>15</sup>&frasl;<sub>8</sub> sin<sup>4</sup> i cos<sup>2</sup> i</td></tr><tr><td>r<sub>3,±3</sub></td><td>1/2.82</td><td>1/3.26</td><td><sup>5</sup>&frasl;<sub>16</sub> sin<sup>6</sup> i</td></tr><tr><td>r<sub>4,0</sub></td><td>0.1/2.7</td><td>—</td><td>—</td></tr><tr><td>r<sub>4,±1</sub></td><td>0</td><td>—</td><td>—</td></tr><tr><td>r<sub>4,±2</sub></td><td>0.3/2.7</td><td>—</td><td>—</td></tr><tr><td>r<sub>4,±3</sub></td><td>0</td><td>—</td><td>—</td></tr><tr><td>r<sub>4,±4</sub></td><td>1/2.7</td><td>—</td><td>—</td></tr><tr><td>r<sub>5,0</sub></td><td>0</td><td>—</td><td>—</td></tr><tr><td>r<sub>5,±1</sub></td><td>0.117</td><td>—</td><td>—</td></tr><tr><td>r<sub>5,±2</sub></td><td>0</td><td>—</td><td>—</td></tr><tr><td>r<sub>5,±3</sub></td><td>0.137</td><td>—</td><td>—</td></tr><tr><td>r<sub>5,±4</sub></td><td>0</td><td>—</td><td>—</td></tr><tr><td>r<sub>5,±4</sub></td><td>0.246</td><td>—</td><td>—</td></tr></tbody></table>

**Notes.** The parameter $i$ is the stellar inclination angle.

<table><caption>**Table 2.** Mode visibility ratios $V_l/V_0$</caption><thead><tr><th>Ratio</th><th>GOLF</th><th>VIRGO</th><th>Kepler/K2/TESS</th></tr></thead><tbody><tr><td>V<sub>1</sub>/V<sub>0</sub></td><td>1.69</td><td>1.53</td><td>1.5</td></tr><tr><td>V<sub>2</sub>/V<sub>0</sub></td><td>0.81</td><td>0.59</td><td>0.7</td></tr><tr><td>V<sub>3</sub>/V<sub>0</sub></td><td>0.17</td><td>0.09</td><td>0.2</td></tr><tr><td>V<sub>4</sub>/V<sub>0</sub></td><td>0.0098</td><td>—</td><td>—</td></tr><tr><td>V<sub>5</sub>/V<sub>0</sub></td><td>0.001</td><td>—</td><td>—</td></tr></tbody></table>

as the instrument response does not depend only on $\mu$. Hence, the relations given by Eq. (15) cannot be directly used (for an example with GOLF, see García et al. 1999; Salabert et al. 2011b). The values for $V_l/V_0$ used in apollinaire are given in Table 2.

## 2.7. Modelling the modes for time-series with observational gaps

The apollinaire package is designed to deal with time series with large temporal gaps and was used for this purpose in Breton et al. (2022). The effect of the presence of gaps in the observations is the convolution of the Fourier transform of the ideal time series by the Fourier transform of the observational window. One of the consequences of this convolution is that the hypothesis on the frequency-bin independence is no longer valid (e.g. Gabriel 1994). However, the form of the likelihood that takes this effect into account is computationally challenging and not well suited for an optimised implementation.

The historically considered solution is to ignore the independence loss (Appourchaux et al. 1998) and to consider the likelihood given in Eq. (2). To go further, the model can be corrected to take into account the side lobes generated by the window convolution in the PSD (e.g. Salabert et al. 2002, 2004).
<figure><img src="image_3.png" /><figcaption>Fig. 2. Model for a $\ell = 1, 3$ pair with inclination angle $i = 90^\circ$ and splittings $s = 0.4$ µHz, without taking the observational window into account (grey) and the modified model with the observational window effect applied following Eq. (17) (orange). The actual convolution of the synthetic PSD by $|f|^2$ is represented in black for comparison.</figcaption></figure>

We use such an approach in apollinaire to modify the model when fitting PSD from time series with low duty cycle. In order to approximate the power redistribution of one peak in the model, we define the observation window $f$ of the time series. The value of $f$ is 1 at the time-stamps where data were acquired, and 0 otherwise. The Fourier transform $\tilde{f}$ of $f$ is then computed. The frequency shift $v_i$ (relative to the zero-frequency peak of $|\tilde{f}|^2$) and the amplitudes $a_i$ of the $k$ peaks above a given threshold in $|\tilde{f}|^2$ are then stored. The amplitudes are normalised to verify

$$ \sum_{i=0}^{k} a_i = 1. \qquad (16) $$

The mode description given in Eq. (14) is then replaced by:

$$ M_{n,\ell}(v) = \sum_{m=-\ell}^{\ell} \sum_{i=0}^{k} L(v, v_{n,\ell} + m s_{n,\ell} + v_i, \Gamma_{n,\ell}, a_i r_{\ell,m} H_{n,\ell}, \alpha). \quad (17) $$

The side lobe power redistribution of the mode is illustrated in Fig. 2, where we consider an observational window with a regular observation cycle of 720 min with observations followed by 720 minutes without observations. We consider a $\ell = 1, 3$ pair with $i = 90^\circ$ and $v_s = 0.4$ µHz and we represent the model with 100% duty cycle for comparison. The power redistribution of the modes appears clearly when the formula from Eq. (17) is applied to compute the mode profiles, and we see that the modified model – approximating $|\tilde{f}|^2$ as the sum of $k + 1$ Dirac functions – is extremely close to the profile we obtain when we actually perform the convolution operation between the PSD and the $|f|^2$.

### 3. Description of the framework

The apollinaire package is designed to perform MCMC samplings for each step of the peakbagging procedure: background fit, asymptotic parameters fit to determine the global modes pattern, and extraction of individual mode parameters. Those three operations are performed one after another when using the stellar_framework function but can also be performed independently. The global flowchart of an analysis performed with the stellar_framework function is represented in Fig. 3.

<figure><img src="image_4.png" /><figcaption>Fig. 3. Simplified representation of the apollinaire flow chart.</figcaption></figure>

#### 3.1. Sampling the posterior probability with MCMC

The MCMCs are implemented with the Python package emcee (Foreman-Mackey et al. 2013). The sampling strategy follows Goodman & Weare (2010). The sampler, which can be seen as an improvement of the single site Metropolis scheme (Sokal 1997; Liu 2009), is designed as an affine invariant ensemble of walkers. Walker positions are updated one after another by the algorithm. The proposal for the new position of a given walker is created by taking into account the positions of other walkers. Acceptance or rejection of each move is assessed through the Metropolis-Hastings rule (Metropolis et al. 1953; Hastings 1970). In every part of the framework (background, global mode pattern, individual mode parameters), the user is free to choose the number of walkers and the number of steps to perform in order to sample the distribution, as well as the number of steps discarded as part of the burn-in phase.

The results yielded by a Bayesian approach strongly rely on the choice of prior functions made for the different parameters. At the same time, the prior function reflects the level of knowledge that the Bayesian fitters already possesses concerning the model for which they want to sample the posterior distribution. From this point of view, the choice of the prior functions to use in order to sample the posterior is necessarily somewhat arbitrary. Discussing considerations over the expected mode profile, several possibilities have been suggested
in the Bayesian peakbagging literature. Following Benomar et al. (2012), Davies et al. (2016) considered for example a smoothness condition for the mode frequencies while using uniform priors for every other parameters. On the contrary, Lund et al. (2017) considered uniform priors for frequencies and inclination angle while using modified Jeffrey's priors (Handberg & Campante 2011) for amplitudes and widths. Corsaro et al. (2020) adopted uniform priors for all free parameters, justifying this choice by the fast computation that it allowed in their framework.

In apollinaire, prior functions are taken to be uniform distributions within two bounds with the exception of the inclination angle, i, the heights H (or amplitudes A), and the widths Γ. It should be underlined that the uniform priors confine the sampled distribution to the compact support defined by the bounds and represent in this sense a strong constraint on the posterior. However, this can be justified by the fact that it is for example reasonable to suppose that, for a given mode, the actual mode frequency cannot be located outside a small frequency window around the mode power excess.

Most of the usual priors defined on a compact support can actually be linked to a uniform prior through a change of variable. For H (or A) and Γ, we therefore consider uniform prior distributions in log H (or log A) and log Γ. This is equivalent to constraining H (or A) and Γ with Jeffrey's priors. This way, in the limit of the fixed boundaries, the prior does not contain information on the parameter scaling. For i, the prior distribution is p(i) = sin i in order to fulfill the a priori isotropic distribution of stellar rotation axes (García & Ballot 2019).

In the stellar_framework function, the automatically generated priors have been set in order to cover a sufficiently wide range to ensure that the sampled distribution is not biased by boundary effects. Additional difficulties that may arise in the specific case of frequencies are discussed in Sect. 3.5.

When a MCMC is sampled, the code automatically extracts summary statistics from it. For a given parameter, it returns the median of the marginalised sampled distribution, y. In order to obtain the uncertainties σ_− and σ_+ over y, 16th and 84th percentiles y16 and y84 are also extracted. In the case of a Gaussian distribution, σ_− = σ_+ = σ with σ being the standard deviation of the distribution. Some apollinaire output files (see Appendix D and online documentation for more details) only provide a σsym over y:

$$ \sigma_{\text{sym}} = \max(y - y_{16}, y_{84} - y). \qquad (18) $$

In this case, if it is the natural logarithm of the parameters that has been sampled, median, 16th, and 84th percentiles are transformed again before computing and returning σsym.

## 3.2. Inputs and outputs

The guess and priors for background and global pattern fits are automatically generated by apollinaire. The user can also manually provide guess and priors if needed. The inputs for individual mode-parameter extractions are more complex, and for them, apollinaire uses text files with a specific syntax: the a2z files, which were originally developed as part of the A2Z pipeline (Mathur et al. 2010). The syntax of the file is dedicated to providing a simple and straightforward way to specify the nature, extent, initial value, and bounds for each parameter to fit. These files will be auto-generated by the stellar_framework function but can also be manually created in order to directly

use the peakbagging function. They can be read as a pandas<fnref n="3" /> `Frame` through the auxiliary function `read_a2z`.

The chains are stored as Hierarchical Data Format version 5 (hdf5) files. The code provides functions to read these files for the user that would need to perform a more thorough analysis on the chains than the extraction of summary statistics described in Sect. 3.1. Using these files, it is for example straightforward to obtain the marginalised distribution for each parameter or the covariance matrix between two parameters. Corner plots visually summarising the sampled distributions can be saved as pdf or png files if filenames are specified. They represent both the marginalised distribution for each parameter and the covariance distribution for each pair of parameters.

Parameters fitted by the perform_mle_background, perform_mle_pattern, explore_distribution_background, and explore_distribution_pattern functions are returned as numpy arrays. When these functions are called by the stellar_framework functions, the results they provide are stored in text files with dedicated headers. For convenience, the peakbagging function returns both an a2z `Frame`, which can be saved to an a2z file with the auxiliary function save_a2z, and a so-called pkb<fnref n="4" /> array, which can be saved with the save_a2z (when the function is called by stellar_framework, this is done automatically). The returned a2z `Frame` is useful for performing new MCMC samplings with modified input values while the pkb array provides a mode-by-mode summary statistics and allows the user to simply reconstruct the best-fit p-mode model computed by apollinaire. More details about a2z files, a2z `Frame`, pkb files, and pkb arrays can be found in Appendix D, and example a2z and pkb files are also provided.

## 3.3. Background fit

Besides the PSD, the only additional inputs needed by apollinaire to automatically compute initial guesses and priors for the background fit are the stellar effective temperature, Teff, the asymptotic large spacing Δv, and the frequency at maximum power vmax. If no previous estimations of Δv and vmax are available, it is possible to provide the code with the stellar mass, M, and radius, R, in order to compute an estimate of Δv and vmax through the scaling laws (Kjeldsen & Bedding 1995)

$$ \begin{align} \Delta v &\approx \Delta v_{\odot} \left(\frac{M}{M_{\odot}}\right)^{1/2} \left(\frac{R}{R_{\odot}}\right)^{3/2} \tag{19} \\ v_{\max} &\approx \left(\frac{R_{\odot}}{R}\right)^2 \frac{M}{M_{\odot}} \left(\frac{T_{\text{eff},\odot}}{T_{\text{eff}}}\right)^{1/2}, \nonumber \end{align} $$

where Δv_⊙, M_⊙, R_⊙, and T_{eff,⊙} are the reference solar values for the asymptotic large spacing, mass, radius, and effective temperature, respectively. These values are set to 135 µHz, 1 M_⊙, 1 R_⊙, and 5770 K in apollinaire.

The limit spectrum fitted on the data is the sum of the background term given by Eq. (6) and a Gaussian p-mode envelope term:

$$ S_B(v) = B(v) + H_{\max} \exp \left[ - \left( \frac{v - v_{\max}}{W_{\text{gauss}}} \right)^2 \right], \qquad (20) $$

<footnote n="3">³ https://pandas.pydata.org/</footnote>

<footnote n="4">⁴ Originally developed inside the Kepler Asteroseismic Science Operations Center (KASOC) working package 6.</footnote>
with $H_{max}$ being the maximal height of the p-mode Gaussian envelope and $W_{gauss}$ its width or standard deviation.

When only one Harvey model is considered, the initial $\gamma$ value is fixed to 2; it is fixed to 4 when two Harvey models are considered. This parameter can be fixed (Kallinger et al. 2014) or set to vary. In order to fit more than two Harvey models, the user should manually provide the guesses. Otherwise, input profile guesses are automatically generated. If the spectrum has been acquired with photometric observations, the values provided by Table 2 of Kallinger et al. (2014) are used. If the code has to deal with a PSD obtained from a solar radial-velocity time series, initial guess values have also been implemented using GOLF as a reference.

In order to obtain significant gains in computing time, it is possible to resample the PSD to a version with many fewer data points. The resampling techniques are described in Appendix A. As shown in Sect. 4.3, this method can be reliably used in order to extract mode frequencies but the main caveat is that the background parameters obtained by fitting the resampled PSD should be considered with caution. In particular, the resampling will filter out the power in the p-mode region, and $H_{max}$, $v_{max}$, and $W_{env}$ obtained with this method will be significantly biased.

### 3.4. Limit p-mode spectrum

To fit the p modes, apollinaire divides the observed spectrum by the fitted background profile B in order to get the signal-to-noise-ratio (S/N) spectrum:

$$S_{\text{obs,SN}} = \frac{S_{\text{obs}}(\nu)}{B}(\nu). \qquad (21)$$

This way, the background contribution fitted in the previous step is removed. The limit spectrum, $S_{SN}$, that is then adjusted to $S_{\text{obs,SN}}$ is

$$S_{\text{SN}}(\nu) = \sum_{n} \sum_{\ell} \frac{M_{n,\ell}}{B}(\nu) + b, \qquad (22)$$

with $M_{n,\ell}$ given by Eq. (14), and b corresponding to an additive factor to locally adjust the background.

### 3.5. Pattern fit

In order to constrain the priors of the main individual mode parameters, $v_{n,\ell}$, $H_{n,\ell}$, and $\Gamma_{n,\ell}$, apollinaire performs a global pattern fit on the orders located around $v_{max}$. Tassoul (1980) presented the following asymptotic relation for mode frequencies, within the approximation $n \gg \ell$:

$$v_{n,\ell} \approx \left(n + \frac{\ell}{2} + \epsilon\right) \Delta\nu, \qquad (23)$$

where $\epsilon$ is a phase constant. Slightly modifying the formalism adopted in Lund et al. (2017), this relation can be approximated, in the $v_{max}$ neighbourhood, to

$$v_{n,\ell} \approx \left(n + \frac{\ell}{2} + \epsilon\right) \Delta\nu - \delta v_{0\ell} - \beta_{0\ell}(n - n_{\text{max}}) + \frac{\alpha}{2}(n - n_{\text{max}})^2, \quad (24)$$

where the small separations $\delta v_{0\ell}$ are given by

$$\begin{aligned} \delta v_{00} &= 0, \\ \delta v_{01} &= \left\langle \frac{1}{2}(v_{n,1} - v_{n+1,0}) - v_{n,1} \right\rangle_n, \\ \delta v_{02} &= \langle v_{n,0} - v_{n-1,2} \rangle_n, \\ \delta v_{03} &= \left\langle \frac{1}{2}(v_{n,3} - v_{n+1,0}) - v_{n,3} \right\rangle_n, \end{aligned} \qquad (25)$$

while $\alpha$ and $\beta_{0\ell}$ are respectively the curvature terms on $\Delta\nu$ and $\delta v_{0\ell}$. The parameter $n_{max}$, which is not an integer, follows the relation

$$n_{\text{max}} = \frac{v_{\text{max}}}{\Delta\nu} - \epsilon. \qquad (26)$$

Mode heights in the limit spectrum can be approximated through the p-mode envelope parameters $H_{max}$ and $W_{gauss}$, considering

$$H_{n,\ell} = \frac{H_{\text{max}}}{B(v_{n,\ell})} \exp \left[ - \left( \frac{v_{n,\ell} - v_{\text{max}}}{W_{\text{gauss}}} \right)^2 \right], \qquad (27)$$

while $\Gamma$ is taken as a FWHM value common to all modes.

Using Eqs. (24) and (27), the pattern fit step is designed to approximate the mode pattern around $v_{max}$ with a given set $\theta$ of global parameters: $\epsilon$, $\alpha$, $\Delta\nu$, $v_{max}$, $H_{max}$, $W_{gauss}$, $\Gamma$, $\delta v_{02}$, $\beta_{02}$, $\delta v_{01}$, $\beta_{01}$, and $\delta v_{13}$ (with $\delta v_{13} = \delta v_{03} - \delta v_{01}$), $\beta_{03}$. The last four parameters can be ignored, for example if the star to fit presents $\ell = 1$ mixed modes: only pairs $M_{n-1,2}$, $M_{n,0}$ will then be fitted (see Appendix B). It is also possible to ignore just the $\ell = 3$ mode when the S/N of the considered PSD is insufficient. Indeed, in this situation, the $\delta v_{13}$ and $\beta_{03}$ parameters will be difficult to constrain and the sampled distribution will be prior dominated.

Guesses for $\epsilon$, $\alpha$, $H_{max}$, $\Gamma$, $\delta v_{02}$, $\delta v_{01}$, and $\delta v_{13}$ can be manually provided, otherwise they will be automatically computed. If a guess is given for a $\delta v_{0k}$, the initial value for the corresponding $\beta_{0k}$ will be set to zero. To determine initial automated guesses for parameters, we adopted prescriptions from Corsaro et al. (2012) for stars with $\Delta\nu < 14$ µHz and $v_{max} < 450$ µHz. For main sequence stars, we derived well performing initial values from the results obtained by Lund et al. (2017). Proper guesses for stars with $450$ µHz $< v_{max} < 1000$ µHz are not implemented in the current version of apollinaire but a recipe for how to proceed with these stars is given in Appendix B.

The pattern fit step will fit $\theta$ by considering the $k$ orders closest to $v_{max}$. By default, the stellar_framework function uses $k = 3$. The bounds of the fitting window are set $0.2 \Delta\nu$ below and above the smallest and largest mode frequency included in the pattern. In the standard procedure, the MCMC exploration is directly performed from the initial rough guess computed by apollinaire. It is possible to use a fast MLE run to quickly refine this initial guess and to use the values yielded by the MLE as a starting point for the MCMC sampling. This can save some computing time by reducing the number of discarded steps at the beginning of the MCMC exploration, but may also reduce the opportunities of the walkers to explore different regions of the distribution to sample in the case of multimodal distribution.

As underlined by Lund et al. (2017), the discrepancies between the actual position of the modes and the frequencies yielded by the relation given by Eq. (24) can be physically explained by acoustic glitches (e.g. Mazumdar et al. 2014; Houdayer et al. 2021). Moreover, when optimised only on the central orders, the formula given by Eq. (24) should be
extrapolated with caution for modes located far from $v_{max}$. Indeed, in this case, there can be significant discrepancies between the mode frequencies predicted by the formula and the actual position of the mode in the PSD. This can be straightforwardly checked using an échelle diagram and is illustrated in particular in Sect. 4.3. It is of course possible to include more orders when sampling the distribution of pattern parameters, but this will require more computing time; on one hand because the likelihood will be computed on more data points, and on the other because the chain will take more steps to converge. In this situation, the results obtained with the summary statistics alone should also be considered with caution as the inclusion of low-S/N modes can strongly influence the multi-modality of the sampled distribution.

An échelle diagram may also be particularly useful in order to check that the code correctly identified the $ℓ = 0$ and the $ℓ = 1$ mode. When this is not the case, the failure in the sampling is generally related to an improper prior for $\epsilon$. In this situation, the solution is to manually impose new initial values and prior bounds for $\epsilon$.

### 3.6. Selecting orders to fit

The result of the pattern fit is used to obtain guess values for $v_{n,l}$, $H_{n,l}$, and $\Gamma_{n,l}$ for each mode. These values are provided inside an a2z DataFrame. There are two ways to determine the modes for which the function will provide guess values. With the first method, the function will simply build the a2z DataFrame for a given number of orders symmetrically distributed around $v_{max}$. The second method performs a H0 screening (e.g. Appourchaux et al. 2009, 2012; Broomhall et al. 2010; Davies et al. 2016; Lund et al. 2017) on the p-mode region to assess the strong ($ℓ = 0$ or 1) mode detectability. Following the procedure presented in Davies et al. (2016), the PSD is rebinned over $t$ bins and a $\chi^2_t$ statistics is considered. For each mode, the rebinning is performed considering an odd number of bins, the central bin being the one with the frequency closest to the mode frequency estimated with the fitted global parameters. The adopted threshold for the rejection of the null hypothesis H0 is $p = 0.001$. The maximal value $t_{max}$ considered for the rebinning is 99, or the $t$ value corresponding to a bin width of 5 µHz, respectively. If the H0 hypothesis is rejected for more than one-third of the considered rebinning, we consider the mode as detectable. A guess for this mode will be added in the a2z DataFrame along with the guess for the closest $ℓ = \{2, 3\}$ mode. It should be stated that it is also possible to manually provide a a2z DataFrame that will override the guess automatically generated by the function.

### 3.7. Extraction of individual parameters: the peakbagging function

In what follows, we refer to the $M_{n-1,2}$, $M_{n,0}$, $M_{n-1,3}$, and $M_{n,1}$ group of modes as a peakbagging order to avoid any confusion. Mode parameters can be fitted globally, by peakbagging order, or by pair. In the latter case, modes $M_{n-1,2}$, $M_{n,0}$ or $M_{n-1,3}$, and $M_{n,1}$ are then fitted together, respectively. The reader should note that the pair-fitting strategy is also suited to fitting any individual mode if the parameters of only one mode of a given pair is specified in the a2z input. The model used to compute the likelihood and posterior probability follows Eq. (22). The initial value for the local S/N background term $b$ is taken as 1 and set to vary between $10^{-6}$ and 5.

The minimal set of parameters that will be fitted by the code are mode frequencies, $v_{n,l}$, heights, $H_{n,l}$ (or amplitudes, $A_{n,l}$), and FWHM, $\Gamma_{n,l}$. Additional parameters that can be fitted are

<table><caption>**Table 3.** Possible values of $w_w$.</caption><thead><tr><th>Interval (µHz)</th><th>1200–2000</th><th>2000–2500</th><th>&gt;2500</th></tr></thead><tbody><tr><td>$w_w$ (µHz)</td><td>35</td><td>55</td><td>75</td></tr></tbody></table>

splittings, $s_{n,l}$, inclination angle, $i$, and asymmetries, $\alpha_{n,l}$. It is possible to fit the projected splittings, $s_{\star} = s \sin i$ (Ballot et al. 2006, 2008), instead of $s$. Except for mode frequencies, every input parameter can be set to parametrise all modes, a whole order, a pair, or only one mode. In other words, it is possible to impose each mode of a given peakbagging order to have, for example, the same FWHM.

If the user does not provide a fitting window size, the data to fit are restricted to an adaptive fitting window: only PSD elements within [$v_{-}$, $v_{+}$] are considered, with:

$$ \begin{aligned} v_{-} &= v_{\text{low}} - \frac{v_{\text{up}} - v_{\text{low}}}{d}, \\ v_{+} &= v_{\text{up}} + \frac{v_{\text{up}} - v_{\text{low}}}{d}, \end{aligned} \qquad (28) $$

where $v_{\text{low}}$ and $v_{\text{up}}$ are respectively the minimal and maximal guess frequencies of the modes to fit. The value of $d$ is then determined by the considered method: if the fit is made by order, $d = 3$, if the fit is made by pair, $d = 1$.

For modes above 800 µHz and if the fit is made by pair, another possibility offered by the code is to use the $\Delta v$ value to constrain the fitting window. The 800 µHz value has been chosen to ensure that the considered mode does not exhibit avoided crossings, which might add additional difficulties due to the potential presence of mixed modes in the fitting window. In this case, the window bounds are:

$$ \begin{aligned} v_{-} &= v_{\text{center}} - w_{w} \frac{\Delta v}{\Delta v_{\odot}}, \\ v_{+} &= v_{\text{center}} + w_{w} \frac{\Delta v}{\Delta v_{\odot}}, \end{aligned} \qquad (29) $$

where $v_{\text{center}}$ is the centre of the window given by the mean of the guess frequencies of the two modes to fit (or simply the guess frequency of the mode to fit if only parameters for one mode are specified), and the reference value $\Delta v_{\odot} = 135$ µHz. The possible values of $w_w$ are summarised in Table 3.

As underlined in Sect. 2, the mode visibilities and m-height ratios have instrumental dependencies. There are two ways to deal with mode visibilities: on one hand, the user can choose to fit amplitude parameters individually for each mode, and on the other, it is possible to specify the amplitude ratios $V_{\ell}/V_0$ in the a2z input file. The usual ratios (Salabert et al. 2011a) are provided in Table 2.

The m-height ratios to use are selected through the instrument argument of the peakbagging function. The implemented ratios for each instrument are given in Table 1.

It should also be noted that for $H$ and $\Gamma$, it is the natural logarithms of the parameters that are expected to have a Gaussian distribution (Toutain & Appourchaux 1994; García & Ballot 2019). For parameters of these types, the peakbagging function thus samples the natural logarithm. However, it should be remembered that it is straightforward to obtain the sampled distribution of the parameter itself by a simple transformation of the MCMC elements.
<figure><img src="image_5.png" /><figcaption>Fig. 4. Summary of the available options for the p-mode individual parameter extraction step.</figcaption></figure>

### 3.8. Dealing with $ℓ = 4$ and $ℓ = 5$ leaks in solar spectra

Due to the very high S/N of radial-velocity helioseismic data, some $ℓ = 4$ and $ℓ = 5$ modes (referred as intermediate-degree modes) may arise above noise. It has been shown that omitting their contribution to the power distribution of the spectrum can introduce bias in the fitted frequencies of up to three times the uncertainty (Jiménez-Reyes et al. 2008). If guesses for intermediate-degree modes are specified in the input a2z file (e.g. using the theoretical frequency value for those modes), the code will check for their presence inside the defined window.

If, when reading the a2z DataFrame, it appears that an intermediate-degree mode is present in the fitting window, its frequency will be added to the parameters to fit. Heights and FWHMs of intermediate-degree mode are computed considering the ratio presented in Table 2 and using the closest $ℓ = 0$ mode as a reference. If no $ℓ = 0$ is fitted at this time, the closest $ℓ = 1$ is used instead. Power is distributed between the m-components of the mode following Table 1. The splittings are set to 400 nHz and do not vary. No asymmetry is considered for these modes. The diagram shown in Fig. 4 summarises the possible options described in Sects. 3.6, 3.7 and 3.8.

### 3.9. Quality assurance

Several frequentist and Bayesian metrics for peakbagging quality assurance have been suggested over the years (see e.g. Appourchaux et al. 2012; Davies et al. 2016; Lund et al. 2017). The quality assurance metric implemented in apollinaire takes inspiration from the Bayesian machinery described in Davies et al. (2016) but avoids resampling a MCMC to obtain the probability of the different models to compare, which saves a large amount of computing time.

The apollinaire package implements a Bayesian quality assurance computing tool where three possibilities are assumed for each fitted pair of modes (odd or even): (1) The strong ($ℓ = 0$ or 1) and the weak ($ℓ = 2$ or 3) modes are both detected (model $M_{sw}$ with associated probability $p_{sw}$); (2) only the strong mode is detected (model $M_s$ with associated probability $p_s$); or (3) neither of the two modes is detected (model $M_0$ with associated probability $p_0$). We have assumed that a weak mode could not be detected if the strong mode was not also detected. Assuming that a sufficient number of initial steps has been discarded, the MCMC contains $n$ sets of parameters $θ$. A subset of $k$ ($k \le n$) elements still representative of the MCMC distribution can be selected by thinning the

chain. Indeed, this subgroup of parameters should follow the same distribution as the full MCMC if enough elements are considered. For each of those $k$ sets of parameters $θ_k$, likelihoods $p(D|M_{sw}, θ_k)$, $p(D|M_s, θ_k)$, $p(D|M_0, θ_k)$ corresponding to the three hypotheses are then compared (considering the data $D$ within the same frequency window that was used for the actual fit). For the $M_0$ model, as the frequency window is narrow enough, we consider a flat background which is computed as the median of the power distribution of the frequency bins inside the window.

The estimated probability $p_α$ (marginalised over the parameter distribution) that a model $M_α$ is the most likely considering the data is then computed as follows:

$$p_{\alpha} = \frac{\# \{ \theta_k | p(D|M_{\alpha}, \theta_k) = \max_{i \in \{\alpha, \beta, \gamma\}} p(D|M_i, \theta_k) \}}{k}, \quad (30)$$

where given an ensemble $E$, #E denotes its cardinal. The indexes $α, β$, and $γ$ in Eq. (30) should be properly replaced by $sw$, $s$, and 0 depending on the considered case. We use Eq. (30) to estimate the probability $p_α$ as the fraction of explored parameter sets $θ_k$ for which the model $α$ is the most likely among the three models. If we consider the specific case where $n = k$, Eq. (30) gives the exact proportion of cases in the sampled distribution where the $M_α$ model is the most likely. The probability $p_α$ is therefore the likelihood of $M_α$ for this distribution. The thinning step to reduce to $k$ samples allows a significant gain in computing time to obtain $p_α$ while conserving the sampled distribution properties.

$p_0$ is the probability of the null hypothesis H0 for the detection of the strong mode while $p_s + p_0$ is the H0 probability for the weak mode. For the considered pair, the natural logarithm of the Bayes factor $K$ for the detection of a mode of degree $ℓ$ is then given by:

$$ \ln K = \ln (p_{sw} + p_s) - \ln p_0; \quad \ell \in \{0, 1\} \\ \ln K = \ln p_{sw} - \ln (p_s + p_0); \quad \ell \in \{2, 3\}. \quad (31) $$

Here we reiterate the interpretation of the $\ln K$ value for the evidence against H0, as outlined by Kass & Raftery (1995):

$$ \ln K = \begin{cases} < 0 & \text{favours H0} \\ 0 \text{ to } 1 & \text{not worth more than a bare mention} \\ 1 \text{ to } 3 & \text{positive} \\ 3 \text{ to } 5 & \text{strong} \\ > 5 & \text{very strong.} \end{cases} $$

It is easy to see that, if the model $p_{sw}$, for example, is favoured in any case, this will correspond to $p_{sw} = 1$ and therefore $\ln K > 5$. If we have $p_{sw} = 2/3$ and $p_0 = 1/3$, we will have $\ln K \approx 0.69$, and the $M_{sw}$ model is only barely favoured compared to the H0 hypothesis. Modes with $\ln K < 1$ should be cautiously considered when exploiting the peakbagging results for modelling purposes.

## 4. Benchmark with Monte Carlo synthetic spectra and published peakbagging results

In this section, in order to assess the reliability of the code, we present the results of a Monte Carlo benchmark with synthetic spectra. We then compare apollinaire results with results obtained with other peakbagging codes. As the method has been
<table><caption>**Table 4.** Mode parameters of the three pairs used for the Monte Carlo trial.</caption><thead><tr><th></th><th colspan="2">Pair 1</th><th colspan="2">Pair 2</th><th colspan="2">Pair 3</th></tr></thead><tbody><tr><td>ℓ</td><td>2</td><td>0</td><td>3</td><td>1</td><td>2</td><td>0</td></tr><tr><td>ν (μHz)</td><td>1810</td><td>1822</td><td>2946</td><td>2963</td><td>3703</td><td>3710</td></tr><tr><td>H (S/N)</td><td>14</td><td>20</td><td>6</td><td>30</td><td>21</td><td>30</td></tr><tr><td>Γ (μHz)</td><td>0.35</td><td>0.35</td><td>1</td><td>1</td><td>4</td><td>4</td></tr><tr><td>s (μHz)</td><td>0.4</td><td>0.4</td><td>0.4</td><td>0.4</td><td>0.4</td><td>0.4</td></tr><tr><td>i (°)</td><td>90</td><td>90</td><td>90</td><td>90</td><td>90</td><td>90</td></tr></tbody></table>

<figure><img src="image_6.png" /><figcaption>**Fig. 5.** Example of a synthetic spectrum generated with the pair 2 set of parameters and a frequency vector with 1460-day resolution (black). The ideal spectrum is overplotted in blue.</figcaption></figure>

designed to perform helioseismic and asteroseismic analysis, we decided to perform our benchmark with both solar and stellar data<fnref n="5" />.

## 4.1. Monte Carlo trial

Considering three different sets of parameters (see Table 4), we generate a limit spectrum for three pairs of modes. This limit spectrum is then multiplied by a noise vector with a power distribution following a $\chi^2$ with two degrees of freedom. The pairs are generated for two frequency vectors: the first with one-year resolution and the second with four-year resolution. An example of such a synthetic pair is shown in Fig. 5. Each pair is then fitted using the peakbagging function. For each pair and each resolution, we repeat this process 200 times. For each considered pair and resolution, Tables 5 and 6 summarise the percentage of times for which the true value, considering the uncertainties, is outside the 68% and 99.7% credible intervals, defined by the $1\sigma$ and $3\sigma$ departure from the fitted value, respectively, with the fitted value taken as the median of the sampled distribution. The percentage of fits for which we find the true value to be in the 68% and 99.7% credible intervals is therefore close to expectations, the standard deviation for the frequency of success being 3.3% in the case of 200 draws following a binomial law of parameters ($n_{draw} = 200, p = 0.68$), and 0.4% for ($n_{draw} = 200, p = 0.997$), with $n_{draw}$ being the number of draws.

<table><caption>**Table 5.** Percentage of values in the 68% and 99.7% credible intervals for the strong ($ℓ = 0, 1$) mode in the Monte Carlo trial.</caption><thead><tr><th></th><th colspan="2">Pair 1</th><th colspan="2">Pair 2</th><th colspan="2">Pair 3</th></tr></thead><tbody><tr><td>Resolution (day)</td><td>365</td><td>1460</td><td>365</td><td>1460</td><td>365</td><td>1460</td></tr><tr><td>ν</td><td>68%</td><td>68.5</td><td>70</td><td>64.5</td><td>71.5</td><td>75</td><td>67</td></tr><tr><td>H</td><td>99.7%</td><td>99.5</td><td>99.5</td><td>99.5</td><td>100</td><td>100</td><td>100</td></tr><tr><td>Γ</td><td>68%</td><td>74.5</td><td>69.5</td><td>76</td><td>72.5</td><td>65</td><td>72</td></tr><tr><td>s</td><td>99.7%</td><td>99.5</td><td>99.5</td><td>100</td><td>100</td><td>100</td><td>99.5</td></tr><tr><td>Γ</td><td>68%</td><td>71.5</td><td>73.5</td><td>68.5</td><td>72</td><td>72</td><td>70</td></tr><tr><td>s</td><td>99.7%</td><td>100</td><td>99.5</td><td>100</td><td>100</td><td>100</td><td>99.5</td></tr></tbody></table>

<table><caption>**Table 6.** Percentage of values in the 68% and 99.7% credible intervals for the weak ($ℓ = 2, 3$) mode in the Monte Carlo trial.</caption><thead><tr><th></th><th colspan="2">Pair 1</th><th colspan="2">Pair 2</th><th colspan="2">Pair 3</th></tr></thead><tbody><tr><td>Resolution (day)</td><td>365</td><td>1460</td><td>365</td><td>1460</td><td>365</td><td>1460</td></tr><tr><td>ν</td><td>68%</td><td>77.5</td><td>72</td><td>76</td><td>73.5</td><td>71.5</td><td>74</td></tr><tr><td>H</td><td>99.7%</td><td>100</td><td>99.5</td><td>99.5</td><td>100</td><td>100</td><td>100</td></tr><tr><td>Γ</td><td>68%</td><td>75.5</td><td>70.5</td><td>70.5</td><td>68.5</td><td>71.5</td><td>72</td></tr><tr><td>s</td><td>99.7%</td><td>99.5</td><td>99.5</td><td>99.5</td><td>100</td><td>99.5</td><td>99.5</td></tr><tr><td>Γ</td><td>68%</td><td>74.5</td><td>73</td><td>74.5</td><td>74.5</td><td>74.5</td><td>76.5</td></tr><tr><td>s</td><td>99.7%</td><td>99.5</td><td>99.5</td><td>99.5</td><td>99.5</td><td>100</td><td>99.5</td></tr></tbody></table>

When we consider the 2400 fitted frequencies at once, we find the uncertainties obtained with apollinaire to be conservative in this experiment. Indeed, 71.5% of the fitted frequencies are in the 68% credible interval. With a standard deviation of 0.95% for 2400 independent experiments, this is approximately four standard deviations away from the 68% expected value.

We note that the uncertainties obtained for the 1460-day pairs are significantly smaller than for the 365-day pairs. An example comparison between the true value and apollinaire fitted value is shown in Figs. 6 and 7, where the frequency error $v_{fitted} - v_{true}$ between the fitted value and the true value is represented for the $ℓ = 1$ mode of pair 2. The spread reduction of the error distribution appears clearly in the histograms. Figure 7 also shows the $(v_{fitted} - v_{true})/\sigma$ distribution where we specify the mean value $\langle(v_{fitted} - v_{true})/\sigma\rangle$. As expected, the standard deviation for the $(v_{fitted} - v_{true})/\sigma$ distribution is close to 1 in both cases. We find no systematic bias in the fitted parameters, except for the splittings in pair 3 which are systematically underestimated due to the large mode width.

## 4.2. GOLF solar PSD analysis

To study the p-mode frequency shifts induced by the magnetic solar cycle, Salabert et al. (2015) performed an analysis of 69 one-year subseries of the GOLF instrument, spanning from 1996 April 11 to 2014 March 5, with 91.25 days overlap. The modes were fitted using a MLE method (Salabert et al. 2007). In order to compare the results from this method with apollinaire fits, we use the same MLE code to perform a similar analysis by considering subseries of 1-yr spanning from 1996

<footnote n="5">⁵ Full results, *Kepler* light curves, and data analysis tools used to perform the benchmark can be accessed through the following repository: https://gitlab.com/sybreton/benchmark_peakbagging_apollinaire</footnote>
<figure><img src="image_7.png" /><figcaption>**Fig. 6.** Error $v_{fitted} - v_{true}$ on the $l = 1$ mode from pair 2 and corresponding uncertainties for every Monte Carlo run with 365-day (grey) and 1460-day (blue) resolution. The zero vertical coordinate is highlighted by the red dashed line.</figcaption></figure>

<figure><img src="image_8.png" /><figcaption>**Fig. 7.** Top: $v_{fitted} - v_{true}$ distribution on the $l = 1$ mode from pair 2 for every Monte Carlo run with 365-day (grey) and 1460-day (blue) resolution. Bottom: $(v_{fitted} - v_{true})/\sigma$ distribution on the $l = 1$ mode from pair 2 for every Monte Carlo run with 365-day (grey) and 1460-day (blue) resolution. The mean value $\langle (v_{fitted} - v_{true})/\sigma \rangle$ for both distributions is specified and the standard deviation of the 1460-day distribution is shown in red.</figcaption></figure>

<figure><img src="image_9.png" /><figcaption>**Fig. 8.** $(v_{apn} - v_{MLE})/\sqrt{\sigma_{apn}^2 + \sigma_{MLE}^2}$ distribution for mode frequencies fitted in the 89 considered GOLF time series.</figcaption></figure>

April 11 to 2020 July 6, with a 91.25 days overlap<fnref n="6" />. We remove five subseries that have a duty-cycle of below 90% and therefore

consider 89 subseries. For each of these subseries, we fit modes $l = 0, 1, 2, 3$. However, as $l = 3$ have low signal-to-noise ratios in the GOLF data, we compare only the results obtained for mode $l = 0, 1, 2$ in the following. The lowest frequency considered mode is $n = 11$, $l = 2$ while the highest frequency considered mode is $n = 26$, $l = 1$. This means that we compare fit results between apollinaire and the MLE method for 4005 modes. The procedure to fit the series with apollinaire is the following. Frequency bins below 50 µHz are not considered to fit the background. The S/N spectrum is then computed by dividing the PSD by the fitted background model. Modes are fitted by pair. Heights $H_{n,l}$, FWHMs $\Gamma_{n,l}$ and splittings $s_{n,l}$ are fitted independently for each mode. As asymmetries are expected to depend on frequency only, one asymmetry value is fitted for each pair. Finally, $l = \{4, 5\}$ power leakages are accounted for during the fit. For the background fit, the MCMC are sampled with 500 walkers iterated over 500 steps, with the 100 first steps discarded as burn-in. For the individual mode fit, the MCMC are sampled using 500 walkers iterated over 1000 steps. The 400 first steps are discarded to take the burn-in phase into account.

We consider the $1\sigma$ and $3\sigma$ intervals relative to the values and corresponding uncertainties $\sigma$ fitted with apollinaire. Among the 4005 fitted modes, the frequencies fitted by the MLE method, $v_{MLE}$, lay outside the $1\sigma$ interval for 38 modes (0.9%) and outside the $3\sigma$ interval for 10 modes (0.2%). The MLE heights $H$ lay outside the $1\sigma$ interval for 464 modes (11.5%) and outside the $3\sigma$ interval for 23 modes (0.6%). The MLE FWHMs $\Gamma$ lay outside the $1\sigma$ interval for 185 modes (4.6%) and outside the $3\sigma$ interval for 18 modes (0.4%). The relatively high number of $H$ and $\Gamma$ values laying outside the $1\sigma$ interval can be explained by the strong anti-correlation that exists between these two parameters, especially at high frequency. We also identify at least two modes that have not been correctly fitted by the MLE method. Finally, we represent the $(v_{apn} - v_{MLE})/\sqrt{\sigma_{apn}^2 + \sigma_{MLE}^2}$ distribution in Fig. 8 in order to show the comparison of the two methods exhibits no systematic bias.

### 4.3. The Kepler main sequence LEGACY catalogue

In order to extract strong modelling constraints to be used in stellar evolution codes Silva Aguirre et al. (2017), hereafter L17, performed a thorough peakbagging analysis of the so-called Kepler LEGACY sample, which contains 66 main sequence stars with

<footnote n="6">⁶ The GOLF time series used for this work can be downloaded at https://irfu.cea.fr/dap/LDEE/Phocea/Vie_des_labos/Ast/ast_visu.php?id ast=3842</footnote>
<table><caption>**Table 7.** KIC and fundamental stellar properties of selected targets from the LEGACY sample.</caption><thead><tr><th>KIC</th><th>Name</th><th><i>T</i><sub>eff</sub> (K)</th><th>log <i>g</i></th><th><i>R</i> (<i>R</i><sub>☉</sub>)</th><th><i>M</i> (<i>M</i><sub>☉</sub>)</th></tr></thead><tbody><tr><td>5184732</td><td>—</td><td>5835</td><td>4.257</td><td>1.326</td><td>1.159</td></tr><tr><td>6106415</td><td>—</td><td>6028</td><td>4.295</td><td>1.202</td><td>1.039</td></tr><tr><td>6225718</td><td>—</td><td>6320</td><td>4.316</td><td>1.207</td><td>1.096</td></tr><tr><td>6603624</td><td>—</td><td>5671</td><td>4.319</td><td>1.162</td><td>1.027</td></tr><tr><td>12069424</td><td>16CygA</td><td>5775</td><td>4.294</td><td>1.165</td><td>0.973</td></tr><tr><td>12069449</td><td>16CygB</td><td>5745</td><td>4.359</td><td>1.069</td><td>0.952</td></tr></tbody></table>

stochastically excited p modes<fnref n="7" />. We select six targets to analyse within the LEGACY sample, namely KIC 5184732, 6106415, 6225718, 6603624, 12069424, and 12069449, and we compare the apollinaire results to the reference values provided by L17. Some fundamental stellar properties of the selected targets are given in Table 7, which are taken from the Kepler data release 25 (DR25, Mathur et al. 2017).

As we want to show how apollinaire behaves when used blindly without any previous knowledge of the seismic values, effective temperatures $T_{\text{eff}}$, masses $M$, and radii $R$ are used to estimate $v_{\text{max}}$ and $\Delta v$ values from the global seismic scaling laws. We could also have used the $v_{\text{max}}$ and $\Delta v$ values from L17 as input. The PSDs we analyse were obtained from KEPSEISMIC-calibrated<fnref n="8" /> light curves (García et al. 2011). The background profile is fitted considering two Harvey models and a flat noise contribution (see Sect. 2.2). We fit the background with the complete PSD, but in order to assess the effect of a background fit performed on a rebinned PSD on the mode frequencies, we also sample the posterior probability of our background model on a PSD resampled following the method described in Appendix A. Frequency bins below 50 µHz are not considered. We use 500 walkers iterated over 5000 steps, with the 100 first iterations discarded as burn-in. We deliberately choose a large number of steps to ensure the convergence of the chains. The global mode pattern is adjusted on the S/N spectrum obtained by dividing the PSD by the background model, according to the strategy described in Sect. 3.5 and considering $\ell = \{0, 1, 2, 3\}$ of the three orders closest to $v_{\text{max}}$. We use 500 walkers iterated over 5000 steps and we discard the 250 first drawn points. We visually check that the fitted pattern has a satisfying profile in order to provide correct frequency guesses for the individual mode-parameter extraction. In the individual mode parameter fit, for each target, we limit our analysis to the seven orders closest to $v_{\text{max}}$. All the chosen targets have a p-mode S/N that is sufficient to fit mode parameters farther from $v_{\text{max}}$, but we make this choice in order to ensure that the frequency estimates yielded by Eq. (24) are correct and to avoid a manual redefinition of the priors for low- and high-order modes before sampling the mode parameters. The MCMCs are sampled using 500 walkers iterated over 5000 steps. The 200 first steps are discarded to take the burn-in phase into account.

For each fitted parameter, L17 specified two uncertainty values (in the same way apollinaire allows computing $\sigma_+$ and $\sigma_-$). For sake of simplicity and clarity in the comparison of results, we consider only the larger uncertainty value

<figure><img src="image_10.png" /><figcaption>**Fig. 9.** L17 $\epsilon$ values (pentagons) compared to apollinaire $\epsilon$ values (stars) for the six considered targets. Corresponding KIC are specified next to each red dot. The epsilon values obtained by L17 for the other stars of the LEGACY sample are represented in grey. Some of the uncertainties are too small to be represented on the figure.</figcaption></figure>

for each parameter. L17 epsilon $\epsilon$ values are compared to the results yielded by apollinaire in Fig. 9. The echelle diagrams obtained from the apollinaire fits are provided in Fig. 10 where we also represent the frequencies obtained from Eq. (24) and the corresponding pattern sampling. As already underlined in Sect. 3.5, the echelle diagram clearly shows that, as we constrained the parameters from Eq. (24) on only the three central orders, the predicted value we obtain for modes far from $v_{\text{max}}$ does not follow the actual node ridge in the echelle diagrams. Fitted frequencies are compared with the values from L17 in Fig. 11. The same type of comparison is performed for mode amplitudes and FWHMs in Fig. 12. The apollinaire fitted values and reference from L17 can be found in Tables 8, D.3, and D.4, along with the quality assurance values $\ln K$ computed according to the method presented in Sect. 3.9. The results are globally in agreement for frequencies. Considering the $1\sigma$ and $3\sigma$ interval relative to the apollinaire value again over the 154 fitted frequencies, the L17 frequency is beyond $1\sigma$ for 39 modes and beyond $3\sigma$ for three modes. We find larger discrepancies for mode amplitudes and widths: over the 42 fitted widths (one per order), the L17 value is outside the $1\sigma$ interval 25 times and outside the $3\sigma$ interval 8 times. Over the 42 fitted amplitudes, the L17 value is outside the $1\sigma$ interval 31 times and outside the $3\sigma$ interval 12 times. We find no systematic bias in the frequency, amplitude, and width comparison. Concerning the mode frequencies, the largest observed discrepancy between L17 and apollinaire is found to be on the KIC 006603624 mode $M_{18,3}$. We have $v_{18,3,apn} = 2299.52 \pm 0.20$ µHz and $v_{18,3,L17} = 2305.47 \pm 0.13$ µHz. However, inspecting the KIC 006603624 spectrum and the corresponding echelle diagram, it seems more credible to us that the correct position of this mode is the one yielded by apollinaire.

The discrepancies in the values obtained for fitted parameters can have multiple explanations. While we used KEPSEISMIC data, L17 exploited light curves corrected with the KASOC filter (Handberg & Lund 2014). The data calibration influences the power redistribution in the PSD frequency bins and may

<footnote n="7">⁷ The mode frequency, amplitude and width tables are publicly available on VizieR at http://cdsarc.u-strasbg.fr/viz-bin/Cat?J/Apl/835/172</footnote>

<footnote n="8">⁸ KEPSEISMIC data are available at MAST via http://dx.doi.org/10.17909/t9-mrpw-gc07</footnote>
<figure><img src="image_11.png" /><figcaption>**Fig. 10.** Échelle diagram of the six selected targets apollinaire fitted p-mode frequencies (black diamonds) with corresponding error bars. The blue circles signal the frequency initial guesses inferred from Eq. (24).</figcaption></figure>

therefore be responsible for some of the observed discrepancies between the mode widths and amplitudes, and, to a lesser extent, for frequency discrepancies. However, when comparing peakbagging codes, it is found that the main discrepancies are induced by the differences in the methods used to fit the background (Appourchaux et al. 2014). It should also be underlined that there are several differences in the models we use when compared to those used by L17. The first main difference resides in the fact that L17 included the $V_ℓ$ parameters for which posterior probability distributions are sampled while these parameters were fixed in our model (see Sect. 2.6). The second difference is that, as we fit order by order, the inclination angle $i$ is poorly constrained with this choice of strategy. It is also important to

keep in mind that the uncertainty values yielded by a MCMC process are only formal uncertainties related to the variance of the parameters inside a given model confronted to the data. It has already been demonstrated that an inaccurate description (e.g. by neglecting the $ℓ = 4, 5$ contribution or the wing power of the modes outside the fitting window) of the mode profiles could bias the estimation of the real values by several times the uncertainty values (Jiménez-Reyes et al. 2008).

Concerning $\epsilon$ values, L17 and White et al. (2011) noted that a strong anti-correlation exists between $\Delta v$ and $\epsilon$. We also note that for most $v_{max}$, $\Delta v$, and $\epsilon$, the apollinaire uncertainty values are much larger than for the L17 values. For KIC 006225718, for example, apollinaire yielded $\Delta v = 106.78 \pm 0.43$ µHz while
<figure><img src="image_12.png" /><figcaption>**Fig. 11.** Comparison of p-mode frequencies yielded by *apollinaire* (dark blue) and reference values from L17 (light blue). The error bars overlapping intervals are represented in medium blue. The KEPSEISMIC PSD are represented in light grey while the *apollinaire* fitted model is shown in dark grey.</figcaption></figure>

L17 gave $\Delta\nu = 105.695 \pm 0.018$ µHz. This can be explained by the fact that, even if our Eq. (24) is really close to Eq. (27) of L17, the strategy exploited to sample the parameter distribution is totally different. We use Eq. (24) together with Eq. (27) and a common $\Gamma$ value in order to compute a mode profile for the three central orders and directly constrain our parameters with the PSD. On the contrary, L17 used their Eq. (27) to constrain the pattern parameters from the individual mode frequencies they had already obtained from the PSD analysis.

Finally, Fig. 13 shows the $(\nu_{\text{full}} - \nu_{\text{resampled}})/\sqrt{\sigma_{\text{full}}^2 + \sigma_{\text{resampled}}^2}$ distribution, where $\nu_{\text{full}}$ and $\sigma_{\text{full}}$ are the

frequencies and uncertainties obtained by considering the complete PSD for the background fit, and $\nu_{\text{resampled}}$ and $\sigma_{\text{resampled}}$ are the frequencies and uncertainties obtained after using the background fitted on the resampled PSD. This shows that, for mode frequencies, the discrepancies between the two methods are negligible with respect to the fitted uncertainties, which means that frequencies obtained with the PSD resampling method can be used without risk as input for modelling codes. This resampling strategy is made relevant in the optic of the PLATO mission preparation, where it will be necessary to perform the peakbagging analysis for tens of thousands of stars in an optimised computing time.
<figure><img src="image_13.png" /><figcaption>**Fig. 12.** Comparison of p-mode FWHMs and amplitudes yielded by apollinaire (dark blue and red, respectively) and reference values from L17 (light blue and salmon, respectively). The error bars overlapping intervals are represented in medium blue and dark salmon, respectively.</figcaption></figure>

<table><caption>**Table 8.** Comparison between $v_{max}$, $\Delta v$, and $\epsilon$ values yielded by apollinaire and reference values from L17.</caption><thead><tr><th>KIC</th><th>v<sub>max,apn</sub> (µHz)</th><th>v<sub>max,L17</sub> (µHz)</th><th>Δv<sub>apn</sub> (µHz)</th><th>Δv<sub>L17</sub> (µHz)</th><th>ε<sub>apn</sub></th><th>ε<sub>L17</sub></th></tr></thead><tbody><tr><td>5184732</td><td>2164 ± 35</td><td>2089.3 ± 4.4</td><td>95.94 ± 0.15</td><td>95.545 ± 0.024</td><td>1.287 ± 0.034</td><td>1.374 ± 0.005</td></tr><tr><td>6106415</td><td>2215 ± 50</td><td>2248.6 ± 4.6</td><td>103.36 ± 0.37</td><td>104.074 ± 0.026</td><td>1.499 ± 0.079</td><td>1.343 ± 0.005</td></tr><tr><td>6225718</td><td>2349 ± 54</td><td>2364.2 ± 4.9</td><td>106.78 ± 0.43</td><td>105.695 ± 0.018</td><td>1.005 ± 0.087</td><td>1.225 ± 0.004</td></tr><tr><td>6603624</td><td>2386 ± 24</td><td>2384.0 ± 5.6</td><td>110.05 ± 0.03</td><td>110.128 ± 0.012</td><td>1.509 ± 0.006</td><td>1.492 ± 0.002</td></tr><tr><td>12069424</td><td>2192 ± 22</td><td>2188.5 ± 4.6</td><td>103.35 ± 0.39</td><td>103.277 ± 0.021</td><td>1.426 ± 0.008</td><td>1.437 ± 0.004</td></tr><tr><td>12069449</td><td>2625 ± 93</td><td>2561.3 ± 5.6</td><td>116.87 ± 0.87</td><td>116.929 ± 0.013</td><td>1.473 ± 0.007</td><td>1.461 ± 0.013</td></tr></tbody></table>
<figure><img src="image_14.png" /><figcaption>**Fig. 13.** $(v_{\text{full}} - v_{\text{resampled}})/\sqrt{\sigma_{\text{full}}^2 + \sigma_{\text{resampled}}^2}$ distribution for the six targets considered in the LEGACY sample.</figcaption></figure>

## 5. Discussion

The possibilities offered by MCMC sampling methods and the flexibility of the possible strategies allowed by apollinaire merit a brief discussion. Another question that arises when using MCMC is the hyper-parameters value that must be chosen in order to correctly dimension the problem. We decided in this paper to use 500 walkers for all the sampling we perform, which is a typical value used in several peakbagging studies (see e.g. Davies et al. 2016; Lund et al. 2017). Choosing the optimal number of steps to perform when sampling the chain and the proportion of steps that should be burned in at the beginning of the run represents a complex issue that has no universal solution. This can only be done through test and trial, especially when the initial guesses appear to be quite far from the posterior probability optimum. One way to check that the chain is fully converged is to split it in half after having removed the burned in elements and to verify that the shapes of the two subdivisions are identical. It is also possible to estimate the auto-correlation time $\tau$ of the chain to assess its convergence. However, obtaining a reliable estimate of $\tau$ requires running the sampling for at least 50$\tau$ steps, which can prove extremely computationally extensive. Having run a sampling experiment with KIC 6603624 as reference, we find that, when the posterior is data dominated, $\tau$ values are typically of a few hundred steps. Parameters for which the posterior is prior dominated typically have longer auto-correlation times.

It is also important to keep in mind that some fitting strategies may have to be preferred considering the target being analysed. For example, for high-resolution solar data, we will favour a fit by pair, with the height and the FWHM of each mode set to vary freely. Mode asymmetries should be fitted for modes above 2450 µHz. In stellar data, especially with low-resolution low-S/N data, modes will be fitted globally or by order, with a constraint on the mode-relative amplitudes. It will only be possible to constrain the stellar inclination angle where good S/N data are available; in this case, it will be necessary to perform a global fit in order to consider the m-height ratio of the largest possible number of modes at the same time. Mode asymmetries are usually not considered when fitting stellar data. The user may keep in mind that when fitting all the modes at once with a global method, the MCMC will converge more slowly because of the increased number of dimensions in the parameter space being explored. For power spectra obtained from short time series, because of the mode stochastic excitation, allowing

the mode EWHM and height to vary freely may sometimes yield better results than using the ratios specified in Table 2.

## 6. Conclusion

In this paper, we introduced the apollinaire module, an open-source Python 3 package designed for helio- and asteroseismic disk-integrated peakbagging. The module implements a set of functions that are able to extract background, p-mode global pattern, and p-mode individual parameters through MCMC sampling implemented with `emcee`. The implementation of these functions is designed to provide a flexible framework. They can be used independently or combined depending on the task the user wants to achieve.

We analysed data from the GOLF instrument and the *Kepler* LEGACY sample in order to compare apollinaire results with values available in the literature. We find good agreement between our results and the reference values. The discrepancies can be explained by differences in data calibrations, fitting strategies, and adopted models.

The code is in active development and the online repository is regularly updated. An online documentation of the package is available and includes several tutorials that should allow any interested user to quickly start working with apollinaire and use the different functions to analyse their own set of data. With the increasing number of TESS targets of asteroseismic interest and the preparation of the PLATO mission, we hope that apollinaire will become a widely used tool in the community.

**Acknowledgements.** The authors thank the anonymous referee for constructive comments and precious suggestions that greatly enriched and completed the material of the paper. S.N.B. and R.A.G acknowledge the support from PLATO and GOLF CNES grants. J.B. acknowledges the support from CNES. V.D. acknowledges the support of the IAC (Tenerife, Spain). The authors are deeply grateful to G.R. Davies who originally designed the a2z data structures in collaboration with R.A.G. They also thank L. Bugnet, M. Delorme, A. Jiménez, S. Mathur, and V. Prat for fruitful discussions. A special thank to A. Finley for his precious suggestions concerning the name of the paper. This paper includes data collected by the *Kepler* mission. Funding for the *Kepler* mission is provided by the NASA Science Mission Directorate. This research has made use of the VizieR catalogue access tool, CDS, Strasbourg, France (DOI: 10.26093/cds/vizier). The original description of the VizieR service was published in 2000, A&AS 143, 23. Software: Python (Van Rossum & Drake 2009), numpy (Oliphant 2006; Harris et al. 2020), pandas (pandas development team 2020; Wes McKinney 2010), matplotlib (Hunter 2007), `emcee` (Foreman-Mackey et al. 2013), `scipy` (Virtanen et al. 2020), `corner` (Foreman-Mackey 2016), `astropy` (Astropy Collaboration 2013, 2018), `h5py` (Collette 2013), `george` (Ambikasaran et al. 2015). The previous references should be cited together with apollinaire when using the module. Packaged version of apollinaire can be installed through `pip` and `conda-forge` (`conda-forge` community 2015). The source code and most recent versions of apollinaire can be found at https://gitlab.com/sybreton/apollinaire while the module documentation is hosted at https://apollinaire.readthedocs.io/.

## References

* Ambikasaran, S., Foreman-Mackey, D., Greengard, L., Hogg, D. W., & O'Neil, M. 2015, IEEE Trans. Pattern Anal. Mach. Intell., 38, 252

* Appourchaux, T. 2020, A&A, 642, A226

* Appourchaux, T., Gizon, L., & Rabello-Soares, M. C. 1998, A&AS, 132, 107

* Appourchaux, T., Samadi, R., & Dupret, M. A. 2009, A&A, 506, 1

* Appourchaux, T., Chaplin, W. J., García, R. A., et al. 2012, A&A, 543, A54

* Appourchaux, T., Antia, H. M., Benomar, O., et al. 2014, A&A, 566, A20

* Astropy Collaboration (Robitaille, T. P., et al.) 2013, A&A, 558, A33

* Astropy Collaboration (Price-Whelan, A. M., et al.) 2018, AJ, 156, 123

* Auvergne, M., Bodin, P., Boisnard, L., et al. 2009, A&A, 506, 411

* Ballot, J., García, R. A., & Lambert, P. 2006, MNRAS, 369, 1281

* Ballot, J., Appourchaux, T., Toutain, T., & Guittet, M. 2008, A&A, 486, 867

* Beck, P. G., Bedding, T. R., Mosser, B., et al. 2011, Science, 332, 205

* Bedding, T. R., Mosser, B., Huber, D., et al. 2011, Nature, 471, 608
Benomar, O., Appourchaux, T., & Baudin, F. 2009, A&A, 506, 15

Benomar, O., Bedding, T. R., Stello, D., et al. 2012, ApJ, 745, L33

Borucki, W. J., Koch, D. G., Basri, G., et al. 2011, ApJ, 736, 19

Breton, S. N., Santos, A. R. G., Bugnet, L., et al. 2021, A&A, 647, A125

Breton, S. N., Pallé, P. L., García, R. A., et al. 2022, A&A, 658, A27

Broomhall, A. M., Chaplin, W. J., Elsworth, Y., Appourchaux, T., & New, R. 2010, MNRAS, 406, 767

Buzasi, D., Catanzarite, J., Laher, R., et al. 2000, ApJ, 532, L133

Chaplin, W. J., Elsworth, Y., Howe, R., et al. 1996, Sol. Phys., 168, 1

Chaplin, W. J., Appourchaux, T., Arentoft, T., et al. 2008, Astron. Nachr., 329, 549

Chaplin, W. J., Kjeldsen, H., Christensen-Dalsgaard, J., et al. 2011, Science, 332, 213

Christensen-Dalsgaard, J. 2008, Lecture Notes on Stellar Oscillations, 15th edn. https://phys.au.dk/~jcd/oscilnotes/

Collette, A. 2013, Python and HDF5 (O'Reilly)

Conda-forge community 2015, https://10.5281/zenodo.4774217

Corsaro, E., & De Ridder, J. 2014, A&A, 571, A71

Corsaro, E., Grundahl, F., Leccia, S., et al. 2012, A&A, 537, A9

Corsaro, E., McKeever, J. M., & Kuszlewicz, J. S. 2020, A&A, 640, A130

Davies, G. R., Silva Aguirre, V., Bedding, T. R., et al. 2016, MNRAS, 456, 2183

Deheuvels, S., Ballot, J., Beck, P. G., et al. 2015, A&A, 580, A96

Duvall, T. L., J., Jefferies, S. M., Harvey, J. W., Osaki, Y., & Pomerantz, M. A. 1993, ApJ, 410, 829

Dziembowski, W. 1977, Acta Astron., 27, 203

Fletcher, S. T., Chaplin, W. J., Elsworth, Y., Schou, J., & Buzasi, D. 2006, MNRAS, 371, 935

Foreman-Mackey, D. 2016, J. Open Source Softw., 1, 24

Foreman-Mackey, D., Hogg, D. W., Lang, D., & Goodman, J. 2013, PASP, 125, 306

Fredslund Andersen, M., Pallé, P., Jessen-Hansen, J., et al. 2019, A&A, 623, L9

Fröhlich, C., Romero, J., Roth, H., et al. 1995, Sol. Phys., 162, 101

Gabriel, M. 1994, A&A, 287, 685

Gabriel, A. H., Grec, G., Charra, J., et al. 1995, Sol. Phys., 162, 61

García, R. A. 2015, in EAS Publications Series, 73–74, 193

García, R. A., & Ballot, J. 2019, Liv. Rev. Solar Phys., 16, 4

García, R. A., Boumier, P., Charra, J., et al. 1999, A&A, 346, 626

García, R. A., Hekker, S., Stello, D., et al. 2011, MNRAS, 414, L6

Gaulme, P., Appourchaux, T., & Boumier, P. 2009, A&A, 506, 7

Gizon, L., & Solanki, S. K. 2003, ApJ, 589, 1009

Goodman, J., & Weare, J. 2010, Commun. Appl. Math. Comput. Sci., 5, 65

Gruberbauer, M., & Guenther, D. B. 2013, MNRAS, 432, 417

Gruberbauer, M., Kallinger, T., Weiss, W. W., & Guenther, D. B. 2009, A&A, 506, 1043

Gruberbauer, M., Guenther, D. B., MacLeod, K., & Kallinger, T. 2013, MNRAS, 435, 242

Grundahl, F., Kjeldsen, H., Christensen-Dalsgaard, J., Arentoft, T., & Frandsen, S. 2007, Commun. Asteroseismol., 150, 300

Grundahl, F., Fredslund Andersen, M., Christensen-Dalsgaard, J., et al. 2017, ApJ, 836, 142

Handberg, R., & Campante, T. L. 2011, A&A, 527, A56

Handberg, R., & Lund, M. N. 2014, MNRAS, 445, 2698

Harris, C. R., Millman, K. J., van der Walt, S. J., et al. 2020, Nature, 585, 357

Harvey, J. 1985, in ESA Special Publication, Future Missions in Solar, Heliospheric & Space Plasma Physics, eds. E. Rolfe, & B. Battrick, 235, 199

Harvey, J. W., Hill, F., Hubbard, R. P., et al. 1996, Science, 272, 1284

Hastings, W. K. 1970, Biometrika, 57, 97

Hill, M. L., Kane, S. R., Campante, T. L., et al. 2021, AJ, 162, 211

Houdayer, P. S., Reese, D. R., Goupil, M.-J., & Lebreton, Y. 2021, A&A, 655, A85

Howell, S. B., Sobeck, C., Haas, M., et al. 2014, PASP, 126, 398

Huber, D., White, T. R., Metcalfe, T. S., et al. 2022, AJ, 163, 79

Hunter, J. D. 2007, Comput. Sci. Eng., 9, 90

Jiménez-Reyes, S. J., Chaplin, W. J., García, R. A., et al. 2008, MNRAS, 389, 1780

Kallinger, T., De Ridder, J., Hekker, S., et al. 2014, A&A, 570, A41

Kass, R. E., & Raftery, A. E. 1995, J. Am. Stat. Assoc., 90, 773

Kjeldsen, H., & Bedding, T. R. 1995, A&A, 293, 87

Kjeldsen, H., Bedding, T. R., Viskum, M., & Frandsen, S. 1995, AJ, 109, 1313

Korzennik, S. G. 2005, ApJ, 626, 585

Ledoux, P. 1951, ApJ, 114, 373

Liu, J. 2009, Monte Carlo Strategies in Scientific Computing (New York: Springer)

Lund, M. N., Silva Aguirre, V., Davies, G. R., et al. 2017, ApJ, 835, 172

Mathur, S., García, R. A., Régulo, C., et al. 2010, A&A, 511, A46

Mathur, S., Huber, D., Batalha, N. M., et al. 2017, ApJS, 229, 30

Mathur, S., García, R. A., Breton, S., et al. 2022, A&A, 657, A31

Matthews, J. M., Kuschnig, R., Walker, G. A. H., et al. 2000, in The Impact of Large-Scale Surveys on Pulsating Star Research, IAU Colloq. 176, eds. L. Szabados, & D. Kurtz, ASP Conf. Ser., 203, 74

Mazumdar, A., Monteiro, M. J. P. F. G., Ballot, J., et al. 2014, ApJ, 782, 18

Metropolis, N., Rosenbluth, A. W., Rosenbluth, M. N., Teller, A. H., & Teller, E. 1953, J. Chem. Phys., 21, 1087

Mosser, B., Barban, C., Montalbán, J., et al. 2011, A&A, 532, A86

Mosser, B., Vrard, M., Belkacem, K., Deheuvels, S., & Goupil, M. J. 2015, A&A, 584, A50

Nielsen, M. B., Davies, G. R., Ball, W. H., et al. 2021, AJ, 161, 62

Nigam, R., & Kosovichev, A. G. 1998, ApJ, 505, L51

Oliphant, T. 2006, NumPy: A guide to NumPy (Trelgol Publishing)

Pallé, P. L., Grundahl, F., Triviño Hage, A., et al. 2013, in Journal of Physics Conference Series, 440, 012051

Pandas development team, T. 2020, https://10.5281/zenodo.3630805

Press, W. H., Teukolsky, S. A., Vetterling, W. T., & Flannery, B. P. 1992, Numerical recipes in FORTRAN. The art of scientific computing 2nd edn. (Cambridge University Press)

Rauer, H., Catala, C., Aerts, C., et al. 2014, Exp. Astron., 38, 249

Ricker, G. R., Winn, J. N., Vanderspek, R., et al. 2015, J. Astron. Telescopes Instrum. Syst. 1, 014003

Salabert, D., Fossat, E., Gelly, B., et al. 2002, A&A, 390, 717

Salabert, D., Fossat, E., Gelly, B., et al. 2004, A&A, 413, 1135

Salabert, D., Chaplin, W. J., Elsworth, Y., New, R., & Verner, G. A. 2007, A&A, 463, 1181

Salabert, D., Ballot, J., & García, R. A. 2011a, in GONG-SoHO 24: A New Era of Seismology of the Sun and Solar-Like Stars, J. Phys. Conf. Ser., 271, 012053

Salabert, D., Ballot, J., & García, R. A. 2011b, A&A, 528, A25

Salabert, D., García, R. A., & Turck-Chièze, S. 2015, A&A, 578, A137

Santos, A. R. G., García, R. A., Mathur, S., et al. 2019, ApJS, 244, 21

Santos, A. R. G., Breton, S. N., Mathur, S., & García, R. A. 2021, ApJS, 255, 17

Scherrer, P. H., Bogart, R. S., Bush, R. I., et al. 1995, Sol. Phys., 162, 129

Scherrer, P. H., Schou, J., Bush, R. I., et al. 2012, Sol. Phys., 275, 207

Silva Aguirre, V., Lund, M. N., Antia, H. M., et al. 2017, ApJ, 835, 173

Smith, A. M. S., Breton, S. N., Csizmadia, S., et al. 2022, MNRAS, 510, 5035

Sokal, A. 1997, Monte Carlo Methods in Statistical Mechanics: Foundations and New Algorithms, eds. C. DeWitt-Morette, P. Cartier, & A. Folacci (Boston, MA: Springer US), 131

Stahn, T., & Gizon, L. 2008, Sol. Phys., 251, 31

Tassoul, M. 1980, ApJS, 43, 469

Tayar, J., Claytor, Z. R., Huber, D., & van Saders, J. 2022, ApJ, 927, 31

Toutain, T., & Appourchaux, T. 1994, A&A, 289, 649

Toutain, T., & Gouttebroze, P. 1993, A&A, 268, 309

Toutain, T., Appourchaux, T., Fröhlich, C., et al. 1998, ApJ, 506, L147

Unno, W., Osaki, Y., Ando, H., Saio, H., & Shibahashi, H. 1989, Nonradial oscillations of stars (Tokyo: University of Tokyo Press)

Van Rossum, G., & Drake, F. L. 2009, Python 3 Reference Manual (Scotts Valley, CA: CreateSpace)

Virtanen, P., Gommers, R., Oliphant, T. E., et al. 2020, Nature Methods, 17, 261

Wes McKinney. 2010, in Proceedings of the 9th Python in Science Conference, eds. Stéfan van der Walt, & Jarrod Millman, 56

White, T. R., Bedding, T. R., Stello, D., et al. 2011, ApJ, 742, L3

Woodard, M. F. 1984, PhD thesis, University of California, San Diego
## Appendix A: PSD resampling for background fit

We included several resampling strategies in apollinaire in order to perform quicker background fits (the computing time of the MCMC process being mainly constrained by the length of the vector on which the posterior probability is computed at each step). We describe here the resampling methods implemented in the module. The user has the choice between two resampling strategies, reboxing and advanced_reboxing.

The reboxing strategy uses the numpy.logspace function to create a new frequency vector with logarithmic frequency spacing and a number of data points specified by the user. The logarithmic spacing is preferred over a linear spacing in order to increase the proportion of low-frequency data-point in the fit. Each bin of the original PSD is then attributed to a box considering the closest frequency bin in the new frequency vector. The median of each box is then considered in order to compute the resampled PSD.

In order to apply a distinct resampling to the p-mode region, the advanced_reboxing extends this approach with a more subtle resampling techniques. In this case, the user specifies a target number N of data points in the resampled PSD outside the $v_{max}$ region and a number M of data points in the $v_{max}$ region. Considering consecutive frequency bins $v_k$ and $v_{k+1}$, they are directly put in the resampled frequency vector under the condition

$$ \frac{v_{k+1}}{v_k} > 10^{\frac{1}{N}}, \qquad (A.1) $$

We define $k_0$ as the frequency bin verifying:

$$ k_0 = \min_k \left\{ \frac{v_{k+1}}{v_k} < 10^{\frac{1}{N}} \right\}, \qquad (A.2) $$

and three frequency intervals $I_j = [v_a, v_b]$ such as

$$ I_1 = \left[ v_{k_0}, \frac{2}{3} v_{max} \right], \qquad (A.3) $$

$$ I_2 = \left[ \frac{2}{3} v_{max}, \frac{3}{2} v_{max} \right], \qquad (A.4) $$

$$ I_3 = \left[ \frac{3}{2} v_{max}, v_{Nyquist} \right]. \qquad (A.5) $$

For each frequency interval, the box size parameter $S_j$ is

$$ S_j = \left( \frac{v_b}{v_a} \right)^{\frac{1}{N_j}}, \qquad (A.6) $$

with

$$ N_1 = \frac{N}{C} \log \left( \frac{2v_{max}}{3v_{k_0}} \right), \qquad (A.7) $$

$$ N_2 = M, \qquad (A.8) $$

$$ N_3 = \frac{N}{C} \log \left( \frac{3v_{Nyquist}}{2v_{max}} \right), \qquad (A.9) $$

and the parameter C is given by

$$ C = \log \left( \frac{4 v_{Nyquist}}{9 v_{k_0}} \right). \qquad (A.10) $$

The bounds of the consecutive boxes in the $I_j$ interval are then $[v_a, S_j v_a]$, $[S_j v_a, S_j^2 v_a]$, ..., $[S_j^{N_j-1} v_a, v_b]$. Inside each box, the

new PSD bin is taken as the median of the PSD values in the box while the corresponding new frequency bin is computed by considering the geometric means of the frequencies inside the box

$$ v_{\text{box}} = 10^{\frac{1}{n_{\text{bin}}} \sum_{i=1}^{n_{\text{bin}}} \log v_i}, \qquad (A.11) $$

with $n_{\text{bin}}$ the number of frequency bins inside the box.

## Appendix B: Subgiant mixed-mode fitting recipe

Although apollinaire was not initially designed to perform the automatic analysis of subgiant stars, it is possible to exploit the global fitting strategy in order to characterise stars with an important number of mixed modes. In this appendix we propose a recipe to analyse such stars. The user who would like to use this recipe should be aware that in its current version, apollinaire provides no method to automatically compute guesses for mixed-mode parameters. Such methods were presented, for example, in Mosser et al. (2015) or Appourchaux (2020).

We provide here an example<fnref n="9" /> of such a fit performed on KIC 5723165, a subgiant star observed by Kepler in short cadence in Q1, Q5, and continuously from Q7 to Q13 for a total of ~760 days (e.g. Appourchaux 2020), which has not been peakbagged yet. The apollinaire KIC 5723165 peakbagging summary plot is shown in Fig. B.1.

The sequence of steps to be followed in order to apply the recipe is therefore as follows:

1. We start by fitting the background with the explore_distribution_background function, including the fitting of a Gaussian function to take into account the power hump of the p and mixed modes.

2. The presence of mixed modes can perturb the analysis of the mode pattern and the calculation of $\Delta v$. Therefore, after dividing the PSD by the background to work in S/N, we remove the region of the odd modes from the PSD prior to fit the universal pattern using only the even modes. To do so, we provide a Jupyter notebook in the documentation with an easy procedure to select the regions of the even modes by directly clicking on the PSD or by providing a list of frequencies determining the boudaries of these bands. Then, a median clipping of the n orders selected by the user around $v_{max}$ is done. To help performing this manual selection, the user can use $v_{max}$ obtained from the fitting of the Gaussian when the background is determined. A first estimation of $\Delta v$ can then be obtained using the seismic scaling relations.

3. After median clipping the region of the odd modes, the fitting of the universal pattern can be performed using the masked PSD (see Fig.B.2). In general, if the masking is well done, the standard guesses of the universal pattern provided by apollinaire would be good enough. However, the user can try to change these original guesses and bounds for $\delta v_{0,2}$, as they are too low for subgiants. A good choice could be ~4 µHz, and the upper bound should be higher than 6 µHz. The upper bound for the mode width $\Gamma$ could also be lowered. Indeed, it is important to note that having a small $\delta v_{0,2}$ guess value and a large one for $\Gamma$ often leads to an inaccurate fit, as the $\ell = 0$ and $\ell = 2$ are considered as part of the same mode.

<footnote n="9">⁹ This example is available on the same repository than the benchmark presented in Section 4: https://gitlab.com/sybreton/benchmark_peakbagging_apollinaire/-/tree/master/subgiant_recipe/5723165</footnote>
<figure><img src="image_15.png" /></figure>

**Fig. B.1.** Summary of the peakbagging of the subgiant KIC 5723165. **Top left:** Original PSD as a function of frequency in a linear scale around $v_{max}$ (grey), a smoothed PSD (black), and the resultant fit (red). **Top right:** Same three PSDs in a log-log scale. **Central left:** Residual of PSD (in S/N) after removing the fitted model. The coloured lines represent different levels of smoothing. **Central right:** Fitted mode heights as a function of frequency. **Bottom left:** Fitted mode widths as a function of frequency. **Bottom right:** Echelle diagram with a $\Delta v$ of 34.3 µHz. Crosses indicate the fitted frequencies. This figure has been produced as one of apollinaire standard outputs.

4. After fitting the **Universal** pattern, the code provides an a2z file with the guesses for the even modes to be fitted by the peak bagging module. A first characterisation of those modes can be performed directly if we are not interested in the odd ones.

5. To fit the odd modes (see Fig. B.1), the a2z guess file needs to be modified manually. The only way to do the fitting is **global** and not by **order** as the mixed modes cannot be assigned to any particular order. In the a2z guess file, we

suggest to write the radial order n of each mixed mode starting by 100. The order is not important and these values are given only as an indication to the user that the corresponding modes are mixed modes. We recommend that each mixed mode is fitted with an individual frequency, width, and height.

Table B.1 summarises the parameters obtained for the fitted modes.
<figure><img src="image_16.png" /><figcaption>**Fig. B.2.** PSD of KIC 5723165 with the regions of the odd modes masked (grey line) and a smoothed version of this PSD in black. The red line corresponds to the result of fitting the Universal pattern. The structure between the modes $ℓ=2$ and $ℓ=0$ around 565 µHz is a mixed mode.</figcaption></figure>

## Appendix C: Detailed results from *Kepler* LEGACY targets

The detailed results of the p-mode individual parameters fitted for the benchmark on the six LEGACY targets performed in Sect. 4.3 are presented here. Table D.3 presents the comparison of *H* and Γ between apollinaire and L17. As L17 chose to fit amplitude rather than heights, the corresponding mode heights and uncertainties have been recomputed through the proxy of their Eq. 6. Table D.4 presents the comparison of mode frequencies *ν* and quality assurance factors ln *K* between apollinaire and L17.

## Appendix D: Input and output files

The apollinaire module is built around a certain number of input and output files which are described in the subsequent sections.

### Appendix D.1. The a2z file and the a2z Frame

The syntax of the a2z files has been designed to specify some pieces of information the procedure has to be aware of when dealing with individual mode parameters extraction. A line corresponds to a parameter. The file contains nine columns: order *n*, degree *ℓ*, name of the parameter, extent, value, uncertainty $\sigma_{\text{sym}}$ (see Sect. 3.1), fixed key, low bound and up bound of the parameter.

If a parameter has to apply to every order or degrees, the value to specify in the corresponding column is *a*. The possible parameters name are freq, height, width, asym, angle, split. Parameters with name freq, height or width cannot have *n* = *a*, parameters with name freq cannot have *ℓ* = *a*. The extent columns reminds the extent of application of a given parameter: mode, pair, order, or global. The pair keyword can only be used when fitting modes by pair. Only angle or split parameters can be set as global. For an input a2z file, the value column specify the value around where the sampler will initialise the walkers that will sample the MCMC. The uncertainty column is relevant only for output a2z files. It has to be read as the $\sigma_y$ values given in Eq. 18. The fixed key column values must be set to 0 or 1 and are managed by the apollinaire function. Parameters with fixed key 0 at a given step will be fitted while parameters with 1-value will be read as frozen parameters. In input a2z files, the low bound and

<table><caption>**Table B.1.** Parameters fitted for KIC 5723165 modes.</caption><thead><tr><th>n</th><th>ℓ</th><th>ν (μHz)</th><th>H (ppm<sup>2</sup>/μHz)</th><th>Γ (μHz)</th></tr></thead><tbody><tr><td>11</td><td>0</td><td>429.46<sup>+0.23</sup><sub>-0.25</sub></td><td>3.68<sup>+0.93</sup><sub>-0.72</sub></td><td>2.82<sup>+0.93</sup><sub>-0.70</sub></td></tr><tr><td>-</td><td>-</td><td>437.88<sup>+0.23</sup><sub>-0.19</sub></td><td>2.78<sup>+0.44</sup><sub>-0.93</sub></td><td>0.92<sup>+0.34</sup><sub>-0.25</sub></td></tr><tr><td>-</td><td>-</td><td>448.93<sup>+0.07</sup><sub>-0.07</sub></td><td>14.76<sup>+4.86</sup><sub>-3.21</sub></td><td>0.78<sup>+0.22</sup><sub>-0.18</sub></td></tr><tr><td>11</td><td>2</td><td>458.84<sup>+0.21</sup><sub>-0.22</sub></td><td>4.97<sup>+0.96</sup><sub>-0.74</sub></td><td>1.58<sup>+0.34</sup><sub>-0.26</sub></td></tr><tr><td>12</td><td>0</td><td>463.15<sup>+0.10</sup><sub>-0.19</sub></td><td>7.09<sup>+1.38</sup><sub>-1.09</sub></td><td>1.58<sup>+0.34</sup><sub>-0.29</sub></td></tr><tr><td>-</td><td>-</td><td>466.63<sup>+0.12</sup><sub>-0.10</sub></td><td>7.05<sup>+2.12</sup><sub>-1.68</sub></td><td>0.65<sup>+0.17</sup><sub>-0.04</sub></td></tr><tr><td>-</td><td>-</td><td>481.37<sup>+0.03</sup><sub>-0.03</sub></td><td>57.69<sup>+10.44</sup><sub>-8.52</sub></td><td>0.40<sup>+0.06</sup><sub>-0.05</sub></td></tr><tr><td>12</td><td>2</td><td>493.68<sup>+0.05</sup><sub>-0.05</sub></td><td>34.18<sup>+5.27</sup><sub>-4.53</sub></td><td>0.46<sup>+0.06</sup><sub>-0.05</sub></td></tr><tr><td>13</td><td>0</td><td>497.17<sup>+0.03</sup><sub>-0.03</sub></td><td>48.82<sup>+7.53</sup><sub>-9.46</sub></td><td>0.46<sup>+0.06</sup><sub>-0.05</sub></td></tr><tr><td>-</td><td>-</td><td>498.83<sup>+0.08</sup><sub>-0.07</sub></td><td>11.92<sup>+3.24</sup><sub>-7.50</sub></td><td>0.69<sup>+0.18</sup><sub>-0.02</sub></td></tr><tr><td>-</td><td>-</td><td>515.34<sup>+0.07</sup><sub>-0.02</sub></td><td>92.54<sup>+19.06</sup><sub>-14.05</sub></td><td>0.41<sup>+0.05</sup><sub>-0.05</sub></td></tr><tr><td>13</td><td>2</td><td>528.44<sup>+0.03</sup><sub>-0.03</sub></td><td>146.16<sup>+33.48</sup><sub>-24.50</sub></td><td>0.25<sup>+0.03</sup><sub>-0.03</sub></td></tr><tr><td>14</td><td>0</td><td>531.62<sup>+0.02</sup><sub>-0.02</sub></td><td>208.80<sup>+47.84</sup><sub>-34.99</sub></td><td>0.25<sup>+0.03</sup><sub>-0.03</sub></td></tr><tr><td>-</td><td>-</td><td>534.81<sup>+0.03</sup><sub>-0.03</sub></td><td>43.74<sup>+10.05</sup><sub>-6.98</sub></td><td>0.45<sup>+0.06</sup><sub>-0.06</sub></td></tr><tr><td>-</td><td>-</td><td>550.63<sup>+0.02</sup><sub>-0.02</sub></td><td>158.32<sup>+23.46</sup><sub>-7.16</sub></td><td>0.34<sup>+0.04</sup><sub>-0.04</sub></td></tr><tr><td>-</td><td>-</td><td>561.49<sup>+0.06</sup><sub>-0.06</sub></td><td>43.43<sup>+8.21</sup><sub>-6.48</sub></td><td>0.65<sup>+0.03</sup><sub>-0.08</sub></td></tr><tr><td>-</td><td>-</td><td>564.32<sup>+0.09</sup><sub>-0.09</sub></td><td>25.49<sup>+4.68</sup><sub>-3.91</sub></td><td>1.40<sup>+0.22</sup><sub>-0.19</sub></td></tr><tr><td>15</td><td>0</td><td>565.90<sup>+0.02</sup><sub>-0.02</sub></td><td>254.75<sup>+50.90</sup><sub>-39.71</sub></td><td>0.22<sup>+0.03</sup><sub>-0.03</sub></td></tr><tr><td>-</td><td>-</td><td>574.01<sup>+0.03</sup><sub>-0.03</sub></td><td>113.13<sup>+21.66</sup><sub>-17.11</sub></td><td>0.38<sup>+0.05</sup><sub>-0.05</sub></td></tr><tr><td>-</td><td>-</td><td>576.16<sup>+0.04</sup><sub>-0.14</sub></td><td>2.46<sup>+0.70</sup><sub>-0.68</sub></td><td>0.72<sup>+0.19</sup><sub>-0.19</sub></td></tr><tr><td>-</td><td>-</td><td>584.32<sup>+0.19</sup><sub>-0.24</sub></td><td>3.27<sup>+1.34</sup><sub>-0.81</sub></td><td>0.39<sup>+0.13</sup><sub>-0.11</sub></td></tr><tr><td>-</td><td>-</td><td>587.54<sup>+0.02</sup><sub>-0.02</sub></td><td>171.19<sup>+16.61</sup><sub>-7.31</sub></td><td>0.37<sup>+0.03</sup><sub>-0.03</sub></td></tr><tr><td>-</td><td>-</td><td>590.94<sup>+0.29</sup><sub>-0.39</sub></td><td>1.44<sup>+0.37</sup><sub>-0.24</sub></td><td>2.57<sup>+0.73</sup><sub>-0.68</sub></td></tr><tr><td>15</td><td>2</td><td>597.49<sup>+0.03</sup><sub>-0.03</sub></td><td>97.60<sup>+12.75</sup><sub>-11.73</sub></td><td>0.39<sup>+0.04</sup><sub>-0.03</sub></td></tr><tr><td>16</td><td>0</td><td>600.25<sup>+0.02</sup><sub>-0.02</sub></td><td>139.42<sup>+18.21</sup><sub>-16.76</sub></td><td>0.39<sup>+0.03</sup><sub>-0.03</sub></td></tr><tr><td>-</td><td>-</td><td>610.44<sup>+0.15</sup><sub>-0.15</sub></td><td>3.43<sup>+1.21</sup><sub>-0.88</sub></td><td>1.65<sup>+0.59</sup><sub>-0.34</sub></td></tr><tr><td>-</td><td>-</td><td>614.38<sup>+0.03</sup><sub>-0.03</sub></td><td>141.08<sup>+24.45</sup><sub>-21.09</sub></td><td>0.40<sup>+0.05</sup><sub>-0.04</sub></td></tr><tr><td>-</td><td>-</td><td>628.73<sup>+0.06</sup><sub>-0.06</sub></td><td>16.91<sup>+3.76</sup><sub>-3.95</sub></td><td>1.06<sup>+0.22</sup><sub>-0.18</sub></td></tr><tr><td>16</td><td>2</td><td>631.93<sup>+0.06</sup><sub>-0.06</sub></td><td>32.59<sup>+5.24</sup><sub>-4.11</sub></td><td>0.64<sup>+0.07</sup><sub>-0.07</sub></td></tr><tr><td>17</td><td>0</td><td>634.92<sup>+0.04</sup><sub>-0.04</sub></td><td>46.55<sup>+4.40</sup><sub>-5.88</sub></td><td>0.64<sup>+0.07</sup><sub>-0.07</sub></td></tr><tr><td>-</td><td>-</td><td>644.58<sup>+0.19</sup><sub>-0.18</sub></td><td>3.28<sup>+0.98</sup><sub>-0.76</sub></td><td>1.08<sup>+0.29</sup><sub>-0.26</sub></td></tr><tr><td>-</td><td>-</td><td>653.27<sup>+0.05</sup><sub>-0.05</sub></td><td>28.53<sup>+4.13</sup><sub>-3.54</sub></td><td>0.96<sup>+0.12</sup><sub>-0.19</sub></td></tr><tr><td>17</td><td>2</td><td>666.81<sup>+0.08</sup><sub>-0.08</sub></td><td>12.52<sup>+1.83</sup><sub>-1.48</sub></td><td>0.98<sup>+0.12</sup><sub>-0.11</sub></td></tr><tr><td>18</td><td>0</td><td>669.80<sup>+0.08</sup><sub>-0.08</sub></td><td>17.89<sup>+1.62</sup><sub>-2.11</sub></td><td>0.98<sup>+0.11</sup><sub>-0.11</sub></td></tr><tr><td>-</td><td>-</td><td>678.35<sup>+0.14</sup><sub>-0.14</sub></td><td>5.07<sup>+0.93</sup><sub>-0.79</sub></td><td>1.89<sup>+0.35</sup><sub>-0.32</sub></td></tr><tr><td>-</td><td>-</td><td>693.22<sup>+0.14</sup><sub>-0.13</sub></td><td>8.04<sup>+1.41</sup><sub>-1.23</sub></td><td>1.76<sup>+0.38</sup><sub>-0.32</sub></td></tr></tbody></table>

**Notes.** Mixed modes order *n* and degrees *ℓ* are not inferred in the analysis and therefore not specified.

up bound columns specify the limit values inside which the posterior probability will be sampled. Obviously, the up bound must be greater than the low bound, and the value term must lay inside the defined interval.

An example of input for solar data is given in Table D.1. In apollinaire, a2z files are read as a2z DataFrame (pandas DataFrame with the structure specified in the previous paragraph) with the function read_a2z.

### Appendix D.2. The pkb file and the pkb arrays

In pkb files, each line corresponds to a given mode of order *n* and degree *ℓ*. The file contains 14 columns: order *n*, degree *ℓ*, mode frequency *ν*, uncertainty over frequency $\sigma_{\text{approx},\nu}$, mode height *H*, uncertainty over height $\sigma_{\text{approx},H}$, mode FWHM $\Gamma$, uncertainty over FWHM $\sigma_{\text{approx},\Gamma}$, stellar angle *i*, uncertainty over stellar angle $\sigma_{\text{approx},i}$, mode splitting *s*, uncertainty over mode
<table><caption>**Table D.1.** An example of helioseismic a2z input file corresponding to priors for the *n* = 20 GOLF order.</caption><thead><tr><th>n</th><th>ℓ</th><th>name</th><th>extent</th><th>value</th><th>σ<sub>sym</sub></th><th>fixed</th><th>low bound</th><th>up bound</th></tr></thead><tbody><tr><td>19</td><td>2</td><td>height</td><td>mode</td><td>0.0146</td><td>0.0000</td><td>0</td><td>0.0000</td><td>0.0732</td></tr><tr><td>19</td><td>2</td><td>width</td><td>mode</td><td>0.8585</td><td>0.0000</td><td>0</td><td>0.0000</td><td>8.0000</td></tr><tr><td>19</td><td>2</td><td>asym</td><td>mode</td><td>-0.0082</td><td>0.0000</td><td>0</td><td>-0.2000</td><td>0.2000</td></tr><tr><td>19</td><td>2</td><td>split</td><td>mode</td><td>0.4000</td><td>0.0000</td><td>0</td><td>0.1000</td><td>0.8000</td></tr><tr><td>20</td><td>0</td><td>freq</td><td>mode</td><td>2899.0861</td><td>0.0000</td><td>0</td><td>2897.0861</td><td>2901.0861</td></tr><tr><td>20</td><td>0</td><td>height</td><td>mode</td><td>0.0163</td><td>0.0000</td><td>0</td><td>0.0000</td><td>0.0814</td></tr><tr><td>20</td><td>0</td><td>width</td><td>mode</td><td>0.8585</td><td>0.0000</td><td>0</td><td>0.0000</td><td>8.0000</td></tr><tr><td>20</td><td>0</td><td>asym</td><td>mode</td><td>-0.0082</td><td>0.0000</td><td>0</td><td>-0.2000</td><td>0.2000</td></tr><tr><td>a</td><td>a</td><td>angle</td><td>global</td><td>90.0000</td><td>0.0000</td><td>1</td><td>0.0000</td><td>90.0000</td></tr></tbody></table>

<table><caption>**Table D.2.** An example of helioseismic pkb file corresponding to fitted parameters for the *n* = 20 GOLF order.</caption><thead><tr><th>n</th><th>l</th><th>ν</th><th>σ<sub>sym,v</sub></th><th>H</th><th>σ<sub>sym,H</sub></th><th>Γ</th><th>σ<sub>sym,Γ</sub></th><th>i</th><th>σ<sub>sym,i</sub></th><th>s</th><th>σ<sub>sym,s</sub></th><th>α</th><th>σ<sub>sym,α</sub></th></tr><tr><th></th><th></th><th>(μHz)</th><th>(μHz)</th><th>((m/s)<sup>2</sup>/μHz)</th><th>((m/s)<sup>2</sup>/μHz)</th><th>(μHz)</th><th>(μHz)</th><th>(°)</th><th>(°)</th><th>(μHz)</th><th>(μHz)</th><th></th><th></th></tr></thead><tbody><tr><td>20</td><td>2</td><td>2889.57</td><td>0.07</td><td>2.10e-2</td><td>5.07e-3</td><td>0.827</td><td>0.110</td><td>90</td><td>0</td><td>0.386</td><td>0.034</td><td>-0.005</td><td>0.008</td></tr><tr><td>20</td><td>0</td><td>2898.97</td><td>0.07</td><td>1.27e-2</td><td>2.73e-3</td><td>1.107</td><td>0.128</td><td>90</td><td>0</td><td>0</td><td>0</td><td>-0.023</td><td>0.010</td></tr></tbody></table>

splitting $\sigma_{approx,s}$, mode asymmetry $\alpha$, uncertainty over mode asymmetry $\sigma_{approx,\alpha}$. In Sect. 3.1, we describe the method used to compute $\sigma_{sym}$.

An example of a pkb file is presented in Table D.2. In apollinaire procedures, pkb arrays (numpy arrays with the shape specified in the previous paragraph) are usually created by converting a2z DataFrame with the `a2Z_to_pkb` function. Those pkb arrays are used to build the models $S_{SN}(\nu)$ which are necessary to compute the likelihood and the posterior probability.

## Appendix D.3. The extended pkb array

The structure of the extended pkb array is close to the classical pkb array structure, except that it contains 20 columns. Instead of $\sigma_{sym}$, two uncertainty values are provided for each parameters: $\sigma_{-}$ and $\sigma_{+}$ (see Sect. 3.1).
<table><caption>**Table D.3.** Mode heights and widths obtained for modes fitted both in L17 and with apollinaire.</caption><thead><tr><th>KIC</th><th>n</th><th>H<sub>apn</sub> (ppm<sup>2</sup>/μHz)</th><th>H<sub>L17</sub> (ppm<sup>2</sup>/μHz)</th><th>Γ<sub>apn</sub> (μHz)</th><th>Γ<sub>L17</sub> (μHz)</th></tr></thead><tbody><tr><td>5184732</td><td>17</td><td>2.44 ± 0.06</td><td>2.61 ± 0.08</td><td>1.13 ± 0.11</td><td>1.35 ± 0.13</td></tr><tr><td>5184732</td><td>18</td><td>2.97 ± 0.06</td><td>2.95 ± 0.08</td><td>1.36 ± 0.11</td><td>1.53 ± 0.13</td></tr><tr><td>5184732</td><td>19</td><td>3.54 ± 0.07</td><td>3.64 ± 0.09</td><td>1.17 ± 0.09</td><td>1.24 ± 0.12</td></tr><tr><td>5184732</td><td>20</td><td>3.83 ± 0.07</td><td>3.94 ± 0.10</td><td>1.30 ± 0.09</td><td>1.26 ± 0.12</td></tr><tr><td>5184732</td><td>21</td><td>4.02 ± 0.08</td><td>4.21 ± 0.12</td><td>1.33 ± 0.09</td><td>1.47 ± 0.12</td></tr><tr><td>5184732</td><td>22</td><td>3.54 ± 0.06</td><td>3.74 ± 0.09</td><td>1.80 ± 0.14</td><td>1.83 ± 0.14</td></tr><tr><td>5184732</td><td>23</td><td>2.72 ± 0.06</td><td>2.91 ± 0.09</td><td>2.64 ± 0.24</td><td>2.45 ± 0.19</td></tr><tr><td>6106415</td><td>17</td><td>2.54 ± 0.05</td><td>2.65 ± 0.08</td><td>1.65 ± 0.12</td><td>1.64 ± 0.18</td></tr><tr><td>6106415</td><td>18</td><td>3.14 ± 0.05</td><td>3.07 ± 0.09</td><td>1.43 ± 0.09</td><td>1.77 ± 0.15</td></tr><tr><td>6106415</td><td>19</td><td>3.54 ± 0.06</td><td>3.77 ± 0.10</td><td>1.35 ± 0.08</td><td>1.52 ± 0.11</td></tr><tr><td>6106415</td><td>20</td><td>3.85 ± 0.06</td><td>3.87 ± 0.08</td><td>1.36 ± 0.07</td><td>1.43 ± 0.10</td></tr><tr><td>6106415</td><td>21</td><td>3.63 ± 0.06</td><td>3.71 ± 0.08</td><td>1.72 ± 0.10</td><td>1.94 ± 0.13</td></tr><tr><td>6106415</td><td>22</td><td>3.08 ± 0.05</td><td>3.35 ± 0.07</td><td>2.55 ± 0.17</td><td>2.54 ± 0.20</td></tr><tr><td>6106415</td><td>23</td><td>2.63 ± 0.04</td><td>2.84 ± 0.07</td><td>2.97 ± 0.22</td><td>3.34 ± 0.23</td></tr><tr><td>6225718</td><td>16</td><td>1.77 ± 0.05</td><td>1.89 ± 0.07</td><td>2.10 ± 0.22</td><td>2.19 ± 0.34</td></tr><tr><td>6225718</td><td>17</td><td>2.24 ± 0.05</td><td>2.29 ± 0.06</td><td>2.77 ± 0.23</td><td>2.84 ± 0.30</td></tr><tr><td>6225718</td><td>18</td><td>2.68 ± 0.05</td><td>2.77 ± 0.07</td><td>2.16 ± 0.15</td><td>2.67 ± 0.23</td></tr><tr><td>6225718</td><td>19</td><td>3.07 ± 0.05</td><td>3.14 ± 0.06</td><td>2.20 ± 0.14</td><td>2.50 ± 0.21</td></tr><tr><td>6225718</td><td>20</td><td>3.40 ± 0.05</td><td>3.47 ± 0.07</td><td>2.20 ± 0.12</td><td>2.22 ± 0.16</td></tr><tr><td>6225718</td><td>21</td><td>3.32 ± 0.05</td><td>3.46 ± 0.07</td><td>2.22 ± 0.15</td><td>2.61 ± 0.17</td></tr><tr><td>6225718</td><td>22</td><td>3.28 ± 0.05</td><td>3.46 ± 0.07</td><td>2.76 ± 0.16</td><td>3.03 ± 0.23</td></tr><tr><td>6603624</td><td>17</td><td>2.22 ± 0.07</td><td>2.24 ± 0.11</td><td>0.82 ± 0.09</td><td>0.82 ± 0.11</td></tr><tr><td>6603624</td><td>18</td><td>2.99 ± 0.08</td><td>3.10 ± 0.12</td><td>0.61 ± 0.05</td><td>0.63 ± 0.07</td></tr><tr><td>6603624</td><td>19</td><td>3.58 ± 0.09</td><td>3.56 ± 0.12</td><td>0.59 ± 0.05</td><td>0.69 ± 0.05</td></tr><tr><td>6603624</td><td>20</td><td>4.04 ± 0.10</td><td>4.39 ± 0.13</td><td>0.57 ± 0.05</td><td>0.56 ± 0.05</td></tr><tr><td>6603624</td><td>21</td><td>3.58 ± 0.09</td><td>3.73 ± 0.13</td><td>0.69 ± 0.05</td><td>0.80 ± 0.06</td></tr><tr><td>6603624</td><td>22</td><td>2.98 ± 0.07</td><td>3.39 ± 0.11</td><td>1.16 ± 0.09</td><td>1.25 ± 0.09</td></tr><tr><td>6603624</td><td>23</td><td>2.05 ± 0.07</td><td>2.26 ± 0.10</td><td>2.23 ± 0.27</td><td>1.70 ± 0.18</td></tr><tr><td>12069424</td><td>16</td><td>2.17 ± 0.05</td><td>2.16 ± 0.07</td><td>0.93 ± 0.09</td><td>1.29 ± 0.16</td></tr><tr><td>12069424</td><td>17</td><td>2.63 ± 0.06</td><td>2.58 ± 0.09</td><td>0.89 ± 0.07</td><td>1.04 ± 0.12</td></tr><tr><td>12069424</td><td>18</td><td>3.24 ± 0.07</td><td>3.29 ± 0.09</td><td>0.84 ± 0.05</td><td>1.00 ± 0.08</td></tr><tr><td>12069424</td><td>19</td><td>4.17 ± 0.08</td><td>3.85 ± 0.11</td><td>0.67 ± 0.04</td><td>0.82 ± 0.06</td></tr><tr><td>12069424</td><td>20</td><td>4.20 ± 0.09</td><td>4.03 ± 0.12</td><td>0.78 ± 0.05</td><td>1.22 ± 0.08</td></tr><tr><td>12069424</td><td>21</td><td>3.59 ± 0.07</td><td>3.61 ± 0.10</td><td>1.15 ± 0.07</td><td>1.24 ± 0.09</td></tr><tr><td>12069424</td><td>22</td><td>2.80 ± 0.05</td><td>2.92 ± 0.07</td><td>1.97 ± 0.13</td><td>1.96 ± 0.12</td></tr><tr><td>12069449</td><td>17</td><td>1.88 ± 0.05</td><td>1.89 ± 0.07</td><td>0.92 ± 0.09</td><td>0.96 ± 0.11</td></tr><tr><td>12069449</td><td>18</td><td>2.54 ± 0.06</td><td>2.49 ± 0.08</td><td>0.84 ± 0.06</td><td>1.13 ± 0.10</td></tr><tr><td>12069449</td><td>19</td><td>3.05 ± 0.07</td><td>3.00 ± 0.08</td><td>0.72 ± 0.05</td><td>0.77 ± 0.08</td></tr><tr><td>12069449</td><td>20</td><td>3.51 ± 0.08</td><td>3.41 ± 0.10</td><td>0.68 ± 0.05</td><td>0.94 ± 0.08</td></tr><tr><td>12069449</td><td>21</td><td>3.37 ± 0.07</td><td>3.55 ± 0.11</td><td>0.86 ± 0.06</td><td>1.01 ± 0.10</td></tr><tr><td>12069449</td><td>22</td><td>2.77 ± 0.05</td><td>2.97 ± 0.10</td><td>1.35 ± 0.08</td><td>1.40 ± 0.09</td></tr><tr><td>12069449</td><td>23</td><td>2.13 ± 0.04</td><td>2.28 ± 0.07</td><td>2.39 ± 0.16</td><td>2.11 ± 0.13</td></tr></tbody></table>

<table><caption>**Table D.4.** Mode frequencies and quality assurance factor ln *K* obtained for modes fitted both in L17 and with apollinaire.</caption><thead><tr><th>KIC</th><th>n</th><th>ℓ</th><th>ν<sub>apn</sub> (μHz)</th><th>ν<sub>L17</sub> (μHz)</th><th>ln K<sub>apn</sub></th><th>ln K<sub>L17</sub></th></tr></thead><tbody><tr><td>5184732</td><td>16</td><td>2</td><td>1750.31 ± 0.16</td><td>1750.26 ± 0.19</td><td>> 6</td><td>> 6</td></tr><tr><td>5184732</td><td>17</td><td>0</td><td>1756.69 ± 0.06</td><td>1756.69 ± 0.07</td><td>> 6</td><td>> 6</td></tr><tr><td>5184732</td><td>17</td><td>1</td><td>1800.54 ± 0.07</td><td>1800.50 ± 0.08</td><td>> 6</td><td>> 6</td></tr><tr><td>5184732</td><td>17</td><td>2</td><td>1844.66 ± 0.12</td><td>1844.74 ± 0.15</td><td>> 6</td><td>> 6</td></tr><tr><td>5184732</td><td>18</td><td>0</td><td>1851.08 ± 0.07</td><td>1851.15 ± 0.08</td><td>> 6</td><td>> 6</td></tr><tr><td>5184732</td><td>18</td><td>1</td><td>1895.61 ± 0.07</td><td>1895.59 ± 0.06</td><td>> 6</td><td>> 6</td></tr><tr><td>5184732</td><td>18</td><td>2</td><td>1940.39 ± 0.09</td><td>1940.45 ± 0.13</td><td>> 6</td><td>> 6</td></tr><tr><td>5184732</td><td>18</td><td>3</td><td>1981.70 ± 0.85</td><td>1982.10 ± 0.74</td><td>> 6</td><td>2.62</td></tr><tr><td>5184732</td><td>19</td><td>0</td><td>1946.67 ± 0.06</td><td>1946.65 ± 0.06</td><td>> 6</td><td>> 6</td></tr><tr><td>5184732</td><td>19</td><td>1</td><td>1991.62 ± 0.06</td><td>1991.57 ± 0.06</td><td>> 6</td><td>> 6</td></tr><tr><td>5184732</td><td>19</td><td>2</td><td>2036.29 ± 0.09</td><td>2036.35 ± 0.10</td><td>> 6</td><td>> 6</td></tr><tr><td>5184732</td><td>19</td><td>3</td><td>2076.94 ± 0.85</td><td>2076.67 ± 0.55</td><td>> 6</td><td>1.56</td></tr></tbody></table>
<table><caption>Table D.4. continued</caption><thead><tr><th>KIC</th><th>n</th><th>ℓ</th><th>ν<sub>apn</sub> (μHz)</th><th>ν<sub>L17</sub> (μHz)</th><th>In K<sub>apn</sub></th><th>In K<sub>L17</sub></th></tr></thead><tbody><tr><td>5184732</td><td>20</td><td>0</td><td>2042.36 ± 0.06</td><td>2042.31 ± 0.06</td><td>> 6</td><td>> 6</td></tr><tr><td>5184732</td><td>20</td><td>1</td><td>2087.47 ± 0.06</td><td>2087.45 ± 0.06</td><td>> 6</td><td>> 6</td></tr><tr><td>5184732</td><td>20</td><td>2</td><td>2132.34 ± 0.08</td><td>2132.34 ± 0.10</td><td>> 6</td><td>> 6</td></tr><tr><td>5184732</td><td>20</td><td>3</td><td>2172.49 ± 0.63</td><td>2173.09 ± 0.60</td><td>> 6</td><td>> 6</td></tr><tr><td>5184732</td><td>21</td><td>0</td><td>2138.20 ± 0.06</td><td>2138.21 ± 0.06</td><td>> 6</td><td>> 6</td></tr><tr><td>5184732</td><td>21</td><td>1</td><td>2183.39 ± 0.07</td><td>2183.32 ± 0.07</td><td>> 6</td><td>> 6</td></tr><tr><td>5184732</td><td>21</td><td>2</td><td>2227.94 ± 0.12</td><td>2227.82 ± 0.13</td><td>> 6</td><td>> 6</td></tr><tr><td>5184732</td><td>21</td><td>3</td><td>2269.33 ± 0.77</td><td>2269.23 ± 0.57</td><td>> 6</td><td>3.44</td></tr><tr><td>5184732</td><td>22</td><td>0</td><td>2233.54 ± 0.07</td><td>2233.51 ± 0.09</td><td>> 6</td><td>> 6</td></tr><tr><td>5184732</td><td>22</td><td>1</td><td>2279.06 ± 0.08</td><td>2279.09 ± 0.09</td><td>> 6</td><td>> 6</td></tr><tr><td>5184732</td><td>22</td><td>2</td><td>2323.78 ± 0.22</td><td>2324.03 ± 0.20</td><td>> 6</td><td>> 6</td></tr><tr><td>5184732</td><td>22</td><td>3</td><td>2365.14 ± 1.07</td><td>2365.48 ± 0.88</td><td>3.96</td><td>3.31</td></tr><tr><td>5184732</td><td>23</td><td>0</td><td>2328.96 ± 0.13</td><td>2329.03 ± 0.13</td><td>> 6</td><td>> 6</td></tr><tr><td>5184732</td><td>23</td><td>1</td><td>2375.03 ± 0.11</td><td>2375.03 ± 0.12</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>16</td><td>2</td><td>1902.71 ± 0.18</td><td>1902.55 ± 0.18</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>17</td><td>0</td><td>1909.90 ± 0.07</td><td>1909.94 ± 0.09</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>17</td><td>1</td><td>1957.30 ± 0.08</td><td>1957.32 ± 0.09</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>17</td><td>2</td><td>2005.58 ± 0.09</td><td>2005.66 ± 0.13</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>18</td><td>0</td><td>2013.01 ± 0.06</td><td>2013.06 ± 0.09</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>18</td><td>1</td><td>2061.47 ± 0.06</td><td>2061.47 ± 0.07</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>18</td><td>2</td><td>2110.17 ± 0.07</td><td>2110.19 ± 0.11</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>19</td><td>0</td><td>2117.21 ± 0.05</td><td>2117.35 ± 0.07</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>19</td><td>1</td><td>2165.88 ± 0.06</td><td>2165.91 ± 0.07</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>19</td><td>2</td><td>2214.42 ± 0.07</td><td>2214.39 ± 0.10</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>19</td><td>3</td><td>2259.49 ± 0.75</td><td>2259.15 ± 0.52</td><td>> 6</td><td>3.87</td></tr><tr><td>6106415</td><td>20</td><td>0</td><td>2221.52 ± 0.05</td><td>2221.52 ± 0.06</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>20</td><td>1</td><td>2270.33 ± 0.06</td><td>2270.39 ± 0.07</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>20</td><td>2</td><td>2318.76 ± 0.09</td><td>2318.82 ± 0.12</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>20</td><td>3</td><td>2363.38 ± 0.67</td><td>2363.96 ± 0.47</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>21</td><td>0</td><td>2325.66 ± 0.07</td><td>2325.64 ± 0.09</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>21</td><td>1</td><td>2374.53 ± 0.07</td><td>2374.55 ± 0.08</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>21</td><td>2</td><td>2422.96 ± 0.17</td><td>2423.11 ± 0.21</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>21</td><td>3</td><td>2467.07 ± 1.36</td><td>2467.17 ± 0.64</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>22</td><td>0</td><td>2429.76 ± 0.08</td><td>2429.81 ± 0.11</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>22</td><td>1</td><td>2478.93 ± 0.09</td><td>2478.93 ± 0.11</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>22</td><td>2</td><td>2527.92 ± 0.17</td><td>2528.38 ± 0.23</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>22</td><td>3</td><td>2571.93 ± 1.14</td><td>2572.76 ± 0.87</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>23</td><td>0</td><td>2534.00 ± 0.11</td><td>2534.02 ± 0.15</td><td>> 6</td><td>> 6</td></tr><tr><td>6106415</td><td>23</td><td>1</td><td>2583.95 ± 0.12</td><td>2583.85 ± 0.14</td><td>> 6</td><td>> 6</td></tr><tr><td>6225718</td><td>15</td><td>2</td><td>1816.15 ± 0.72</td><td>1816.19 ± 0.36</td><td>0.07</td><td>> 6</td></tr><tr><td>6225718</td><td>16</td><td>0</td><td>1825.53 ± 0.11</td><td>1825.41 ± 0.13</td><td>> 6</td><td>> 6</td></tr><tr><td>6225718</td><td>16</td><td>1</td><td>1873.79 ± 0.12</td><td>1873.88 ± 0.14</td><td>> 6</td><td>> 6</td></tr><tr><td>6225718</td><td>16</td><td>2</td><td>1920.02 ± 0.23</td><td>1919.97 ± 0.26</td><td>2.71</td><td>> 6</td></tr><tr><td>6225718</td><td>17</td><td>0</td><td>1929.03 ± 0.11</td><td>1929.05 ± 0.14</td><td>> 6</td><td>> 6</td></tr><tr><td>6225718</td><td>17</td><td>1</td><td>1977.27 ± 0.11</td><td>1977.35 ± 0.12</td><td>> 6</td><td>> 6</td></tr><tr><td>6225718</td><td>17</td><td>2</td><td>2023.91 ± 0.17</td><td>2023.80 ± 0.22</td><td>> 6</td><td>> 6</td></tr><tr><td>6225718</td><td>18</td><td>0</td><td>2032.68 ± 0.09</td><td>2032.68 ± 0.11</td><td>> 6</td><td>> 6</td></tr><tr><td>6225718</td><td>18</td><td>1</td><td>2081.51 ± 0.09</td><td>2081.57 ± 0.09</td><td>> 6</td><td>> 6</td></tr><tr><td>6225718</td><td>18</td><td>2</td><td>2128.59 ± 0.13</td><td>2128.62 ± 0.16</td><td>> 6</td><td>> 6</td></tr><tr><td>6225718</td><td>19</td><td>0</td><td>2137.54 ± 0.08</td><td>2137.59 ± 0.10</td><td>> 6</td><td>> 6</td></tr><tr><td>6225718</td><td>19</td><td>1</td><td>2186.90 ± 0.08</td><td>2186.89 ± 0.09</td><td>> 6</td><td>> 6</td></tr><tr><td>6225718</td><td>19</td><td>2</td><td>2234.46 ± 0.12</td><td>2234.70 ± 0.16</td><td>> 6</td><td>> 6</td></tr><tr><td>6225718</td><td>19</td><td>3</td><td>2278.10 ± 1.23</td><td>2281.61 ± 3.36</td><td>> 6</td><td>3.01</td></tr><tr><td>6225718</td><td>20</td><td>0</td><td>2243.30 ± 0.07</td><td>2243.42 ± 0.08</td><td>> 6</td><td>> 6</td></tr><tr><td>6225718</td><td>20</td><td>1</td><td>2292.94 ± 0.08</td><td>2293.05 ± 0.09</td><td>> 6</td><td>> 6</td></tr><tr><td>6225718</td><td>20</td><td>2</td><td>2340.61 ± 0.16</td><td>2340.63 ± 0.17</td><td>> 6</td><td>> 6</td></tr><tr><td>6225718</td><td>20</td><td>3</td><td>2384.81 ± 1.38</td><td>2385.57 ± 1.16</td><td>> 6</td><td>3.94</td></tr><tr><td>6225718</td><td>21</td><td>0</td><td>2349.60 ± 0.07</td><td>2349.64 ± 0.09</td><td>> 6</td><td>> 6</td></tr><tr><td>6225718</td><td>21</td><td>1</td><td>2399.38 ± 0.08</td><td>2399.39 ± 0.10</td><td>> 6</td><td>> 6</td></tr><tr><td>6225718</td><td>21</td><td>2</td><td>2446.78 ± 0.14</td><td>2446.71 ± 0.16</td><td>> 6</td><td>> 6</td></tr><tr><td>6225718</td><td>21</td><td>3</td><td>2490.21 ± 1.59</td><td>2493.08 ± 1.64</td><td>> 6</td><td>3.66</td></tr></tbody></table>
<table><caption>Table D.4. continued</caption><thead><tr><th>KIC</th><th>n</th><th>ℓ</th><th>ν<sub>apn</sub> (μHz)</th><th>ν<sub>L17</sub> (μHz)</th><th>ln K<sub>apn</sub></th><th>ln K<sub>L17</sub></th></tr></thead><tbody><tr><td>6225718</td><td>22</td><td>0</td><td>2455.54 ± 0.09</td><td>2455.69 ± 0.11</td><td>> 6</td><td>> 6</td></tr><tr><td>6225718</td><td>22</td><td>1</td><td>2505.31 ± 0.10</td><td>2505.34 ± 0.11</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>16</td><td>2</td><td>2030.98 ± 0.10</td><td>2030.97 ± 0.10</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>17</td><td>0</td><td>2037.05 ± 0.05</td><td>2036.98 ± 0.06</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>17</td><td>1</td><td>2088.30 ± 0.04</td><td>2088.32 ± 0.05</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>17</td><td>2</td><td>2141.08 ± 0.04</td><td>2141.09 ± 0.04</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>18</td><td>0</td><td>2146.75 ± 0.03</td><td>2146.76 ± 0.04</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>18</td><td>1</td><td>2198.48 ± 0.04</td><td>2198.47 ± 0.04</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>18</td><td>2</td><td>2251.61 ± 0.04</td><td>2251.60 ± 0.04</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>18</td><td>3</td><td>2299.52 ± 0.20</td><td>2305.47 ± 0.13</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>19</td><td>0</td><td>2256.99 ± 0.04</td><td>2257.01 ± 0.04</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>19</td><td>1</td><td>2308.95 ± 0.03</td><td>2309.00 ± 0.03</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>19</td><td>2</td><td>2362.00 ± 0.03</td><td>2362.03 ± 0.04</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>19</td><td>3</td><td>2410.02 ± 0.25</td><td>2410.08 ± 0.15</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>20</td><td>0</td><td>2367.06 ± 0.03</td><td>2367.08 ± 0.03</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>20</td><td>1</td><td>2419.40 ± 0.03</td><td>2419.44 ± 0.03</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>20</td><td>2</td><td>2472.42 ± 0.04</td><td>2472.38 ± 0.05</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>20</td><td>3</td><td>2520.40 ± 0.16</td><td>2520.44 ± 0.20</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>21</td><td>0</td><td>2477.07 ± 0.04</td><td>2477.04 ± 0.04</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>21</td><td>1</td><td>2529.69 ± 0.04</td><td>2529.66 ± 0.04</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>21</td><td>2</td><td>2583.03 ± 0.07</td><td>2583.03 ± 0.07</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>21</td><td>3</td><td>2631.27 ± 0.62</td><td>2631.48 ± 0.35</td><td>4.01</td><td>1.89</td></tr><tr><td>6603624</td><td>22</td><td>0</td><td>2587.51 ± 0.06</td><td>2587.51 ± 0.07</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>22</td><td>1</td><td>2640.33 ± 0.06</td><td>2640.36 ± 0.07</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>22</td><td>2</td><td>2693.81 ± 0.16</td><td>2693.89 ± 0.12</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>22</td><td>3</td><td>2742.30 ± 5.26</td><td>2743.55 ± 1.43</td><td>2.56</td><td>1.14</td></tr><tr><td>6603624</td><td>23</td><td>0</td><td>2698.06 ± 0.16</td><td>2698.23 ± 0.13</td><td>> 6</td><td>> 6</td></tr><tr><td>6603624</td><td>23</td><td>1</td><td>2751.56 ± 0.14</td><td>2751.34 ± 0.18</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>15</td><td>2</td><td>1795.69 ± 0.09</td><td>1795.84 ± 0.13</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>16</td><td>0</td><td>1802.28 ± 0.06</td><td>1802.35 ± 0.08</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>16</td><td>1</td><td>1849.00 ± 0.05</td><td>1849.01 ± 0.06</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>16</td><td>2</td><td>1898.29 ± 0.10</td><td>1898.40 ± 0.11</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>17</td><td>0</td><td>1904.58 ± 0.05</td><td>1904.52 ± 0.06</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>17</td><td>1</td><td>1951.99 ± 0.05</td><td>1952.01 ± 0.05</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>17</td><td>2</td><td>2001.69 ± 0.06</td><td>2001.59 ± 0.09</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>17</td><td>3</td><td>2045.77 ± 0.29</td><td>2045.85 ± 0.38</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>18</td><td>0</td><td>2007.55 ± 0.04</td><td>2007.54 ± 0.05</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>18</td><td>1</td><td>2055.51 ± 0.04</td><td>2055.49 ± 0.05</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>18</td><td>2</td><td>2105.32 ± 0.04</td><td>2105.37 ± 0.06</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>18</td><td>3</td><td>2149.88 ± 0.12</td><td>2150.06 ± 0.22</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>19</td><td>0</td><td>2110.93 ± 0.03</td><td>2110.95 ± 0.04</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>19</td><td>1</td><td>2159.14 ± 0.04</td><td>2159.15 ± 0.05</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>19</td><td>2</td><td>2208.91 ± 0.04</td><td>2208.93 ± 0.07</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>19</td><td>3</td><td>2253.57 ± 0.12</td><td>2253.80 ± 0.25</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>20</td><td>0</td><td>2214.21 ± 0.04</td><td>2214.23 ± 0.05</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>20</td><td>1</td><td>2262.55 ± 0.04</td><td>2262.56 ± 0.05</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>20</td><td>2</td><td>2312.52 ± 0.06</td><td>2312.50 ± 0.08</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>20</td><td>3</td><td>2357.37 ± 0.20</td><td>2357.50 ± 0.23</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>21</td><td>0</td><td>2317.31 ± 0.05</td><td>2317.28 ± 0.06</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>21</td><td>1</td><td>2366.26 ± 0.06</td><td>2366.24 ± 0.06</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>21</td><td>2</td><td>2416.10 ± 0.10</td><td>2416.25 ± 0.12</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>21</td><td>3</td><td>2461.44 ± 0.37</td><td>2461.45 ± 0.38</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>22</td><td>0</td><td>2420.85 ± 0.08</td><td>2420.94 ± 0.08</td><td>> 6</td><td>> 6</td></tr><tr><td>12069424</td><td>22</td><td>1</td><td>2470.29 ± 0.08</td><td>2470.23 ± 0.10</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>16</td><td>2</td><td>2152.35 ± 0.16</td><td>2152.52 ± 0.11</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>17</td><td>0</td><td>2159.55 ± 0.05</td><td>2159.50 ± 0.06</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>17</td><td>1</td><td>2214.16 ± 0.06</td><td>2214.33 ± 0.07</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>17</td><td>2</td><td>2268.87 ± 0.07</td><td>2269.11 ± 0.10</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>17</td><td>3</td><td>2319.33 ± 0.35</td><td>2318.96 ± 0.31</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>18</td><td>0</td><td>2276.00 ± 0.04</td><td>2275.95 ± 0.06</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>18</td><td>1</td><td>2331.19 ± 0.04</td><td>2331.16 ± 0.04</td><td>> 6</td><td>> 6</td></tr></tbody></table>
<table><caption>**Table D.4.** continued</caption><thead><tr><th>KIC</th><th>n</th><th>ℓ</th><th>ν<sub>apn</sub> (μHz)</th><th>ν<sub>L17</sub> (μHz)</th><th>ln K<sub>apn</sub></th><th>ln K<sub>L17</sub></th></tr></thead><tbody><tr><td>12069449</td><td>18</td><td>2</td><td>2386.23 ± 0.05</td><td>2386.25 ± 0.07</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>18</td><td>3</td><td>2436.50 ± 0.32</td><td>2436.78 ± 0.28</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>19</td><td>0</td><td>2392.73 ± 0.04</td><td>2392.64 ± 0.05</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>19</td><td>1</td><td>2448.24 ± 0.04</td><td>2448.18 ± 0.05</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>19</td><td>2</td><td>2503.51 ± 0.05</td><td>2503.41 ± 0.07</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>19</td><td>3</td><td>2554.11 ± 0.16</td><td>2554.18 ± 0.19</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>20</td><td>0</td><td>2509.70 ± 0.03</td><td>2509.68 ± 0.04</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>20</td><td>1</td><td>2565.40 ± 0.04</td><td>2565.43 ± 0.05</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>20</td><td>2</td><td>2620.51 ± 0.06</td><td>2620.56 ± 0.07</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>20</td><td>3</td><td>2671.86 ± 0.18</td><td>2671.59 ± 0.28</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>21</td><td>0</td><td>2626.44 ± 0.04</td><td>2626.46 ± 0.05</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>21</td><td>1</td><td>2682.37 ± 0.05</td><td>2682.25 ± 0.05</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>21</td><td>2</td><td>2737.73 ± 0.06</td><td>2737.71 ± 0.08</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>21</td><td>3</td><td>2789.17 ± 0.26</td><td>2789.00 ± 0.38</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>22</td><td>0</td><td>2743.32 ± 0.05</td><td>2743.32 ± 0.07</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>22</td><td>1</td><td>2799.75 ± 0.06</td><td>2799.61 ± 0.07</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>22</td><td>2</td><td>2855.52 ± 0.11</td><td>2855.51 ± 0.13</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>22</td><td>3</td><td>2907.03 ± 0.45</td><td>2906.90 ± 0.50</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>23</td><td>0</td><td>2860.73 ± 0.10</td><td>2860.68 ± 0.10</td><td>> 6</td><td>> 6</td></tr><tr><td>12069449</td><td>23</td><td>1</td><td>2917.81 ± 0.10</td><td>2917.89 ± 0.12</td><td>> 6</td><td>> 6</td></tr></tbody></table>