Free Access
Issue
A&A
Volume 607, November 2017
Article Number A9
Number of page(s) 5
Section Planets and planetary systems
DOI https://doi.org/10.1051/0004-6361/201731612
Published online 30 October 2017

© ESO, 2017

1. Introduction

After an extremely successful decade of exoplanet discoveries, the exoplanet research field is rapidly moving into the age of characterisation. Spectroscopic observations of exoplanet atmospheres are becoming more and more detailed especially with the HST WFC3 as an important contributor. The launch of the James Webb Space Telescope (JWST) next year will likely accelerate this development enormously. The increasing level of detail in the observations is accompanied by an increasing demand on the accuracy of the models trying to explain the data. A first step in modelling an exoplanet atmosphere is having the right opacities of both molecules and cloud particles. The hot atmospheres of many planets we can study today provide challenges for the databases of molecular lines created for the atmosphere of the Earth and solar system planets, like HITRAN (Rothman et al. 2013) and HITEMP (Rothman et al. 2010). To solve this problem the ExoMol project was initiated (Tennyson & Yurchenko 2012; Tennyson et al. 2016). In this project a mixture is employed of first principles and empirically tuned quantum mechanical computations, providing the most complete list of transitions for a wide variety of molecules.

Having a line list that is as complete as possible is crucial for doing proper radiative transfer computations in high temperature atmospheric environments. However, computing the line opacities for a large number of lines can be computationally challenging. For example, the ExoMol line list of CH4 contains on the order of 1010 lines (Yurchenko & Tennyson 2014). Computing the exact pressure and temperature broadened Voigt profile for each of these lines is computationally extremely demanding. There are several approximate methods for computing Voigt profiles available in the literature (e.g. Humlícek 1982; Weideman 1994; Zaghloul & Ali 2012). Also, much effort is spend succesfully on making these approximate methods faster and more accurate (see e.g. Poppe & Wijers 1990; Letchworth & Benner 2007). These methods all focus on obtaining a given accuracy of the exact shape of the Voigt profile by applying mathematical approximations to decrease the computation time. While these methods still require significant computation time, they are now routinely applied to compute Voigt profiles in many applications. The fastest code able to compute Voigt profiles of large numbers of lines at this moment is the HELIOS-k code (Grimm & Heng 2015). This code is able to compute ~ 105 lines per second on a dedicated NVIDIA K20 GPU based machine. This implies that the computation of 1010 lines still requires on the order of one day for a single point in pressure temperature space. Usually a grid of pressure and temperature points is required. Thus, there is the need for an even faster method. In addition, we have to make sure that there are no systematic errors in the computations because a small systematic error in a single line can become large when computed for 1010 lines. Thus, we seek a method that is statistically exact, preserves the integrated opacities and the average shape of the lines, and computes the line profile accurately for the stronger lines.

For most practical applications we are not interested in the detailed line shapes of all 1010 lines. Only a few of the strongest lines can be distinguished, while the weaker lines provide continuum opacity. However, the detailed properties of the line wings due to pressure broadening are very important to take into account (Hedges & Madhusudhan 2016). Yurchenko et al. (2017a) use these arguments to separate the linelist into a list of weaker lines, for which a pseudo-continuum is computed, and a list of stronger lines, for which the full line profiles are computed. The authors of that paper show that the number of strong lines is orders of magnitude smaller than the total number of lines, so the computation time required is reduced with a similar fraction. This is a very strong method, with the only drawback that a split into strong and weak lines is required. In this paper we take a different approach which automatically transitions from strong to weak lines.

The extremely large number of lines is ideal for statistical methods. In this paper these properties are used to construct a line sampling technique where the line shape is randomly sampled. The technique automatically focusses the computation time in constructing accurate line shapes for the strongest lines, while for the weakest lines the focus lies on creating the right continuum opacity. The statistical properties of the line shapes are computed without approximation, taking into account the detailed far line wings due to pressure broadening of the vey large number of lines. This creates accurately the expected continuum from these large number of line wings. The computation time of the line sampling technique scales favourably with the number of lines, meaning that for large line numbers increasing the number of lines has very little influence on the computation time required.

In Sect. 2 the line sampling technique is presented in detail and the numerical implementation is explained. The method is applied to computing the CH4 opacities and correlated-k tables in Sect. 3. Finally, the results are summarised in Sect. 4.

2. Opacity computations

2.1. Statistical line profile sampling

