Skip to main content

Accurate analytic approximation for the Chapman grazing incidence function

Abstract

A new analytical approximation for the Chapman mapping integral, \({\text {Ch}}\), for exponential atmospheres is proposed. This formulation is based on the derived relation of the Chapman function to several classes of the incomplete Bessel functions. Application of the uniform asymptotic expansion to the incomplete Bessel functions allowed us to establish the precise analytical approximation to \({\text {Ch}}\), which outperforms established analytical results. In this way the resource consuming numerical integration can be replaced by the derived approximation with higher accuracy. The obtained results are useful for various branches of atmospheric physics such as the calculations of optical depths in exponential atmospheres at large grazing angles, physical and chemical aeronomy, atmospheric optics, ionospheric modeling, and radiative transfer theory.

Introduction

In modeling of atmospheres their chemical constituents are often assumed to be distributed according to the hydrostatic equilibrium within the column extending from a point of interest towards the sun. This columnar content can be conveniently mapped to the reference value via the Chapman grazing incidence function Chapman (1931). The reference value corresponds to the vertical column, i.e., to the situation when the sun is at the zenith of the point of interest. As an approximation to the hydrostatic equation the distribution of atmospheric constituents is assumed to follow the exponential distribution within the vertical column. Being originally introduced for the description of energy deposition in the ionosphere due to the absorption of solar radiation, the Chapman function is now an important mathematical object in other branches of the atmospheric physics, such as radiative transfer theory (Dahlback and Stamnes 1991), chemical and physical aeronomy (Brasseur and Solomon 2005; Schunk and Nagy 2009), description of light scattering in planetary atmospheres (Wallach and Hapke 1985). The function is also used in modeling of ionospheric D-layer (Friedrich and Torkar 2001), in calculations of atmospheric transparency (Green et al. 1964), optical air masses (Kocifaj 1996; Rapp-Arrarás and Domingo-Santos 2011), cosmic ray ionization rates (Velinov 1974), or for air shower simulations (Extensive and Showers 2010), to name just a few.

In general case the evaluation of the Chapman function requires numerical integration, which, in turn, might require considerable computational resources in complex physical models of exponential atmospheres. This is the reason why many attempts have been made in order to provide simple analytic approximative expressions for the Chapman integral. The most notorious approximations of the Chapman function have been collected in the D. Huestis work (Huestis 2001). This work is also an excellent source on numerical and asymptotical evaluation of the various integral representations of this mapping function.

The aim of the present article is to draw the reader attention to the less known interrelation of the Chapman function and the incomplete cylindrical functions (Agrest and Maximov 1971). Based on this observation we obtain new asymptotic representations of the Chapman function, which approximate the exact integral expressions with the high order of accuracy. One of the derived approximations yields better approximation of the exact Chapman integral than other analytic approximations found in the literature. We hope that the obtained result would be useful for physical models of ionospheres, theories of optical propagation in the atmospheres, radiative transfer theories, and in remote sensing applications

The article is organized as follows. In section “Definitions and current analytic approximations” we summarize the basic definitions and properties of the Chapman function and give an overview of its existing analytic approximations. In section “Derivation of new analytic approximations” we derive the relationship of the Chapman integral with several classes of the incomplete cylindrical functions. Based on these relationships and using the uniform asymptotic expansions of the incomplete Macdonald integrals we derive analytic approximations of the Chapman mapping function. The methodological aspects of comparison of different analytic approximations are discussed in “Methodology of comparison”. The performance of the obtained approximations is discussed in section “Results of comparison and discussion” and is compared with other approximations found in the literature. The obtained results are summarized in “Conclusions”.

Definitions and current analytic approximations

The derivation of Chapman mapping function relies on several simplifications concerning the properties and geometry of atmospheric layers. Firstly, the spherical symmetry of the atmospheric shells is assumed. Secondly, the hydrostatic equilibrium within the atmospheric shells is expected, meaning that in a state of rest, the atmospheric pressure at specified height must support the weight of the gas above it. Additionally to this the temperature and the gravitational acceleration are supposed not to vary with the altitude. This restriction results in exponential distribution of an ideal gas in hydrostatic equilibrium. Finally, the bending of solar rays due to atmospheric refraction is neglected.

Under specified restrictions the classical representation of the Chapman function as derived in Chapman (1931) reads as

$$\begin{aligned} {\text {Ch}}(X, \zeta ) = X\sin \zeta \int \limits _0^\zeta \exp \left[ X(1-\sin \zeta \csc t)\right] \csc ^2 t\, {\text {d}}t, \end{aligned}$$
(1)

where \(\zeta\) is the solar zenith angle at the point of interest and

$$\begin{aligned} X = \frac{L}{H} \end{aligned}$$
(2)

is the dimensionless ratio of the spatial coordinate L measured from the center of the Earth to the scale height H of particular atmospheric gas. The scale height characterizes the exponential decay of the atmospheric constituent density with the height. For an ideal gas this quantity is expressed through the Boltzman’s constant k, the temperature T, the mean constituent mass m, and the acceleration due to gravity g as

$$\begin{aligned} H = kT/mg. \end{aligned}$$

If the spherical earth model is under consideration, we have \(L = R_\oplus +z\) with \(R_\oplus\) being the earth radius and z being the hight of the point of interest. The derivation of Eq. (1), based on geometrical considerations, is summarized in Swider (1964).

Table 1 Analytical approximations of the Chapman function (in chronological order). The solar zenith angle \(\zeta\) is given in radian units

