Abstract
A method is proposed to calculate the bending error of light passing through the Earth’s atmosphere at any observation height and in the range of 0–\(90^{\circ }\) from apparent zenith. Assuming that the Earth’s atmosphere is in accordance with the spherically symmetric structure, the Earth’s atmosphere is stratified according to the constant height \(\Delta h\), and the atmospheric parameters such as temperature and pressure obtained based on NRLMSIS 2.0 are used to calculate the atmospheric refractive index at each layer. The e-index model of refractive index is obtained by nonlinear least square regression, and the gradient of refractive index at any position is obtained. Using Snell’s law applied to spherical atmosphere, the zenith distance of light at each layer is obtained. Finally, combined with the above parameters, the trapezoidal rule is used to calculate the refraction integral numerically, and the bending error of light is obtained. The feasibility and reliability of the proposed method are proved by comparing with previous studies.
Similar content being viewed by others
Introduction
As light travels through the Earth’s atmosphere, because the atmospheric vertical density decreases continuously from the bottom up, it is refracted, meaning that the trajectory of light is not a straight line, but a curve that bends toward the center of the Earth1,2. Using the atmospheric refraction properties of light, the following previous studies have been carried out. Based on the refraction angle and atmospheric refraction model with high accuracy, the apparent height with higher accuracy can be calculated, so that the accuracy and reliability of autonomous satellite navigation can be improved3. In addition, the high precision calculation for the atmospheric refraction can improve the accuracy of locating and measuring air targets by radar4 and the positioning accuracy of ground objects by the satellite imaging5. Lunar eclipses, stellar occultation observations, and exoplanet transits are also affected by atmospheric refraction to varying degrees, such as distinguishing between cloudy, clear, and hazy skies for the exoplanet atmospheres using refraction6,7. It is found that the high precision calculation of atmospheric refraction is widely used in the field of atmospheric detection, engineering technology and astronomy. Therefore, in order to obtain a more accurate starlight refraction Angle in the range of 0–90\(^{\circ }\) from apparent zenith, it is necessary to develop a new mathematical model, and adopt a more advanced semi-empirical atmospheric parameter model to provide corresponding atmospheric temperature and pressure data
In current studies to calculate atmospheric refraction, the atmosphere is often treated in two layers, one is the troposphere, which assumes that the temperature decreases at a constant value with increasing altitude, and the other layer is the stratosphere from the tropopause to a certain altitude, where the temperature is constant1,5,8,9. The simplified method of dividing the atmosphere into two layers, which is commonly used, often introduces large errors in calculating refraction angles and makes it difficult to calculate atmospheric refraction at observed altitudes above the stratosphere. By comparing the calculated values of refraction angles under various spherical atmospheric models, it is found that the difference between refraction angles becomes larger with the increase of apparent zenith distance10. Under the condition of large apparent zenith distance (75–\(90^{\circ }\)), the calculation result of atmospheric refraction angles is more uncertain8,11. In addition, in the current research, semi-empirical atmospheric parameter models such as the United States Standard Atmosphere (USSA) and COSPAR International Reference Atmosphere (CIRA) are often used to obtain atmospheric parameter information, and then obtain the calculation results of the starlight refraction Angle. However, the above semi-empirical atmospheric models have a long history and low accuracy, resulting in a large error in the calculation results12,13. At the same time, the National Centers for Environmental Prediction (NCEP) of the United States, the European Centre for Medium Range Weather Forecasts (ECMWF) and other institutions also provide the measured grid data of the Earth’s atmospheric parameters on different time scales, based on the above data, the mathematical model of starlight atmospheric refraction is also constructed, and the change law of starlight refraction Angle under different spatial and temporal coordinates under different environmental parameters is given14,15. However, this data is the average value in the grid area, and the calculation result also has great uncertainty. Therefore, in order to obtain a more accurate starlight refraction Angle in the range of 0–\(90^{\circ }\) from apparent zenith, it is necessary to develop a new mathematical model, and adopt a more advanced semi-empirical atmospheric parameter model to provide corresponding atmospheric temperature and pressure data.
In this paper, we present a method for calculating the atmospheric refraction angle for all apparent zenith distance (0–\(90^{\circ }\)) and any observed altitude. Assuming that the Earth’s atmosphere conforms to the spherically symmetric structure (Local spherical symmetry assumption, only applied to the spherical symmetry structure for the light transmission path), the atmosphere is stratified according to the constant height \(\Delta h\), and the stratified height of each atmosphere layer is obtained. Based on the NRLMSIS 2.0 model16,17 and the ideal gas law, the temperature and pressure values at the height of each layer are given, so as to obtain the atmospheric refraction index of each layer. The e-index model is used to fit the atmospheric refraction index profile, and then the refraction index gradient of each layer is obtained by the best fitting e-index model. Then, Snell’s law is used to calculate the apparent zenith distance at each layer height along the path of light. Finally, the atmospheric refraction angle is obtained by the integral of atmospheric refraction.
Calculation and modeling of ray bending angle
Observational geometry of atmospheric refraction of light. The apparent and real positions of the observed objects are marked in the figure. Bending error \(\alpha\), apparent zenith distance \(Z_0\) at the observation position, and zenith distance at the ith atmospheric layer are also shown in the figure.
The observed geometry of light atmospheric refraction is shown in Fig. 1. The apparent and real positions of the observed objects are marked in the figure. Point O is the center of the Earth. The red dot represents the observation position, the distance from the surface is \({h_0}\), and \({h_\textrm{T}}\) represents the height range where atmospheric refraction occurs, the value is set as 200 km in this paper, that is, the refractive index is always 1 above 200 km. \(Z_0\) is the apparent zenith distance at the observation position, and \(Z_i\) is the zenith distance at the path of light propagation at the ith atmospheric layer. \(\alpha\) is the bending error of the light, which is the refraction angle we want to calculate. It is the angle between the tangent line at the observed position and the tangent line at the target position as the light travels through the atmosphere, as shown in Fig. 1. The bending error of light passing through the atmosphere is generally calculated by the refraction integral, as shown in the following Eq. (1),
where the lower limit of integration 1 represents the refractive index outside the atmosphere, the upper limit of integration \({n_0}\) represents the refractive index at the observation position, and Z is the zenith distance. Equation (1) has a deficiency, that is, when Z approaches \(90^{\circ }\), the integrand is infinite, which makes the result of integration difficult to calculate. We refer to the operation in reference8 to get the deformed form of Eq. (1), which avoids the problem of \(\textrm{tan} Z\) approaching infinity by eliminating Z in the integrand,
where \(Z_0\) is the apparent zenith distance at the observation position, r is the distance from the point on the path of light to the center of the Earth, n is the refractive index of the atmosphere, and \(\frac{dn}{dr}\) is the refractive index gradient. Equation (2) is numerically calculated by the trapezoidal rule, as follows,
where \(f_i = \frac{r_i \frac{dn_i}{dr_i}}{n_i+r_i \frac{dn_i}{dr_i}}\), i represents the ith atmospheric layer, and its values are 1, 2, 3... Num-1, where \(Num = \frac{h_{\textrm{T}} - h_{0}}{\Delta h}\). In this paper, \(\Delta h\) as the constant height of two adjacent atmospheric layers is taken as 0.1 km. The distance \(r_i\) from the ith layer to the center of the earth is \(R + h_0+ i\cdot {\Delta h}\), where R is the radius of the Earth. \(n_i\) is the atmospheric refractive index at the ith atmospheric layer, which is calculated by the following equation18 in this paper,
where \(m=\frac{1}{273.16}\), t, P, \(P_{H_{2}O}\) represents atmospheric temperature, pressure and vapour pressure, and the unit is \(^\circ {\textrm{C}}\), Pa, Pa respectively, \(n_g = 1+(2876.04 + \frac{3\cdot 16.288}{\lambda ^2}+\frac{5\cdot 0.136}{\lambda ^4})\cdot 10^{-7}\), where \(\lambda\) is wavelength, and the unit is \(\mu\)m. It is found that the calculation of refractive index is related to atmospheric parameters such as temperature, pressure and water vapor pressure. The contribution of water vapor pressure to atmospheric refraction is too small to be considered in this paper. The NRLMSIS 2.0 model is used to calculate the temperature and total mass density at each layer height of the atmosphere, and then the atmospheric pressure at each layer height of the atmosphere is given by combining with the ideal gas law. The profile of atmospheric temperature and pressure within the altitude range of 0–200 km calculated by NRLMSIS 2.0 is shown in Fig. 2. Panel (a) and (b) show the atmospheric temperature profile and pressure profile in the altitude range of 0–200 km based on the NRLMSIS 2.0 model respectively. Thus, the atmospheric refractive index \(n_i\) of each atmospheric layer can be calculated based on the temperature and pressure profiles in Fig. 2 and equation (4).
In addition, in order to obtain the bending error \(\alpha\), it is also necessary to solve the zenith distance and refractive index gradient at each layer of the light’s propagation path in the atmosphere. Based on Snell’s law applied to spherically symmetric atmospheres, the zenith distance of light in each atmospheric layer can be obtained as follows,
where \(n_0\) is the refractive index at the observed position, \(r_0\) is the distance from the observed position to the center of the Earth, \(Z_0\) is the apparent zenith distance from the observed position, \(n_i\) is the refractive index at the ith layer, \(r_i\) is the distance from the ith layer to the center of the Earth, \(Z_i\) is the zenith distance of the light at the ith atmospheric layer.
The e-index model is used to fit the refractive index profile based on the NRLMSIS 2.0 model, and the relation between refractive index and geocentric distance is obtained. The specific form of e-index model is as follows,
where \(N_0\) is the refractivity at the observation position, and the relation between refractivity and refractive index is \(N_0 = (n_0 - 1)\cdot 10^{6} (\textrm{ppm})\), \(\beta\) is an unknown parameter, which is obtained by fitting. In this paper, the nonlinear least square fitting method is used to solve the unknown parameter \(\beta\), and the specific realization uses the nlinfit function of MATLAB.
Panel (a) shows the comparison between the refractivity based on NRLMSIS 2.0 and the best-fitting e-index model in the altitude range of 0–200 km. Panel (b) shows the comparison between the refractivity based on NRLMSIS 2.0 and the best-fitting e-index model in the altitude range of 30–200 km. Panel (c) shows the comparison between the refractivity based on NRLMSIS 2.0 and the best-fitting e-index model in the altitude range of 60–200 km.
Discussion
Previous studies usually divide the Earth’s atmosphere into troposphere and stratosphere. The temperature of the troposphere decreases with height according to a certain gradient, while the temperature of the stratosphere remains constant. The pressure is written in a form related to height, so as to calculate the refractive index and give the refractive index gradient8,9,19. In this paper, the values of the refractive index gradient \(\frac{dn_i}{dr_i}\) at each atmospheric layer in Eq. (3) are given by the fitted e-index model. Panel (a), (b) and (c) in Fig. 3 show the comparison of refractivity based on NRLMSIS 2.0 and the best-fitting e-index model at the observed altitude of sea level, 30 km and 60 km from the surface respectively. The best fitting values of \(\beta\) are − 1.1078\(\times 10^{-04}\), − 1.5056\(\times 10^{-04}\), − 1.3823\(\times 10^{-04}\), respectively. NRLMSIS 2.0, launched in 2020, is an upgraded version of NRLMSISE-00, which can output the temperature, total mass density and number density profile of atmospheric components from sea level to the Earth’s thermosphere. The model can output atmospheric parameter values with high accuracy, and the atmospheric parameter values are in good agreement with the measured results of other means20,21,22. The input parameters of the NRLMSIS 2.0 model are as follows: the date and time are 2022-12-07T12:00:00, the geographical latitude and longitude of the observation target source are (\(22^{\circ }\) E, \(6^{\circ }\) N), the solar activity index F107 is 60 sfu, and the geomagnetic activity index Ap is 10 nT.
According to the input parameters of the NRLMSIS 2.0 model above, the optical bending errors when the apparent zenith distance is within the range of 10–\(90^{\circ }\) and the observed height \(h_0\) is 0, 30 km and 60 km are calculated based on Eq. (3), as shown in Table 1. It is found that the bending error of light increases with the increase of the apparent zenith distance, and the bending error increases faster when the apparent zenith distance is close to \(90^{\circ }\). At the same time, it is found that the bending error of light decreases with the increase of observation height, because the higher the observation height, the thinner the atmospheric concentration, the shorter the propagation distance of light in the atmosphere.
Tables 2 and 3 show the comparisons between Hohenkerk’s calculation results8 and those of the proposed method. Table 2 is the comparison of the bending errors under the condition of large apparent zenith distance, and Table 3 is mainly for the condition of zenith distance less than \(70^{\circ }\). It is found that although there is a difference between the two results, the difference does not mean that the proposed method is not feasible. The maximum difference between the two results is 33.79 arcseconds when the zenith distance is \(90^{\circ }\), and the minimum difference is 0.22 arcseconds when the zenith distance is \(10^{\circ }\). The difference between the two results is caused by the systematic error of the method itself. In addition, the input parameters are not completely consistent, such as temperature and pressure. But it also shows the feasibility and reliability of the method proposed in this paper to calculate the optical bending error.
The above results are all calculated when \(h_{\textrm{T}}\), which is the height of refraction, is 200 km. In order to verify the rationality of this value, the bending error is calculated when \(h_{\textrm{T}}\)=300 km, as shown in Table 4. It is found that even at the sea level when the apparent zenith distance is \(90^{\circ }\), the difference between the calculated bending error of \(h_{\textrm{T}}\)=200 km and \(h_{\textrm{T}}\)=300 km is only 0.00072 arc seconds. In Table 4, the minor discrepancies between the results for \(h_{\textrm{T}}\) = 200 km and \(h_{\textrm{T}}\) = 300 km (e.g.a difference of 0.00072 arc seconds at \(Z_0\)= \(90^{\circ }\)) are due to numerical precision limitations in the computational process, such as the finite step size (\(\Delta h\)=0.1 km) used in the trapezoidal integration and rounding errors. These differences are negligible (on the order of \(10^{-4}\) arc seconds) and do not affect the physical validity of the assumption that \(h_T\) = 200 km is sufficient for accurate calculations. Therefore, it is reasonable to assume that there is no atmospheric refraction when the altitude is above 200 km.
Conclusions
We present a new method for calculating the bending error of light rays for all zenith distance and any observation height. Assuming that the Earth’s atmosphere conforms to the spherical symmetric structure, based on the atmospheric parameters such as temperature and pressure provided by the NRLMSIS 2.0 model, the refractive index at each layer height of the atmosphere is given. The refractive index profile based on NRLMSIS 2.0 is fitted by nonlinear least squares algorithm, and the best fitting e-index model is obtained, so that the refractive index gradient at each atmospheric layer height is obtained. According to Snell’s law applied to spherically symmetric atmosphere, the zenith distance of light in each atmosphere is obtained. Finally, the bending error of light rays passing through the Earth’s atmosphere is obtained by numerical calculation of the deformation form of atmospheric refraction integral by trapezoidal rule. The bending errors of \(h_T\)=200 km and \(h_T\)=300 km are calculated respectively. It is found that even when \(Z_0\)=\(90^{\circ }\) and \(h_0\)=0, the difference between them is approximately \(10^{-4}\) arcseconds, indicating that it is reasonable to assume \(h_T\)=200 km. This method can not only calculate the bending error of light in the range of 0–\(90^{\circ }\) from apparent zenith, but also the bending error of light for any observation height. The feasibility and reliability of the proposed method are proved by comparing with the results of previous studies.
Data availability
The data that support the findings of this study are available from the corresponding author on reasonable request.
References
Ye, J., He, H., Lin, X., Zhang, L. & Qiang, Y. An accurate calculation of the atmospheric refraction error of optical remote sensing images based on the fine-layered light vector method. IEEE J. Sel. Top. Appl. Earth Observ. Remote Sens. 15, 1–1. https://doi.org/10.1109/JSTARS.2022.3143883 (2022).
Stuhl, B. K. Atmospheric refraction corrections in ground-to-satellite optical time transfer. Opt. Express 29, 13706–13714. https://doi.org/10.1364/OE.421620 (2021).
Shehaj, E. et al. Global navigation satellite system (GNSS) radio occultation climatologies mapped by machine learning and Bayesian interpolation. Atmos. Meas. Tech. 18, 57–72. https://doi.org/10.5194/amt-18-57-2025 (2025).
Bronfman, I., Ben-Shimol, Y. & Blaunstein, N. Effects of tropospheric turbulence on radio signal data passing atmospheric communication links. Radio Sci. 59, e2023RS007895 (2024).
Wang, Y., Zhu, Y., Wang, M., Jin, S. & Rao, Q. Atmospheric refraction calibration of geometric positioning for optical remote sensing satellite. IEEE Geosci. Remote Sens. Lett. 17, 2130–2134. https://doi.org/10.1109/LGRS.2019.2963626 (2020).
Bétrémieux, Y. & Kaltenegger, L. Refraction in planetary atmospheres: improved analytical expressions and comparison with a new ray-tracing algorithm. Mon. Not. R. Astron. Soc. 451, 1268–1283. https://doi.org/10.1093/mnras/stv1078 (2015).
Misra, A. K. & Meadows, V. S. Discriminating between cloudy, hazy, and clear sky exoplanets using refraction. Astrophys. J. Lett. 795, L14. https://doi.org/10.1088/2041-8205/795/1/L14 (2014).
Hohenkerk, C. & Sinclair, A. The computation of angular atmospheric refraction at large zenith angles, nao tech. Tech. Rep., Note 63, HM Nautical Almanac Office, Royal Greenwhich Observatory, Greenwich (1985).
Nauenberg, M. Atmospheric refraction predictions based on actual atmospheric pressure and temperature data. Publ. Astron. Soc. Pac. 129, 044503. https://doi.org/10.1088/1538-3873/aa5b16 (2017).
Xie, C., Jiang, J., Yang, J. & Ma, Y. Simultaneous estimation of respective observation refraction and terrestrial star sensor attitude error. IEEE Trans. Instrum. Meas. 72, 1–12. https://doi.org/10.1109/TIM.2023.3329093 (2023).
Ma, B., Jiang, J., Yang, J. & Ma, Y. A multiparameter alternative optimization atmospheric refraction correction method for star sensors with large-zenith-distance starlight. IEEE Sens. J. 24, 27541–27552. https://doi.org/10.1109/JSEN.2024.3427327 (2024).
Cegla, A. et al. Gnss signal ray-tracing algorithm for the simulation of satellite-to-satellite excess phase in the neutral atmosphere. J. Geodesy. 98. https://doi.org/10.1007/s00190-024-01847-0 (2024).
Wang, Z. & Jiang, J. Refraction surface-based stellar atmospheric refraction correction and error estimation for terrestrial star tracker. IEEE Sens. J. 22, 1–1. https://doi.org/10.1109/JSEN.2022.3164661 (2022).
Li, Y. et al. Optical method for measuring chromatic dispersion angles of the underlying surface based on the differential of detector channels. Opt. Lasers Eng. 186, 108848. https://doi.org/10.1016/j.optlaseng.2025.108848 (2025).
Shao, X. et al. Characterizing the tropospheric water vapor spatial variation and trend using 2007–2018 cosmic radio occultation and ecmwf reanalysis data. Atmos. Chem. Phys. 23, 14187–14218. https://doi.org/10.5194/acp-23-14187-2023 (2023).
Emmert, J. T. et al. Nrlmsis 2.0: A whole-atmosphere empirical model of temperature and neutral species densities. Earth Space Sci. 8, e2020EA001321 (2021).
Licata, R. J., Mehta, P. M., Weimer, D. R., Tobiska, W. K. & Yoshii, J. Msis-uq: Calibrated and enhanced nrlmsis 2.0 model with uncertainty quantification. Space Weather. 20, e2022SW003267. https://doi.org/10.1029/2022SW003267 (2022). E2022SW003267 2022SW003267. https://agupubs.onlinelibrary.wiley.com/doi/pdf/10.1029/2022SW003267.
Barrell, H. & Sears, J., Junr. The refraction and dispersion of air and dispersion of air for the visible spectrum. Philos. Trans. R. Soc. Lond. Ser. A Math. Phys. Sci. 238, 1–64 (1939).
Wallace, J. M. & Hobbs, P. V. Atmospheric Science: An Introductory Survey Vol. 92 (Elsevier, 2006).
Weimer, D. R. et al. Comparison of a neutral density model with the set hasdm density database. Space Weather 19, e2021SW002888 (2021).
Xue, W.-C. et al. Neutral atmospheric density measurement using insight-hxmt data by the earth occultation technique. Astrophys. J. Suppl. Ser. 264, 5 (2022).
Park, J. et al. Exospheric temperature measured by nasa-gold under low solar activity: Comparison with other data sets. J. Geophys. Res. Space Physics 127, e2021JA030041 (2022).
Acknowledgements
We acknowledge the financial support from project ZR2024QA229 supported by Shandong Provincial Natural Science Foundation, and the Jining University 2023 “100 Outstanding Talents” support program cultivation project (2023ZYRC34).
Funding
This work has been supported by project ZR2024QA229 supported by Shandong Provincial Natural Science Foundation, and the Jining University 2023 “100 Outstanding Talents” support program cultivation project (2023ZYRC34).
Author information
Authors and Affiliations
Contributions
Conceptualization, D.Y.; methodology, D.Y.,and Y.W.; investigation, Y.W., Z.H., X.L.; writing-–original draft, D.Y.;funding acquisition, D.Y.; supervision, D.Y.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, 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 you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. 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-nc-nd/4.0/.
About this article
Cite this article
Yu, D., Wang, Y., Huang, Z. et al. A new method for correcting the refraction angle of starlight under the conditions of 0–\(90^{\circ }\) zenith distance and 0–200 km observation height. Sci Rep 15, 36209 (2025). https://doi.org/10.1038/s41598-025-20261-w
Received:
Accepted:
Published:
Version of record:
DOI: https://doi.org/10.1038/s41598-025-20261-w