The large line lists available for species like CH4 and H2O contain so many lines that in low resolution spectra there are 105 to 106 lines per spectral resolution element. Thus, we are not so much interested in the exact line shapes as we are in the statistical distribution of the opacities. The correlated-k method simply samples the probability opacity distribution within a resolution bin. An efficient method for computing the correlated-k tables therefore focusses on computing these statistical properties, rather than the exact line shape of each separate line.

A molecular line is broadened by Doppler- and pressure broadening. The convolution of a Gaussian (Doppler) and Lorentz (pressure) profile creates the Voigt profile. Computing the exact shape of this convolution can be computationally demanding. Here we do not compute the convolution directly but sample the exact shape of the convolution by sampling the Gaussian and a Lorentz profile. Sampling a probability distribution can be done by creating a number of N samples of the frequency shift with respect to the line centre, and adding a fraction of 1/N of the integrated line to the frequency bin corresponding to that frequency shift. In the limit of N → ∞ this gives the exact line shape. Standard algorithms exist for sampling probability distributions of various shapes. For an explanation on sampling of the deviates of a probability distribution the reader is referred to chap. 7.2 of Press et al. (1992). While no analytic expression exists for sampling the deviate of the Voigt probability distribution, we can construct the deviate exactly by sampling the deviates of the Gaussian and Lorentzian distributions of which the Voigt profile is a convolution.

The broadening of the line due to thermal velocity of the gas is given by the Gaussian probability distribution φtherm=1σ2πexp{(νν0)22σ2}\begin{equation} \phi_\mathrm{therm}= \frac{1}{\sigma\sqrt{2\pi}}\exp\left\{-\frac{(\nu-\nu_0)^2}{2\sigma^2}\right\} \end{equation}(1)where ν is the frequency of the radiation, ν0 the centre of the line, and σ the thermal broadening parameter given by σ=ν0c2kbTmmol\begin{equation} \sigma=\frac{\nu_0}{c}\sqrt{\frac{2\,k_b\,T}{m_\mathrm{mol}}} \end{equation}(2)with kb the Boltzmann constant, T the temperature of the gas, mmol the mass of the molecule, and c the speed of light.

The broadening of the line due to pressure effects is given by the Lorentz probability distribution φpress=γ/πγ2+(νν0)2,\begin{equation} \phi_\mathrm{press}=\frac{\gamma/\pi}{\gamma^2+(\nu-\nu_0)^2}, \end{equation}(3)where γ=γi2\hbox{$\gamma=\sqrt{\sum\gamma_i^2}$} with γi is the broadening parameter due to pressure broadening of species i. The dependency of γi on pressure and temperature is given by γi=γi,0piP0(T0T)ni,\begin{equation} \gamma_i=\gamma_{i,0} \frac{p_i}{P_0}\left(\frac{T_0}{T}\right)^n_i, \end{equation}(4)where γi,0 is the broadening parameter at temperature T0 and pressure P0, ni is the pressure broadening exponent due to broadening by species i, and pi is the partial pressure of species i (pi = fi·P, with fi the abundance of species i and P the total pressure). In the ExoMol database there is broadening data available for H2 and He, which are the most important collisional partners in the broadening of the lines (Yurchenko et al. 2017b).

A Gaussian profile can be easily sampled using standard algorithms. Given random numbers −1 <η1,η2< 1, Δνtherm=ση12ln(η12+η22)η12+η22,\begin{equation} \Delta\nu_\mathrm{therm}=\sigma\,\eta_1\sqrt{-2\frac{\ln\left(\eta_1^2+\eta_2^2\right)}{\eta_1^2+\eta_2^2}}, \end{equation}(5)samples the Gaussian profile.

Also a Lorentz profile is easily sampled. Given a random number, −1 <η< 1, Δνpress=γtan(π2η),\begin{equation} \Delta\nu_\mathrm{press}=\gamma\tan\left(\frac{\pi}{2}\eta\right), \end{equation}(6)samples the Lorentzian profile.