To avoid numerical integration of Eq. (1) several analytic approximations have been proposed in the literature. These approximations are based either on asymptotic evaluation of the integral or on semi-empirical considerations. Table 1 summarizes the most widely used approximative Chapman mapping functions. Most of the expressions are given in terms of the complimentary error function

$${\text {erfc}}(x) =\frac{2}{\sqrt{\pi }}\int \limits _x^\infty e^{-t^2}\,{\text {d}}t,$$

which in contrast to Eq. (1) being a single argument function is properly tabulated and approximated, cf. Abramowitz and Stegun (1972). The formulas in Table 1 are given for the solar zenith angle \(0\le \zeta \le \pi /2\) and can be extended to larger zenith angles via the relationship (Chapman 1953; Titheridge 1988):

$$\begin{aligned} {\text {Ch}}(X, \zeta )= 2\exp \left[ X(1-\sin \zeta )\right] {\text {Ch}}(X\sin \zeta ,\pi /2)-{\text {Ch}}(X, \pi -\zeta ),\quad \zeta > \pi /2. \end{aligned}$$
(3)

Here

$$\begin{aligned} {\text {Ch}}(X\sin \zeta ,\pi /2) = X\sin \zeta e^{X\sin \zeta } K_1(X\sin \zeta ) \end{aligned}$$
(4)

and \(K_1\) is the modified Bessel function of the second kind of the first order (Macdonald function), cf. Abramowitz and Stegun (1972). At the limiting case of \(\zeta =\pi /2\) we obtain the Chapman function at the horizon for the point of interest:

$$\begin{aligned} {\text {Ch}}(X,\pi /2) = X e^{X} K_1(X). \end{aligned}$$
(5)

Due to Eq. (3) we restrict our attention in the following to zenith angles in the range \(\zeta \in [0,\pi /2]\).

Derivation of new analytic approximations

Relation to incomplete cylindrical functions

Here we show the relationship of the Chapman function to several families of the incomplete cylindrical functions. To start with, we change the integration variable t in Eq. (1) according to \(s=\csc (t)\). In this way we arrive at the alternative integral representation of the Chapman function

$$\begin{aligned} {\text {Ch}}(X,\zeta ) = X\sin \zeta e^X\int \limits _{\cosh \beta }^\infty \exp \left( - X s\sin \zeta \right) s(s^2-1)^{-1/2}\,{\text {d}}s, \end{aligned}$$
(6)

where

$$\begin{aligned} \beta = \ln \frac{1+\cos \zeta }{\sin \zeta } =\ln \cot \frac{\zeta }{2} =\cosh ^{-1}(\csc \zeta ). \end{aligned}$$
(7)

Integrating Eq. (6) by parts we obtain

$$\begin{aligned} {\text {Ch}}(X,\zeta )=-X\sin \zeta \sinh \beta +X^2\sin ^2\zeta e^X\int \limits _{\cosh \beta }^\infty \exp \left( -s X \sin \zeta \right) \sqrt{s^2-1}\, {\text {d}}s. \end{aligned}$$
(8)

From this formula it is easy to derive the result (5) for \(\zeta =\pi /2\), i.e., \(\cosh \beta =1\), by using the integral representation of the Macdonald function (Abramowitz and Stegun 1972, Eq. 9.6.23)

$$\begin{aligned} K_n(x)=\frac{\sqrt{\pi }\left( \frac{1}{2} x\right) ^n}{\Gamma \left( n+\frac{1}{2}\right) }\int \limits _1^\infty \exp \left( - sx\right) \left( s^2-1\right) ^{n-\frac{1}{2}}\,{\text {d}}s, \end{aligned}$$
(9)

where \(\Gamma (\nu )\) is the Gamma function.

In the view of Eq. (9) the Chapman function (8) can be rewritten as

$$\begin{aligned} {\text {Ch}}(X,\zeta )=-X\sin \zeta \sinh \beta +X\sin \zeta e^X\left[ K_1(X\sin \zeta )-L_1\left( X\sin \zeta , \cosh \beta \right) \right] \end{aligned}$$
(10)

with

$$\begin{aligned} L_n(x, y)=\frac{\sqrt{\pi }\left( \frac{1}{2} x\right) ^n}{\Gamma \left( n+\frac{1}{2}\right) }\int \limits _1^y \exp \left( - s x\right) \left( s^2-1\right) ^{n-\frac{1}{2}} \,{\text {d}}s \end{aligned}$$
(11)

being the incomplete Macdonald function in the form introduced in Agrest and Maximov (1971). The nomenclature “incomplete cylindrical function” or “incomplete Bessel function” becomes clear from this definition as only in the limit \(y\rightarrow \infty\) the function (11) becomes the “complete” Macdonald function (9).

In order to relate the Chapman function to other types of incomplete cylindrical functions we perform the variable change in (8) according to \(s=\cosh \theta\) and obtain

$$\begin{aligned} {\text {Ch}}(X,\zeta )=-X\sin \zeta \sinh \beta +X^2\sin ^2\zeta e^X\int \limits _{\beta }^\infty \exp \left( - X \sin \zeta \cosh \theta \right) \sinh ^2\theta \,{\text {d}}\theta . \end{aligned}$$
(12)

This expression allows one to express the Chapman function through the incomplete Macdonald functions

$$\begin{aligned} K_n(x,y)=\int \limits _y^\infty e^{-x \cosh \theta }\cosh (n \theta )\,{\text {d}}\theta \end{aligned}$$
(13)