Both thermal and pressure broadening move energy of the line away from the line centre. The probability distributions give the fraction of the energy that is moved away from the line centre by a shift Δν = νν0. The combined effect of thermal and pressure broadening, the Voigt profile, is thus computed by the convolution of these two probability distributions. In other words, we move the energy away from the line centre by two shifting mechanisms implying that we are able to sample the Voigt distribution by Δν=Δνtherm+Δνpress.\begin{equation} \Delta\nu=\Delta\nu_\mathrm{therm}+\Delta\nu_\mathrm{press}. \end{equation}(7)We stress that by adding the frequency shifts in the sampling procedure, we compute the exact shape of the convolution of the two profiles and thus the exact shape of the Voigt profile. This procedure should not be confused with the pseudo-Voigt profile (which introduces a small error at the advent of decreased computation time Ida et al. 2000). In principle, the procedure to construct a Voigt profile is to use this sampling procedure to distribute the integrated opacity of each line over frequency space. We create N random values for Δν and add a fraction of 1/N of the integrated line opacity in the frequency bin corresponding to the frequency ν0 + Δν, with ν0 the line centre. The disadvantage of this direct approach is that we need many samples to make sure no bins in the line wings are missed and end up with zero opacity. A better procedure is to spread the opacity over multiple bins. We spread the opacity of a sample over all bins in the frequency range ν1νν2 given by, ν1=ν0|Δνpress|+Δνtherm,ν2=ν0+|Δνpress|+Δνtherm.\begin{eqnarray} \nu_1=\nu_0-|\Delta\nu_\mathrm{press}|+\Delta\nu_\mathrm{therm}, \\[2mm] \nu_2=\nu_0+|\Delta\nu_\mathrm{press}|+\Delta\nu_\mathrm{therm}. \end{eqnarray}To obtain the Voigt line profile from this we have to weight each sample with a factor w=Δνpress2Δνpress2+γ2·\begin{equation} w=\frac{\Delta\nu_\mathrm{press}^2}{\Delta\nu_\mathrm{press}^2+\gamma^2}\cdot \end{equation}(10)Finally, the profile sampled in this way is normalised to the integrated line opacity.

Often we would like the pressure broadening profile to have a cutoff at a certain value. In case a cutoff is preferred which is a multiple of γ, we can simply limit the random number η to alter the range of Δνpress. In case an absolute cutoff in terms of Δν is preferred, a simple check is required if the sampled Δν is within the given range. If not, we just draw a new sample. An important aspect of the sampling procedure is that the integrated line opacity is always conserved, independent on if and where the line wings are cut.

Constructing a smooth line profile using the above sampling procedure can be efficient, but the real efficiency gain is when we realise that we do not need a perfectly smooth line shape for each of the 105 lines in each frequency bin. We can adjust the number of samples N for each line, taking into account:

  • The local line density; more lines per frequency interval meanswe can reduce N and still maintain a proper statistical sampling of the opacity distribution in the low resolution frequency bins.

  • The line strength; weak lines will only create continuum, allowing to decrease N. We note that the integrated opacity is always exactly fixed, independent of N. Thus for very weak lines, even N = 1 will create the required continuum opacity.

After extensive empirical testing and optimising efficiency and accuracy we take, N=RHS200NLRLSaver,\begin{equation} \label{eq:numbersamples} N=\frac{R_{\rm H}\,S}{200\,N_{\rm L}\,R_{\rm L}\,S_\mathrm{aver}}, \end{equation}(11)where RH is the spectral resolution used for sampling of the lines, RL is the low resolution required for the correlated-k tables, NL is the local number of lines in the resolution element corresponding to RL, Saver is the average line strength in the low resolution frequency bin, and S is the strength of the line under consideration. The value of N is restricted to 1 ≤ N ≤ 107.

thumbnail Fig. 1

Example Voigt profile sampled using different values for N. The three lower panels represent the relative error (in %) with respect to a Voigt profile computed using a classical method. The frequency is in arbitrary units, γ = σ = 1.

Finally, the full computational gain of this method is obtained by storing a large number of values for Δνtherm/σ and Δνpress/γ. We can construct the line samples for each line with given γ and σ by randomly sampling from these two arrays. This avoids having to compute the ln and tan function too often. For both we use an array of 108 pre-sampled values to avoid any possibility of duplicate sampled lines.

In Fig. 1 we show a Voigt profile with γ = σ = 1 for different values of N. The lower three panels in this figure give the error in percentage with respect to a Voigt profile calculated using a classical method.

thumbnail Fig. 2

Line spectra of methane for various pressures and tempartures computed using the line sampling technique. In the lower two panels also shown are the spectra computed with more or less samples. The spectra with different values for the number of samples are offset with respect to the N × 1.0 curves.

2.2. Correlated-k computations

The correlated-k method for opacity sampling is a way to perform low resolution computations but still take into account the strong opacity fluctuations at high resolution. Correlated-k uses the assumption that within the low resolution frequency bin, radiative transfer computations with the same opacity give the same result. This means that we have to perform the radiative transfer computations for all opacities occurring within this frequency bin. The idea behind correlated-k method is to sort all opacities in a low frequency bin and transfer from the parameter ν (or λ) to a parameter 0 <g< 1 that contains all opacities sorted. So the lowest opacities are at g = 0 and the highest at g = 1. The distribution of opacities is the same in g or ν, so the radiative transfer is the same when averaged over ν or over g. The big advantage is that the opacity curve in g is much smoother (see examples in the next section), so we can sample the radiative transfer computations over just a few g points, where the line opacities fluctuate enormously over ν, requiring orders of magnitude more points.

It is not our aim here to discus detailed properties of the correlated-k method. For that we refer the reader to Goody et al. (1989), Grimm & Heng (2015), Amundsen et al. (2017).

thumbnail Fig. 3

Examples of correlated-k tables for methane for various pressures and temperatures. The k-tables correspond to a wavelength bin with R = 300 around λ = 7.5 μm.

thumbnail Fig. 4

Examples of correlated-k tables for methane for various pressures and temperatures. The k-tables correspond to a wavelength bin with R = 300 around λ = 0.899 μm.

3. Example: CH4

The line sampling method above is implemented in code reading in the files from the ExoMol database. The code produces line opacities and correlated-k tables1. As an example here we consider CH4 in the near infrared (Yurchenko & Tennyson 2014). In Fig. 2 we plot a small part of the spectrum. Even this tiny wavelength range contains on the order of 106 lines. The line profiles are sampled with a number of samples given by Eq. (11) in the lowest curves. The other curves are for more or less samples. As can be seen, increasing the number of samples by a factor of ten does not significantly decrease the noise, while if we decrease the number of samples by ten or 100 we start to see sampling noise on the line opacities. In Fig. 3 we plot the resulting correlated-k tables for a wavelength bin with R = 300 around λ = 7.5 μm for different pressures and temperatures. We also plot here the relative difference with the correlated-k tables for ten times more samples. This gives an indication of the sampling error. As is expected, the error is larger for lower temperatures. This is caused by the fact that for lower temperatures the lines are narrower, and thus the sampling of the line wings is less accurate. In this case the wavelength bins relatively far from the line centre of the strong lines have poor statistics. However, we see that even in this case the error is below 10% everywhere, while for all other cases it is even below 1%. In Fig. 4 we show the correlated-k tables for a wavelength bin around 0.9 μm. Also here the errors are below 1% everywhere. This behaviour is representative for the entire spectrum from optical to the infrared. It is also found that the line spectra are more sensitive to noise than the correlated-k tables.

thumbnail Fig. 5

Methane absorption cross sections as a function of wavelength for various pressures and temperatures.

The spectrum of CH4 computed at two different temperatures and different pressures is shown in Fig. 5. We see that the opacity of the molecule converges towards a continuum for high pressures. This is caused by the very wide pressure broadened wings of the many lines. We note that for these computations we have considered the full Voigt profile without any wing cutoff. It is currently unknown where the pressure broadened line-wings should be cut off, but it can be seen that the effect of this is significant.

For methane at 1500 K and 1 mbar the method described above computes around 3.5 × 105 lines per second for a single CPU on an iMac from 2011 (3.4 GHz Intel Core i7). So on a typical 8-core desktop machine, computing the full CH4 spectrum with 1010 lines takes on the order of an hour and a half (this includes reading of the huge linelist files). The exact number can vary depending on the processor, molecule, temperature and pressure, but these numbers give a good indication of the speedup that the line sampling technique can provide for computing opacities from line lists. The code does not rely on dedicated machines, so can be run on arbitrary computer clusters. We note here also that by looking at Eq. (11) we see that increasing the number of lines typically has only a small influence on the computation speed, since automatically the number of samples per line is reduced.

4. Summary

A method is provided for very fast computation of molecular opacities from large line lists. The method uses random sampling of the line profiles. There are no approximations of the shape of the lines or artificial line-cutoffs needed, the full Voigt profile is sampled for all lines. The method has the advantage that the computation time is not linearly proportional to the number of lines. When increasing the number of lines in the line list, we can decrease the number of samples per line to keep the computation time within reasonable limits.