as defined by Jones (2007) or

$$\begin{aligned} \tilde{K}_n(x, y) = \int \limits _1^\infty e^{-(x t+ y/t)}t^{n-1}\,{\text {d}}t \end{aligned}$$
(14)

as defined by Terras (1981). Namely, using the definition for \(K_n(x,y)\) the Chapman function can be represented as

$$\begin{aligned} {\text {Ch}}(X,\zeta )=-X\sin \zeta \sinh \beta +\frac{1}{2}X^2\sin ^2\zeta e^X\Bigl [K_2(X\sin \zeta ,\beta )-K_0(X\sin \zeta ,\beta )\Bigr ]. \end{aligned}$$
(15)

The corresponding relationship between the Chapman function and the incomplete cylindrical function (14) is easily obtained from (15) by observing the obvious relation

$$\begin{aligned} K_n(x, y) = \frac{1}{2}\left[ e^{n y} \tilde{K}_n\left( \frac{x}{2} e^y, \frac{x}{2} e^{-y}\right) + e^{-n y} \tilde{K}_{-n}\left( \frac{x}{2} e^y, \frac{x}{2} e^{-y}\right) \right] . \end{aligned}$$
(16)

The recurrence relations also allow to establish the relationship between the incomplete Bessel functions in form of Agrest and Maximov, Jones, and Terras. For example, we have in our case of interest the following relations

$$\begin{aligned} L_0(x,\cosh y) = K_0(x)-K_0(x,y), \end{aligned}$$
(17)

and

$$\begin{aligned} L_1(x,\cosh y) = K_1(x)-K_1(x,y)+\tanh y\frac{\partial }{\partial y}K_1(x,y). \end{aligned}$$
(18)

We also note that the limiting case (5) for \(\zeta =\pi /2\) is obtained from (15) by observing that \(K_n(x,0)=K_n(x)\)Footnote 1 and with the use of the well-known recurrence relations for the Bessel functions.

The recently discovered relationship of the Chapman function to the solution of an inhomogeneous modified Bessel’s equation (Huestis 2001) yields the following representation of this mapping function:

$$\begin{aligned} {\text {Ch}}(X,\zeta ) = X\sin \zeta \cos \zeta e^X\int \limits _X^\infty e^{-t}\Bigl [I_1(X\sin \zeta )K_0(t\sin \zeta )+K_1(X\sin \zeta )I_0(t\sin \zeta )\Bigr ]\,{\text {d}}t, \end{aligned}$$
(19)

where \(I_n(x)\) are the modified Bessel functions of nth order. The advantage of this integral representation is that the Champan function in this formulation is stable for all values of X and \(\zeta\) as has been shown by Huestis (2001). The integrals in Eq. (19)

$$\begin{aligned} \mathcal {I}_1(X,\zeta ) = \int \limits _X^\infty e^{-t}I_0(t\sin \zeta )\,{\text {d}}t,\quad \mathcal {I}_2(X, \zeta )=\int \limits _X^\infty e^{-t}K_0(t\sin \zeta )\,{\text {d}}t \end{aligned}$$
(20)

cannot be analytically integrated in general case except for \(X=0\). One can show that these integrals possess a weak singularity for \(t\rightarrow \infty , \zeta =\pi /2\) while \(\mathcal {I}_2\) possesses an integrable singularity for \(t\rightarrow 0, \zeta \rightarrow 0\).

Equation (19) allows one to establish the relation of the Chapman function and another class of the incomplete cylindrical functions known as the incomplete Lipschitz–Hankel integrals (Agrest and Maximov 1971). Namely, the integrals (20) can be expressed through the incomplete Lipschitz–Hankel integrals (Agrest and Maximov 1971)

$$\begin{aligned} Ie_0(x, y) = \int \limits _0^y e^{- x t}I_0(t)\,{\text {d}}t ,\quad Ke_0(x, y) = \int \limits _0^y e^{- x t}K_0(t)\,{\text {d}}t \end{aligned}$$
(21)

as

$$\begin{aligned} \mathcal {I}_1(X,\zeta )= & {} \sec \zeta -\csc \zeta \, Ie_0\left( \csc \zeta , X\sin \zeta \right) ,\quad 0\le \zeta <\pi /2, \end{aligned}$$
(22)
$$\begin{aligned} \mathcal {I}_2(X,\zeta )= & {} \beta \sec \zeta -\csc \zeta \, Ke_0\left( \csc \zeta , X\sin \zeta \right) ,\quad 0\le \zeta <\pi /2. \end{aligned}$$
(23)

Here the parameter \(\beta\) is given by Eq. (7). Substituting Eqs. (22), (23) in Eq. (19) we obtain

$$\begin{aligned} {\text {Ch}}(X,\zeta )= & {} X\sin \zeta e^X\Biggl \{I_1(X\sin \zeta )\beta +K_1(X\sin \zeta )\Biggr .\nonumber \\&-\Bigl .\cot \zeta \Bigl [I_1(X\sin \zeta )Ke_0(\csc \zeta ,X\sin \zeta )+K_1(X\sin \zeta )Ie_0(\csc \zeta ,X\sin \zeta )\Bigr ]\Biggr \}. \end{aligned}$$
(24)

This representation reduces \({\text {Ch}}(X,\pi /2)\) directly to the limiting case (5).

Using Eq. (19) we now derive the relationship of the Chapman function to the incomplete Bessel functions (13). We start with the result obtained in Ref. Agrest and Maximov (1971):

$$\begin{aligned} L_0(x,\cosh y) = y I_0(x)+\sinh y\int \limits _0^x \left[ K_0(x)I_0(t)e^{-t\cosh y}-I_0(x)K_0(t)e^{-t\cosh y}\right] \,{\text {d}}t, \end{aligned}$$
(25)

where the function \(L_0\) is defined in Eq. (11). Differentiating both sides of Eq. (25) with respect to x and using the relations \({\text {d}}I_0(x)/{\text {d}}x=I_1(x)\) and \({\text {d}}K_0(x)/{\text {d}}x=-K_1(x)\) we obtain

$$\begin{aligned} \frac{{\text {d}}}{{\text {d}}x}L_0(x, \cosh y) = y I_1(x) -\sinh y\int \limits _0^x \left[ K_1(x)I_0(t)e^{-t\cosh y}+I_1(x)K_0(t)e^{-t\cosh y}\right] \,{\text {d}}t. \end{aligned}$$
(26)

This equation allows one to rewrite the Chapman function (19) as

$$\begin{aligned} {\text {Ch}}(X,\zeta ) = \frac{1}{2}X\sin \zeta e^X\left[ K_1(X\sin \zeta ,\beta )+K_{-1}(X\sin \zeta ,\beta )\right] =X\sin \zeta e^X K_1(X\sin \zeta ,\beta ), \end{aligned}$$
(27)

where the property \(K_{-n}(x,y)=K_n(x,y)\) has been used. This is alternative to Eq. (15) representation of the Chapman function in terms of the incomplete Macdonald functions (13).

To conclude this section we relate the Chapman function with another class of the incomplete cylindrical functions, namely the incomplete Weber integrals (Agrest and Maximov 1971)

$$\begin{aligned} \widetilde{Q}_n(x,y)=(2x)^{-n-1}e^{x}\int \limits _0^y t^{n+1} I_n(t)\exp \left( -\frac{t^2}{4x}\right) \, {\text {d}}t. \end{aligned}$$
(28)

These integrals appear in the theories of optical diffraction, pulsed radar theories, and mathematical statistics, see e.g. Vasylyev et al. (2013). Reference (Agrest and Maximov 1971) derives the relationship between the incomplete Weber integral \(\widetilde{Q}_0(x,y)\) and the incomplete Lipschitz–Hankel integral \(Ie_{0}(x,y)\) as given in Eq. (21). In our notations this relationship for \(0\le \zeta \le \pi /2\) reads as:

$$\begin{aligned} Ie_{0}(\csc \zeta , X\sin \zeta ) = \tan \zeta \left\{ 2e^{-2 X\sin ^2\frac{\zeta }{2}}\widetilde{Q}_0\left( X\sin ^2\frac{\zeta }{2}, X\sin \zeta \right) -\left[ 1-e^{-X}I_0(X\sin \zeta )\right] \right\} . \end{aligned}$$
(29)

The incomplete integral \(Ke_0(x, y)\) can be expressed in terms of \(Ie_0(x, y)\) as shown in Ref. Agrest and Maximov (1971) as

$$\begin{aligned} Ke_0(\csc \zeta , X\sin \zeta )= & {} \frac{K_0(X\sin \zeta )}{I_0(X\sin \zeta )}Ie_0(\csc \zeta , X\sin \zeta )\nonumber \\&+\tan \zeta \frac{1}{I_0(X\sin \zeta )}\Bigl [\beta I_0(X\sin \zeta )-L_0(X\sin \zeta ,\cosh \beta )\Bigr ], \end{aligned}$$
(30)

where \(L_n(x,y)\) is given by (11). Combining Eq. (29) with (30) and substituting them in (24) we obtain

$$\begin{aligned} {\text {Ch}}(X,\zeta )= & {} X\sin \zeta e^X\Biggl (\Biggr .K_1(X\sin \zeta )+\frac{I_1(X\sin \zeta )}{I_0(X\sin \zeta )} \left[ K_0(X\sin \zeta )-K_0(X\sin \zeta ,\beta )\right] \nonumber \\&-\left[ K_1(X\sin \zeta )-\frac{I_1(X\sin \zeta )}{I_0(X\sin \zeta )}K_0(X\sin \zeta )\right] \nonumber \\&\times \Biggl \{2e^{-2 X\sin ^2\frac{\zeta }{2}}\widetilde{Q}_0\left( X\sin ^2\frac{\zeta }{2}, X\sin \zeta \right) \Biggr .{-}\Biggl .\Biggl .\Bigl [1-e^{-X}I_0(X\sin \zeta )\Bigr ]\Biggr \}\Biggr ), \end{aligned}$$
(31)

where we have used Eq. (17) for the incomplete Bessel function \(L_0(x,y)\). The obtained expression is rather complex to be applied in practice. Its derivation serves merely for sake of completeness of the relations between the Chapman function and the incomplete cylindrical functions of different kinds. However, it appears that (31) becomes useful for the analytic approximation of the Chapman function when the scale parameter is small.

Analytic approximations for the mapping function