It is shown that the method provides accurate correlated-k tables and even accurate high resolution line opacities. The broad, very far wings of the pressure broadened Voigt profile, creating continuum opacity for high pressures, can be fully computed with this method. The line sampling technique therefore provides a robust way of computing molecular opacities from large line list databases such as the ExoMol database for exoplanet opacities.


1

The computational code is available on a collaborative basis by contacting the author.

Acknowledgments

I would like to thank Ingo Waldmann for constructive and critical comments on an earlier version of this manuscript.

References

  1. Amundsen, D. S., Tremblin, P., Manners, J., Baraffe, I., & Mayne, N. J. 2017, A&A, 598, A97 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  2. Goody, R., West, R., Chen, L., & Crisp, D. 1989, J. Quant. Spec. Radiat. Transf., 42, 539 [NASA ADS] [CrossRef] [Google Scholar]
  3. Grimm, S. L., & Heng, K. 2015, ApJ, 808, 182 [NASA ADS] [CrossRef] [Google Scholar]
  4. Hedges, C., & Madhusudhan, N. 2016, MNRAS, 458, 1427 [NASA ADS] [CrossRef] [Google Scholar]
  5. Humlícek, J. 1982, J. Quant. Spec. Radiat. Transf., 27, 437 [NASA ADS] [CrossRef] [Google Scholar]
  6. Ida, T., Ando, M., & Toraya, H. 2000, Journal of Applied Crystallography, 33, 1311 [CrossRef] [Google Scholar]
  7. Letchworth, K. L., & Benner, D. C. 2007, J. Quant. Spec. Radiat. Transf., 107, 173 [Google Scholar]
  8. Poppe, G. P. M., & Wijers, C. M. J. 1990, ACM Trans. Math. Softw., 16, 38 [CrossRef] [Google Scholar]
  9. Press, W. H., Teukolsky, S. A., Vetterling, W. T., & Flannery, B. P. 1992, Numerical recipes in FORTRAN. The art of scientific computing (New York: Cambridge University Press) [Google Scholar]
  10. Rothman, L. S., Gordon, I. E., Barber, R. J., et al. 2010, J. Quant. Spectr. Rad. Transf., 111, 2139 [NASA ADS] [CrossRef] [Google Scholar]
  11. Rothman, L. S., Gordon, I. E., Babikov, Y., et al. 2013, J. Quant. Spectr. Rad. Transf., 130, 4 [Google Scholar]
  12. Tennyson, J., & Yurchenko, S. N. 2012, MNRAS, 425, 21 [Google Scholar]
  13. Tennyson, J., Yurchenko, S. N., Al-Refaie, A. F., et al. 2016, J. Mol. Spectr., 327, 73 [NASA ADS] [CrossRef] [Google Scholar]
  14. Weideman, J. A. C. 1994, SIAM J. Num. Anal., 31, 1497 [CrossRef] [Google Scholar]
  15. Yurchenko, S. N., & Tennyson, J. 2014, MNRAS, 440, 1649 [NASA ADS] [CrossRef] [Google Scholar]
  16. Yurchenko, S. N., Amundsen, D. S., Tennyson, J., & Waldmann, I. P. 2017a, A&A, 605, A95 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  17. Yurchenko, S. N., Tennyson, J., & Barton, E. J. 2017b, J. Phys. Conf. Ser., 810, 012010 [CrossRef] [Google Scholar]
  18. Zaghloul, M. R., & Ali, A. N. 2012, ACM Trans. Math. Softw., 38, 1 [Google Scholar]

All Figures

thumbnail Fig. 1

Example Voigt profile sampled using different values for N. The three lower panels represent the relative error (in %) with respect to a Voigt profile computed using a classical method. The frequency is in arbitrary units, γ = σ = 1.

In the text
thumbnail Fig. 2

Line spectra of methane for various pressures and tempartures computed using the line sampling technique. In the lower two panels also shown are the spectra computed with more or less samples. The spectra with different values for the number of samples are offset with respect to the N × 1.0 curves.

In the text
thumbnail Fig. 3

Examples of correlated-k tables for methane for various pressures and temperatures. The k-tables correspond to a wavelength bin with R = 300 around λ = 7.5 μm.

In the text
thumbnail Fig. 4

Examples of correlated-k tables for methane for various pressures and temperatures. The k-tables correspond to a wavelength bin with R = 300 around λ = 0.899 μm.

In the text
thumbnail Fig. 5

Methane absorption cross sections as a function of wavelength for various pressures and temperatures.

In the text

Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.

Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.

Initial download of the metrics may take a while.