In the previous section we have obtained several formulas that relate the Chapman mapping function (1) to the incomplete cylindrical functions of various types. Specifically, Eq. (10) relates the Chapman integral to the incomplete Macdonald function \(L_n(x,y)\) of the Agrest and Maksimov type, whereas Eqs. (15) and (27) express the former in terms of the incomplete Macdonald function \(K_n(x,y)\) of the Jones type or alternatively in terms of the Terras incomplete Macdonald function \(\tilde{K}_n(x, v)\). Finally, Eq. (24) is the representation in terms of the incomplete Lipschitz–Hankel integrals \(Ie_n(x,y), Ke_n(x,y)\) and can be also rewritten in terms of the incomplete Weber integral \(\widetilde{Q}_n(x,y)\) and the incomplete Macdonald function as given in Eq. (31). Since there are relationships among these various types of incomplete Bessel functions as discussed in the previous section, we consider the analytic approximation of the Chapman function using Eqs. (15) and (27) written in terms of \(K_n(x,y)\). The special case of small values of the scale parameter X, which is not of interest in atmospheric physics applications, is based on Eq. (31) and is considered in the Appendix A.

The choice of the incomplete Bessel function \(K_n(x,y)\) for the development of analytic approximations is dictated by suitability of its integral representation (13) for uniform asymptotic expansions. We refer to the work (Jones 2007) for details in derivation of the expansion formula and give here the lowest terms in the asymptotic expansion of \(K_n(x,y)\)

$$\begin{aligned} K_n(X\sin \zeta , \beta )\approx & {} \left( \frac{\pi }{2 X\sin \zeta }\right) ^{1/2}\Bigl (\alpha _0+\frac{\alpha _1}{X\sin \zeta }\Bigr )e^{-X\sin \zeta } {\text {erfc}}\left( \sqrt{2X\sin \zeta }\sinh \frac{\beta }{2}\right) \nonumber \\&+\left( \frac{\beta _0}{X\sin \zeta }+\frac{\beta _1}{X^2\sin ^2\zeta }\right) e^{-X}. \end{aligned}$$
(32)

Here \(\beta\) is given in Eq. (7) and

$$\begin{aligned} \alpha _0= & {} 1,\quad \alpha _1=\frac{1}{8}(4n^2-1), \end{aligned}$$
(33)
$$\begin{aligned} \beta _0= & {} \frac{\cosh n\beta }{\sinh \beta }-\frac{1}{2\sinh \frac{\beta }{2}},\quad \beta _1=\frac{n \sinh n\beta }{\sinh ^2\beta }-\frac{\cosh n\beta \cosh \beta }{\sinh ^3\beta }\nonumber \\&+\frac{1}{8\sinh ^3\frac{\beta }{2}}-\frac{4n^2-1}{16\sinh \frac{\beta }{2}}. \end{aligned}$$
(34)

This uniform asymptotic expansion of the incomplete Bessel function allows us to obtain the new analytic approximations of the Chapman integral, which are the main results of the present article. Substituting (32) in (15) yields

$$\begin{aligned} {\text {Ch}}(X,\zeta )\approx \sqrt{\frac{\pi }{2}}\sqrt{X\sin \zeta }e^{X(1-\sin \zeta )}{\text {erfc}}\left( \sqrt{2X\sin \zeta }\sinh \frac{\beta }{2}\right) + \coth \beta -\frac{1}{2\sinh \frac{\beta }{2}}. \end{aligned}$$
(35)

Inserting (32) in (27) we obtain

$$\begin{aligned} {\text {Ch}}(X,\zeta )\approx & {} \sqrt{\frac{\pi }{2}}\sqrt{X\sin \zeta }\,\Biggl (1+\frac{3}{8}\frac{1}{X\sin \zeta }\Biggr ) \,e^{X(1-\sin \zeta )}{\text {erfc}}\left( \sqrt{2X\sin \zeta }\sinh \frac{\beta }{2}\right) \nonumber \\&+ \coth \beta -\frac{1}{2\sinh \frac{\beta }{2}}-\frac{1}{X\sin \zeta } \Biggl (\frac{1}{\sinh ^3\beta }-\frac{1}{8\sinh ^3\frac{\beta }{2}}+\frac{3}{16\sinh \frac{\beta }{2}}\Biggr ),\nonumber \\ \beta= & {} \cosh ^{-1}(\csc \zeta ). \end{aligned}$$
(36)

We see that Eq. (32) is more suitable for deriving of asymptotic expansion of the Chapman function since it preserves the order of expansion of the incomplete Bessel function (27) in contrast to the definition (15).

Inspection of Eq. (36) shows that the first term on the r.h.s resembles the asymptotic expansion of the Macdonald function \(K_1(X\sin \zeta )\) with the complementary error function. This observation shows the similarity of the obtained asymptotic expansion formula (36) with the large-\(\zeta\) expansion of Chapman, cf. Eq.(38) in his original article (Chapman 1931). If one performs the expansion of the Macdonald function up to the second term in the first summand of the Chapman asymptotic expression, one obtains exactly the first term of Eq. (36). With this respect it is worth to note that Chapman considered the asymptotic of small and large zenith angles separately. Moreover, Chapman’s original asymptotic expansions are complex polynomial series with poor convergence, the issue corrected in Ref. Huestis (2001). Equation (36) originates from uniform asymptotic expansions and is valid for all values of zenith angle and is simpler to implement in practice.

To conclude this section we provide an explicit expression for approximation (36) in the form useful for numeric calculations

$$\begin{aligned} {\text {Ch}}(X,\zeta )\approx & {} \sqrt{\frac{\pi }{2}}\sqrt{X\sin \zeta }\,\Biggl (1+\frac{3}{8}\frac{1}{X\sin \zeta }\Biggr ) \,e^{X(1-\sin \zeta )}{\text {erfc}}\left[ \sqrt{X(1-\sin \zeta )}\right] \nonumber \\&+ \frac{1}{\sqrt{1-\sin ^2\zeta }}\Biggl \{ 1-t-\frac{1}{X\sin \zeta (1-\sin ^2\zeta )^2}\nonumber \\&\Biggl [\sin ^3\zeta -t^3+\frac{3}{8}t(1-\sin ^2\zeta )\Biggr ]\Biggr \},\nonumber \\ t= & {} \sqrt{\sin \zeta (1+\sin \zeta )/2}. \end{aligned}$$
(37)

Here the zenith angle enters as an argument of sine function only and the expression \(\sin \zeta\) is optimal to be evaluated prior the substitution in (37). Finally we note that for sufficiently large values of X as \(\zeta \rightarrow 0\) the formula (37) approaches the expected limit \(\sec \zeta\).

Methodology of comparison

Fortran code was written to evaluate \({\text {Ch}}(X,\zeta )\) through the analytical approximations (35), (36) and (43). These equations has adopted in the form optimal for numerical calculations, cf. Eq. (37). For evaluation of the numerical integral (1) and some of the previous analytical approximations of Table 1 the code written by Huestis (2001) has been adopted. We have chosen the double precision calculations for both approximative formulas and numerical integral (1) to minimize the effect of rounding errors. The code was compiled and tested using the Intel Fortran Compiler under Windows operating system. Based on the Fortran program the Python package has been created using F2Py Fortran-Python interface generator and has been implemented as the corresponding wrapper program.

Fig. 1
figure 1

Accuracy of analytical approximations of the Chapman function as a function of solar zenith angle \(\zeta\) for scale parameter \(X=50\). The dashed lines show the formulas found in the literature and solid lines correspond to approximations introduced in the present article (labeling in chronological order, see Table 1): a Green & Barnum approximation (Green and Barnum 1963), b Fitzmaurice approximation (Fitzmaurice 1964), c Swider approximation (Swider 1964), d Titheridge empirical formula (Titheridge 1988), e Kocifaj formula (Kocifaj 1996), f Huestis asymptotics, 1 term (Huestis 2001), g present work, Eq. (35), h present work, Eq. (36)

Fig. 2
figure 2

Accuracy of analytical approximations of the Chapman function as a function of solar zenith angle \(\zeta\) for scale parameter \(X=500\). The dashed lines show the formulas found in the literature and solid lines correspond to approximations introduced in the present article: a Green & Barnum approximation (Green and Barnum 1963), b Fitzmaurice approximation (Fitzmaurice 1964), c Swider approximation (Swider 1964), d Titheridge empirical formula (Titheridge 1988), e Kocifaj formula (Kocifaj 1996), f Huestis asymptotics, 1 term (Huestis 2001), g present work, Eq. (35), h present work, Eq. (36)

In order to show the precision of various analytical approximations we plotted the logarithm of the relative error as a function of the solar zenith angle in Figs. 1 and 2 for scale parameters \(X=50\) and \(X=500\), respectively. The choice of the scale parameters is arbitrary and chosen to satisfy \(X\gg 1\) and to represent the values different in one order of magnitude. The relative error is defined as

$$\begin{aligned} \varepsilon = \frac{|{\text {Ch}}^{(e)}(X,\zeta )-{\text {Ch}}^{(a)}(X,\zeta )|}{{\text {Ch}}^{(e)}(X,\zeta )}, \end{aligned}$$
(38)

where \({\text {Ch}}^{(e)}(X,\zeta )\) is the exact value of the Chapman function taken from the double precision numerical integral (1) and \({\text {Ch}}^{(a)}(X,\zeta )\) is the analytical approximation of this function calculated with the double precision.

We use the relative error instead of the absolute error \(\varepsilon _a=|{\text {Ch}}^{(e)}-{\text {Ch}}^{(a)}|\) due to the following reasoning. For applications in atmospheric physics the values of the scale parameter that satisfy \(X\gg 1\) are of interest. For \(\zeta \in [0,\pi /2]\) in this asymptotic one can show that \({\text {Ch}}^{(e)}=O(\sqrt{X})\) and \({\text {Ch}}^{(a)}=O(\sqrt{X})\), where O(x) is the order symbol (Erdélyi 2003). These relations follows from Eq. (5) and from the asymptotic expansion of the Macdonald function. In order to remove the \(O(\sqrt{X})\) trend in the error analysis the relative error has been chosen. Similar approach has been chosen by D. L. Huestis in his thorough analysis of Chapman function evaluation (Huestis 2001). The current error analysis is thus fully in agreement with those performed in Ref. Huestis (2001) apart from the fact that D. L. Huestis chosen the scale parameters \(X=50\) and \(X=800\) and we use \(X=50\) and \(X=500\) in the current study. We have also checked the correspondence of several approximative formulas from Table 1 with the error analysis of corresponding expressions in Ref. Swider and Gardner (1967) for \(X=50\) and \(X=500\). A good agreement has been found despite of difference in some computational aspects.

As has been already mentioned, the majority of analytic approximations for the Chapman function involve the complimentary error function. For all such expressions we have used the specific rational approximations for this function due to Smith and Smith (1972)

$$\begin{aligned} {\text {erfc}}(x) \approx \left\{ \begin{array}{ll} \frac{1.0606963 + 0.55643831 x}{1.0619896 + 1.7245609 x+x^2}e^{-x^2}, &{} 0\le x\le 8, \\ \frac{0.56498823}{0.06651874 + x}e^{-x^2}, &{} 8< x\le 100. \end{array} \right. \end{aligned}$$
(39)

In this way we reduced the approximation of Chapman function due to Smith & Smith to the Fitzmaurice approximation (Fitzmaurice 1964). We note that the approximative formula (39) originates from the tables of approximations collected in Ref. Hart (1968) and yields the absolute error in double precision calculations of orders \(10^{-5}\) and \(10^{-3}\) for \(x\in [0, 8]\) and \(x\in (8,100]\), respectively.

Fig. 3
figure 3

Relative error as a function of the scale parameter for small (dashed) and large (solid) solar zenith angles. Three analytical formulas are compared: a is Eq. (36) obtained in this work, b is the Kocifaj formula (Kocifaj 1996) that shows the best performance among analytical approximations found in the literature, and c is the empirical formula of Green and Barnum (1963); Green et al. (1964)

Results of comparison and discussion

The plotted in Figs. 1, 2 and 3 relative errors (38) for the analytical approximations of Chapman function [see Table 1 and Eqs. (35), (36)] exhibit different performance. For example, the Green & Barnum empirical formula shows the pure performance for zenith angles \(\zeta \rightarrow \pi /2\) as has also been noted in Huestis (2001), see Figs. 2(a) and 3(c). The Fitmaurice formula reaches the discrepancy of several percents from the numerically obtained values at moderate vales of X, e.g. around \(1\%\) at \(X=50\), see Fig. 1(b). Due to its analytical simplicity this function gained the popularity in modeling of the atmosphere. For example, the Thermosphere Ionosphere Electrodynamics General Circulation Model (Dickinson et al. 1981) or the Gauss-Seidel limb scattering radiative transfer model (Loughman et al. 2015) use the Fitzmaurice formula and hence it also incorporates these discrepancies from the exact formula. With this respect it is worth to point that the Kocifaj formula (curve (e) in 1, 2) has an attractive property of being quite accurate and analytically simple. As one can see this formula, remaining rather unknown to atmospheric physics community, performs even better than the highly-accurate formula of Swider [curve (c)] or the approximation due to Huestis [curve (f)].

Another accurate analytic approximation of the Chapman integral is the semi-empirical formula of Titheridge introduced in Titheridge (1988) and corrected in Titheridge (2000), see curve (d). The discrepancy of this approximation from the Chapman function grows however for large values of X and when \(\zeta \rightarrow \pi /2\) as can be seen in Fig. 2.

Two solid curves shown in Figs. 1 and 2 were obtained in the present work using the established relations (15) and (27). As has been shown in the previous section the asymptotic expansion of Eq. (15), cf. curve (g), reduces to the zeroth-order term in uniform asymptotic expansion of Eq. (27), cf. curve (h). Still, being only the first term given by (35), it outperforms the analytical approximations of Fitzmaurice [curve(b)] and the first-term of asymptotic expansion of Huestis [curve (f)]. The analytical approximation (36), curve (h), shows the best performance among the analytical approximations. Oscillatory behavior of this curve arises from variation in accuracy of polynomial approximations to the mathematical function \({\text {erfc}}(x)\) and of the expression \(\sqrt{\pi /2x}(1+3/8x)\exp (-x)\) being the asymptotic expansion of Bessel function \(K_1(x)\).

In order to illustrate the dependence of the obtained approximation formula (36) on the scale parameter, we compare it with the analytical approximation of Kocifaj and Green & Barnum in Fig. 3. The curve (a) calculated with Eq. (36) performs better than the Kocifaj formula [curve (b)] or Green & Barnum formula [curve (c)] for all relevant scale parameters values in atmospheric applications. It is worth to note that in some applications (e.g., radiative transfer and radiometric sounding), where the Chapman mapping function is used as a core function inside multiple integrals, the complexity of derived analytical approximations (35), (36) will require additional computational resources and analytically simpler and accurate Kocifaj’s approximation is preferable. Finally, we remark that for small values of the scale parameter the approximation (43) of Appendix A performs better than other analytical approximations, however this case is less interesting for known application cases.

Conclusions

We have shown the relationship of the Chapman function, \({\text {Ch}}(X,\zeta )\), to several families of the incomplete Bessel functions. This allowed us to derive the accurate analytical approximation of \({\text {Ch}}(X,\zeta )\) for values of the scale parameter X and the solar zenith angle \(\zeta\) relevant for calculations of atmospheric attenuation, ionospheric production rates, optical masses, etc. for a model exponential atmosphere. For all values of X and \(\zeta\) the obtained analytical approximation provides the best accuracy among other known approximations found in the literature.

Despite the Chapman function has been derived under certain idealized assumptions for the atmosphere to be exponential, non-refractive, and spherically symmetric, its introduction allowed one to depart from the very simplified model of a plan-parallel atmosphere. In many practical situations one can split the real atmosphere into spherical layers, e.g., by studying the atmospheric refraction, or one can consider the atmospheric constituents separately, e.g., by studying the photoionization of the ionosphere. By doing this it is possible to approximate the realistic atmospheres with the set of idealized ones. In this respect the Chapman mapping integral or its analytic approximations remain a useful tool in modeling. We thus believe that the given overview of existing approximations of the Chapman function as well as the obtained new results would be of interest in the context of realistic atmospheres modeling.

Availability of data and materials

For numerical calculations used in this article we adopted and extended the original Fortran code by Huestis (2001). The calculation of special functions was performed using the algorithms according to Press et al. (1992), which were adapted for double precision calculations. The Fortran code (Fortran 90) for calculation of Chapman function and its analytic approximations in different forms is available along its Python wrapper (Python 3.8) at web address https://gitlab.com/heidima/chapmanfunction. The Fortran code compilation has been performed via the Intel Fortran Compiler.

Notes

  1. Alternatively the property

    $$K_n(x)=\frac{1}{2}[\tilde{K}_n(x/2,x/2)+\tilde{K}_{-n}(x/2,x/2)]$$

    is applied if the Terras’ representation for incomplete Bessel functions is used.

References

Download references

Acknowledgements

The author gratefully acknowledges J. Berdermann and E. Schmölter for fruitful discussions.

Funding

The work was carried out within the programmatic funding of the German Aerospace Center.

Author information

Authors and Affiliations

Authors

Contributions

DV derived the relationships with the families of the incomplete Bessel functions, proposed the new analytical approximation formulas for the Chapman integral, wrote the Fortran code and the corresponding Python wrapper for calculation of the introduced analytic approximations and prepared all plots. The author read and approved the final manuscript.

Corresponding author

Correspondence to Dmytro Vasylyev.

Ethics declarations

Competing interests

The author declares that he has no competing interests.

Appendix A

Appendix A

In this appendix we provide the analytical approximation of the Chapman function for the case \(X\le 1\). Such small values of the scale parameter are not relevant for applications in atmospheric physics and the obtained formulas serve merely for providing the complete picture on analytic approximations for the Chapman function.

The proposed approximation is based on Eq. (31) which relates the Chapman function and the incomplete Macdonald function (13) and the the incomplete Weber integral (28). The former function can be approximated as shown in Eq. (32), while for the incomplete Weber integral we use the following approximation

$$\begin{aligned} \widetilde{Q}_0\left( X\sin ^2\frac{\zeta }{2}, X\sin \zeta \right)\approx & {} e^{2 X\sin ^2\frac{\zeta }{2}}\left( 1-e^{-X\cos ^2\frac{\zeta }{2}}\right) \\&\times \exp \left\{ -\left[ 2\, \mu \left( 2X\cos ^2\frac{\zeta }{2}\right) \,\tan \frac{\zeta }{2}\right] ^{\lambda \left( 2X\cos ^2\frac{\zeta }{2}\right) }\right\} ,\nonumber \end{aligned}$$
(40)

which derivation and discussion has been performed in Ref. Vasylyev et al. (2013). Here

$$\begin{aligned} \lambda (x) = 4 x \frac{e^{-x}I_1(x)}{1-e^{-x}I_0(x)}\left\{ \ln \left[ 2\frac{1-e^{-x/2}}{1-e^{-x} I_0(x)}\right] \right\} ^{-1} \end{aligned}$$
(41)

and

$$\begin{aligned} \mu (x) = \left\{ \ln \left[ 2\frac{1-e^{-x/2}}{1-e^{-x}I_0(x)}\right] \right\} ^{1/\lambda (x)} \end{aligned}$$
(42)

are the shape and scale functions expressed in terms of the modified Bessel functions \(I_n(x)\). Substituting (40) in (31) we obtain the Chapman function approximation

$$\begin{aligned} {\text {Ch}}(X,\zeta )\approx & {} X\sin \zeta e^X\Biggl \{K_1(X\sin \zeta )+\frac{I_1(X\sin \zeta )}{I_0(X\sin \zeta )}\left[ K_0(X\sin \zeta )-K_0(X\sin \zeta , \beta )\right] \nonumber \\&-\Bigl [K_1(X\sin \zeta )+\frac{I_1(X\sin \zeta )}{I_0(X\sin \zeta )}K_0(X\sin \zeta )\Bigr ]\nonumber \\&\times \Biggl (2\Bigl (1-e^{-X\cos ^2\frac{\zeta }{2}}\Bigr )\exp \left\{ -\Bigl [2\, \mu \left( 2X\cos ^2\frac{\zeta }{2}\right) \,\tan \frac{\zeta }{2}\Bigr ]^{\lambda (2X\cos ^2\frac{\zeta }{2})}\right\} \Biggr .\nonumber \\&-\Biggr .\left[ 1-e^{-X}I_0(X\sin \zeta )\right] \Biggl ) \Biggr \}. \end{aligned}$$
(43)

Figure 4 shows the performance of the obtained approximation as a function of the scale parameter for \(X\le 1\). Despite the obtained approximation has a discrepancy of several percent with the exact numerical integral, its performance is still better for considered range of X parameter than other considered approximative formulas. We also note that the accuracy of the approximation can be improved with the procedure developed in Ref. Vasylyev et al. (2013).

Fig. 4
figure 4

Relative error as a function of the scale parameter in the asymptotic \(X\le 1\). The curve a corresponds to Eq. (36), the curve b stems from the Kocifaj result (Kocifaj 1996), the curve c is due to Green and Barnum (1963), and the curve d is obtained from Eq. (43). The cases of small (dashed) and large (solid) solar zenith angles are shown

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Vasylyev, D. Accurate analytic approximation for the Chapman grazing incidence function. Earth Planets Space 73, 112 (2021). https://doi.org/10.1186/s40623-021-01435-y

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s40623-021-01435-y

Keywords