1 Introduction

In the field of atmospheric optics, turbulence is a random change in atmospheric refractive index caused by local temperature and pressure variations. When laser is transmitted in turbulent atmosphere, due to the fluctuation of atmospheric refractive index, the laser wavefront is distorted and the coherence of the laser is disrupted. Therefore, phenomena such as random drift, expansion, distortion, and scintillation of the transmitted beam are called atmospheric turbulence effects [1, 2]. According to Kolmogorov and Tatarski’s turbulence theory, turbulence intensity is described by the atmospheric refractive index structure constant \(C_n^2\) [3, 4]. The variation characteristics of \(C_n^2\) in local areas can be obtained through long-term measurements, providing a basis for studying the effects of laser atmospheric transmission. Among many methods for measuring \(C_n^2\), optical measurement is the most commonly [5,6,7]. Among them, Differential Image Motion (DIM) LiDAR can measure atmospheric turbulence values at different detection distances. Pulse laser and range gating technology are combined in DIM LiDAR. Therefore, the imaging spot of laser guide stars at different positions can be detected. Turbulence intensity is inverted by calculating the differential motion variance of the imaging spot.

Laser guide stars are based on the principle of Rayleigh beacons. The Rayleigh beacon is formed by the atmospheric backscatter of a focused laser beam emitted by the lidar emission system at the focal point. It is the beacon of the LiDAR receiving system [8]. To measure turbulence values at different distances, it is necessary to receive backscattered signals from different positions. So, in the DIM LiDAR, distance gating technology was used to adjust the exposure delay and gate width of the Image Intensifier (ICCD) accordingly. Among them, the sampling thickness of the scattering position is determined by the gate width. The detection accuracy will be reduced due to unreasonable gate width. On the one hand, insufficient detection energy is caused by a too small sampling thickness; On the other hand, the formation of diffuse spots on the focal plane is caused by excessive sampling thickness. Therefore, it is necessary to control the gate width according to the system detection requirements.

Due to the time selective nature of distance gating technology, both distance and intensity information of the target scenery can be obtained simultaneously. It has been widely applied in fields such as target recognition, underwater vision, and 3D imaging. In 2009, Jian et al. [9] studied the relationship between time gating accuracy, time interval, and imaging quality. When the gating signal is appropriate, the influence of water scattering light noise on the distance gated laser underwater imaging system is reduced, and high-quality images are obtained. In 2013, Ge et al. [10] simulated that when the gate width is greater than the laser pulse width, the water backscattered light noise energy received by ICCD is larger and the signal-to-noise ratio(SNR) is lower. When the gate width is close to the laser pulse width at the same position, the SNR is highest. In 2015, Xu et al. [11] analyzed the impact of delay accuracy on imaging quality, and proposed the idea of precise measurement replacing precise time control. The imaging accuracy is achieved at the centimeter level in the gated slicing laser imaging trigger control system. In 2015, Rui et al. [12] analyzed the SNR of images under different gate widths. The relationship between gate width and image SNR is obtained. In laser range-gated imaging, when the gate width is increased, the SNR is reduced. In 2016, Xiaobo et al. [13] combined the principle of distance gated imaging to estimate the received energy and noise of the detector. By establishing an imaging parameter model, it is concluded that a stable and uniform target image must be obtained by comprehensively considering the effects of pulse width, detector width bandwidth, and gating distance. In 2023, Qianqian et al. [14] investigated the effects of experimental conditions such as laser output power, ICCD gate width, and distance from laser focus to sample surface on LIBS signal intensity and SNR. Among them, when the gate width is increased, the spectral signal intensity is increased. When the gate width is 5 \(\upmu\)s, the signal strength and SNR are the highest. Continuing to increase the gate width, there was no significant change in signal strength, and SNR was significantly reduced. The above research indicates that in order to achieve optimal system performance, the setting of operating parameters in distance gating technology needs to be balanced. Furthermore, it can be adaptively operated in different scenarios.

In this study, the specific requirements for distance gating gate width were analyzed based on the principle of detecting turbulence at different positions using DIM LiDAR. Field experiments were conducted using DIM LiDAR, and the effects of spot images obtained under different gate widths were analyzed. By comparing the inversion results of \(C_n^2\) obtained from spot images with those obtained from ultrasonic anemometers, the relationship between distance gate width, SNR of spot images, and \(C_n^2\) was explored. Meanwhile, further experiments were conducted to provide suitable gate widths for turbulence detection at different positions.

2 Theory

2.1 Principle of turbulence intensity detection with DIM LiDAR

The star light source in DIMM (Differential Image Motion Monitor) has been replaced by laser in DIM LiDAR. Imaging of Laser Guided Stars (LGS) is achieved through spatially separated sub-pupil telescopes. Due to the random fluctuations in the wavefront arrival angle of each pupil, image movement is generated on the focal plane. Therefore, the intensity of atmospheric turbulence can be inverted based on the moving \(\sigma ^{2}\) of the two images. The specific process is shown in Fig. 1.

Fig. 1
figure 1

The principle of detecting turbulence using DIM LiDAR

By using distance gating technology, the backscattered signal near the measured distance \(L_{i}\) is received by two sub-apertures of the DIM LiDAR. This signal appears as two light spots in the ICCD. An image set will be collected at this distance. To obtain the centroids of the two light spots in each image, three steps are required: denoising, segmentation, and centroid extraction. Then, the jitter variance \(\sigma ^{2}\) is calculated based on this. According to literature [7], the relationship between \(\sigma ^{2}\) and the atmospheric coherence length \(r_{0}\) is described as Eq. 1. Also, the horizontal \(C_n^2\) can be inverted from \(r_{0}\) according to Eq. 2.

$$\begin{aligned} & r_0=\left\{ \frac{2f^2[0.358(\lambda /D)^{1/3}-0.242(\lambda /d)^{1/3}]\lambda ^{5/3}}{\sigma ^2}\right\} ^{3/5} \end{aligned}$$
(1)
$$\begin{aligned} & C_n^2=\left[ (r_0/1.68)^{-5/3})\right] /L_ik^2 \end{aligned}$$
(2)

where f is focal length, \(\lambda\) is laser wavelength, D is distance mirror pupil diameter, d is distance between the pupil centers of a telescope mirror, and k is wave number.

Therefore, it can be inferred that the relationship between \(\sigma ^{2}\) and \(C_n^2\) can be described as Eq. 3

$$\begin{aligned} C_n^2=\frac{\sigma ^2}{0.843(f\lambda k)^2L_i(0.358D^{-1/3}-0.242d^{-1/3})} \end{aligned}$$
(3)

Based on the assumption that the atmosphere is uniform in the horizontal direction, \(C_n^2\) remains constant in that direction. Meanwhile, as indicated by Eq. 3, only \(L_{i}\) and \(\sigma ^{2}\) are variable, while the other variables are system parameters. Therefore, when \(C_n^2\) and \(L_{i}\) are not changed, \(\sigma ^{2}\) remains unchanged. In the previous text, \(\sigma ^{2}\) is the inversion of the image set collected by ICCD. Therefore, to ensure consistent inversion results, good image quality is required. The image obtained by DIM LiDAR depends on the parameters in distance gating technology. However, this article focuses on the setting of the gate width for ICCD in the context of distance gating technology.

2.2 Principle of distance gating technology

The principle of distance gating technology applied in DIM LiDAR is shown in Fig. 2. The specific implementation steps are as follows:

Fig. 2
figure 2

The principle of distance gating technology

Step1: The laser pulse is emitted by the laser at a certain repetition rate, and the trigger signal is synchronously generated.

Step2: According to the above trigger signals and Eq. 4, delay trigger signals corresponding to different \(L_{i}\) are generated. So, based on the delayed trigger signal, the backscatter signals of different \(L_{i}\) are collected by ICCD.

$$\begin{aligned} t_i={CL}_i/2, \end{aligned}$$
(4)

where \(t_{i}\) is the delay corresponding to different \(L_{i}\).

Step3: The ICCD acquisition is triggered by the rising edge of the delayed signal. By setting the gate width \(t_{p}\), the length of the collected light column, i.e. the sampling thickness \(\Delta z_{i}\) is determined.

$$\begin{aligned} \Delta z=ct_{_p}/2 \end{aligned}$$
(5)

According to literature [8], if the sampling thickness exceeds the depth of field, then the accuracy of detection will be affected. It can be seen that the backscattered signal near the detection point should be collected. The depth of field of an optical system is represented by Eq. 6.

$$\begin{aligned} \Delta =\frac{4ap^2\varepsilon }{4a^2-p^2\varepsilon ^2} \end{aligned}$$
(6)

where a is the entering pupil radius, and p is the distance between the object surface and the center of the entering pupil, \(\varepsilon\) is the maximum resolution angle.

The calculation equation for \(\varepsilon\) is described as:

$$\begin{aligned} {\varepsilon }=\frac{1.22\lambda }{d} \end{aligned}$$
(7)

As mentioned above, it can be inferred that \(\Delta z\le \Delta\). The gate width \(t_{p}\) should be set in accordance with Eq. 8.

$$\begin{aligned} t_p\le \frac{2.44\lambda aL_i^2d}{(a^2d^2-0.37L_i^2\lambda ^2)c} \end{aligned}$$
(8)

It can be seen that the limit of \(t_{p}\) is determined by the wavelength of the laser \(\lambda\), detection position \(L_{i}\), entrance pupil radius a, and the diameter of the receiving telescope pupil d. Excluding system parameters, only \(L_{i}\) is a variable. Therefore, it is necessary to explore the specific relationship between the detection positions \(L_{i}\) and \(t_{p}\).

3 System introduction

The necessity of setting the gate width \(t_{p}\) reasonably when detecting turbulence using DIM LiDAR under certain system parameter conditions has been verified from an experimental perspective in this study. A schematic diagram depicting the DIM LiDAR system is presented in Fig. 3. The system can be primarily categorized into three parts, namely laser emission, signal reception, and data acquisition and processing. Firstly, the emission is achieved using a 532 nm laser. Then, the echo light signals are received using the telescope’s pupil for signal reception. Since this study is probed along a horizontal path and the location is in the bottom atmosphere, the Mie scattering and Rayleigh scattering signals are included in the received echo signals. Finally, the spot image is captured by an ICCD camera, and \(C_n^2\) is inverted in the computer. Table 1 shows the system parameters of DIM LiDAR.

Fig. 3
figure 3

System for DIM LiDAR

Table 1 System Parameters Of The DIM LiDAR

4 Experimental analysis

4.1 Theoretical calculations

In accordance with the principle of detecting turbulence using DIM LiDAR, the setting of the distance gate width should be based on Eq. 8. The relationship between \(L_{i}\) and the maximum \(t_{p}\) is simulated, and a corresponding curve is provided. When \(L_{i}\) is within the range of 500 m to 10 km, the maximum value of \(t_{p}\) is shown in Fig. 4. It can be seen that as the detection distance \(L_{i}\) is increased, the maximum value of the gate width \(t_{p}\) is also increased. The maximum gate width \(t_{p}\) for different detection distances is given. The maximum \(t_{p}\) for \(L_{i}\) at 1 km, 2 km, 3 km, and 4 km are 90.14 ns, 360.58 ns, 811.3 ns, and 1442 ns, respectively. Moreover, according to the application principle of distance gating technology in DIM LiDAR, it is known that if the \(t_{p}\) is too small, the detection energy is insufficient. Therefore, \(t_{p}\) should be set reasonably.

Fig. 4
figure 4

The maximum gate width corresponding to the detection distance

4.2 Analysis of day and night detection experiments of DIM LiDAR

According to the calculation results in 4.1, corresponding experimental measurements were conducted using DIM LiDAR in the Shushan area of Hefei in December 2023. The purpose of this experiment is to analyze the specific effects of different gate widths at different detection positions. The experiment was conducted during both day and night under clear weather conditions, with a two-hour time interval. Detection positions \(L_{i}\) were set at intervals of 1 km, 2 km, 3 km, and 4 km. Meanwhile, at the same height, an ultrasonic anemometer was placed 1 km away from the exit laser point to measure the \(C_n^2\). Therefore, the \(C_n^2\) inverted by DIM LiDAR can be compared with it.

The \(t_{i}\) and \(t_{p}\) corresponding to different \(L_{i}\) are shown in Table 2. 400 images were collected for each parameter. The image is colored, with a size of 1024 \(\times\) 768 and a depth of 16 bits.

Table 2 Setting of \(t_{i}\) and \(t_{p}\) at different \(L_{i}\)

4.2.1 Analysis of spot images

A total of 57,600 images were collected in this experiment. To better demonstrate the impact of gate width on image quality, other factors such as background noise should be excluded. Therefore, the night spot image with low background noise was selected for display, as shown in Fig. 5a–c are the spot images with values of 30ns, 70ns, and 90ns for \(t_{p}\) when \(L_{i}\) =1 km, respectively. Figure 5d–f are the spot images with values of 120 ns, 240 ns, and 360ns for \(t_{p}\) at \(L_{i}\) =2 km, respectively. Figure 5g–i are the spot images with values of 400 ns, 600 ns, and 800ns for \(t_{p}\) at \(L_{i}\) =3 km, respectively. Figure 5j and k are the spot images with values of 800 ns, 1000 ns, and 1400 ns for \(t_{p}\) when \(L_{i}\) =4 km, respectively.

Fig. 5
figure 5

At 20:00, the comparison of the spot images acquired by the DIM LiDAR with different \(t_{p}\) at different \(L_{i}\). ac \(t_{p}\) = 30 ns, 70 ns, and 90 ns when \(L_{i}\) = 1 km, respectively; df \(t_{p}\)=120 ns, 240 ns and 360 ns when \(L_{i}\) = 2 km, respectively; gi \(t_{p}\) = 400 ns, 600 ns and 800 ns when \(L_{i}\) = 3 km, respectively; j and k \(t_{p}\) = 800 ns, 1000ns  and 1400 ns when \(L_{i}\) =  4 km, respectively

The evaluation of images is usually divided into two types, namely subjective evaluation and objective evaluation. Subjectively, it can be seen that horizontally, when \(L_{i}\) is fixed and \(t_{p}\) is increased, the brightness of the light spot in the image is increased; Vertically, when \(L_{i}\) is increased, the brightness of the spot in the image is decreased. According to Sect. 2.1, the image captured by ICCD needs to be processed to obtain the centroid of the spot, and then the turbulence intensity is inverted based on the variance of centroid jitter. If the image quality is poor, the centroid of the spot will be difficult to accurately obtain, and the inversion of \(C_n^2\) will be affected. Objectively, as there is no original image available as a reference for the images captured by ICCD, no reference image evaluation index such as SNR is selected.

$$\begin{aligned} SNR=\frac{P_{signal}}{P_{noise}} \end{aligned}$$
(9)

where \(P_{signal}\) and Pnoise are the power of the effective signal part (spot area) in the image and the power of other parts in the image, respectively.

According to Eq. 10, the effective signal s(xy) and noise signal n(xy) in the image can be distinguished.

$$\begin{aligned} {\left\{ \begin{array}{ll}s(x,y)=f(x,y),f(x,y)\ge T\\ n(x,y)=f(x,y),f(x,y)<T\end{array}\right. } \end{aligned}$$
(10)

where T is the threshold. In this study, the average brightness value of the four corners of the image was used as T.

According to reference [10], the ratio of the mean of the effective signal to the standard deviation of the noisy signal is SNR. Described as Eq. 11:

$$\begin{aligned} SNR=\frac{\frac{1}{N_s}\sum s(x,y)}{\sqrt{\frac{1}{N_n}\sum \left[ n(x,y)-\frac{1}{N_n}\sum n(x,y)\right] ^2}} \end{aligned}$$
(11)

where \(N_{s}\) is the number of effective signal pixels, and \(N_{n}\) is the number of noise signal pixels.

Fig. 6
figure 6

The SNR of spot images with different \(t_{p}\) at different \(L_{i}\). a \(L_{i}\) = 1 km, b \(L_{i}\) = 2 km, c \(L_{i}\) = 3 km and d \(L_{i}\) = 4 km

Accordingly, the mean SNR of the image set at different times and parameters is calculated, as shown in Fig. 6. Overall, when \(L_{i}\) is increased, SNR will be decreased. And \(L_{i}\) was increased by 1 km, while SNR was reduced by about 5dB. Furthermore, the curve is smoother with a smaller \(L_{i}\), while it exhibits greater jitter with a larger \(L_{i}\). It indicates that when the detection distance is far, the SNR of the image is more affected by the detection time. Meanwhile, a common feature is observed in each curve, where the highest SNR of the images is recorded between 16:40 and 18:40.

Additionally, the statistics of the mean SNR for each curve are shown in Table 3. When \(t_{p}\) is increased, SNR will be increased at different times. But the increment of SNR will be affected by the value of \(L_{i}\). If \(L_{i}\) is shorter, the SNR is more significantly affected by the increase in \(t_{p}\), and vice versa.

Therefore, both subjective and objective evaluations indicate that image quality is influenced by the setting of gate width at different detection distances.

Table 3 Average all-day SNR of different \(t_{p}\) at different \(L_{i}\)

4.2.2 Analysis of inversion results

Due to the fact that \(C_n^2\) is a constant value in the horizontal direction, the profile of \(C_n^2\) that varies over time should theoretically be consistent for different \(L_{i}\). The comparison of \(C_n^2\) retrieved by DIM LiDAR and the ultrasonic anemometer at different \(L_{i}\) and \(t_{p}\) is shown in Fig. 7.

Fig. 7
figure 7

Inversion comparison of \(C_n^2\) with different \(t_{p}\) at different \(L_{i}\), a \(L_{i}\) = 1 km, b \(L_{i}\) = 2 km, c \(L_{i}\) = 3 km and d \(L_{i}\) = 4 km

In order to compare the trend between the inverted \(C_n^2\) curves of DIM LiDAR and ultrasonic anemometer, the cosine similarity between the curves was calculated. Also, in order to compare the values between the inverted \(C_n^2\) curves of DIM LiDAR and ultrasonic anemometer, the mean absolute error (MAE) between the curves was calculated. The results are shown in Table 4.

Table 4 Comparison of \(C_n^2\) curves inverted by DIM LiDAR and ultrasonic anemometer with different \(t_{p}\) at different \(L_{i}\)

Table 4 shows that the cosine similarity between the inverted \(C_n^2\) curves of DIM LiDAR and ultrasonic anemometer is basically greater than 0.7. It can be seen that the trend of \(C_n^2\) inverted by DIM LiDAR and ultrasonic anemometer is generally consistent. Among them, when \(L_{i}\)=1 km, the curve jitter is maximum. It is more likely to reflect the changes in \(C_n^2\), which is speculated to be related to its larger SNR. Meanwhile, According to Table 4, MAE is maximum when \(t_{p}\) is minimum at the same \(L_{i}\). It can be seen that the smaller the \(t_{p}\), the more deviated the curve of \(C_n^2\) obtained by the DIM LiDAR from the ultrasonic anemometer.

According to the experimental analysis, it can be concluded that the SNR of images collected at different \(t_{p}\) values is different when \(L_{i}\) remains constant. And the specific trend of the inverted \(C_n^2\) curve is different. Meanwhile, when \(L_{i}\) is constant, the greater the similarity between the SNR curves, the greater the similarity in the \(C_n^2\) results. For example, when \(L_{i}\)=1 km, if the SNR curves of 70 ns and 90 ns are similar, then the \(C_n^2\) curve is also similar. And the same conclusion is presented in other \(L_{i}\).

4.3 Optimization experiment of gating gate width

Due to the limitation of maximum gate width and the correlation between \(t_{p}\), SNR and \(C_n^2\), it is speculated that there are different effective \(t_{p}\) for different \(L_{i}\), which can be set based on the SNR of the collected image. Therefore, through experimental methods, the reasonable setting of \(t_{p}\) at \(L_{i}\) =1, 2, 3, and 4 km was studied. Clear weather is selected for 4  h: morning, afternoon, evening, and night. When \(L_{i}\) =1, 2, 3, and 4 km, 20 photos were taken for each \(t_{p}\) and their average SNR was calculated. The results are shown in Fig. 8.

Fig. 8
figure 8

The SNR of spot images with different \(t_{p}\) at different \(L_{i}\). a \(L_{i}\) = 1 km, b \(L_{i}\) = 2 km, c \(L_{i}\) = 3 km and d \(L_{i}\) = 4 km

Overall, the SNR of all 16 curves is increased with the increase of \(t_{p}\) and no further escalation is observed after a certain juncture. And the growth rate in the first half of the curve is large, but the growth trend in the second half is gentle, especially when \(L_{i}\) =1 km, 2 km.

From the perspective of detection time, the curve can be divided into three categories: nighttime, morning and afternoon, and evening.

  1. 1.

    The black curve is obtained from evening detection. It can be seen that under the four detection distances, the trend of SNR increasing with \(t_{p}\) is the highest compared to other times. It may be that on the one hand the turbulence is weak at the moment of sunset transition, and on the other hand the detection direction is far from the direct sunlight and the background light noise is low.

  2. 2.

    The red and blue curves are obtained from the morning and afternoon detections, respectively. It can be seen that the two curves are affected by the detection distance. When \(L_{i}\) =1 km and 2 km, the curve growth trend is relatively large, while when \(L_{i}\) =3 km and 4 km, the curve growth trend is slow. And compared to the other two curves, the SNR value is smaller.

  3. 3.

    The green curve is detected in the night. Its SNR is higher than that of the morning and afternoon, considering the low background noise at night.

Therefore, detection at various times and distances adheres to the principle that the SNR of the spot image rises as the \(t_{p}\) increases, and it plateaus after reaching a certain point.

According to experiments, it can be concluded that in this DIM LiDAR detection system, When \(L_{i}\) = 1 km, 2 km, 3 km, and 4 km, \(t_{p}\) = 70 ns, 260 ns, 650 ns and 1us can be used as a more suitable gate width. The gray marked part in Fig. 8.

5 Conclusion

Through in-depth analysis of the principle of distance gating technology when using DIM LiDAR to detect turbulence, the relationship between gate width and detection distance is provided. The field experiment utilized the existing DIM LiDAR system in the laboratory. The results indicate that, at a constant detection distance, there is a gradual increase in the SNR of the image with increasing gate width, followed by a saturation point. The higher the SNR, the closer the inverted \(C_n^2\) is to the ultrasonic anemometer. Meanwhile, if the SNR is similar, the inverted \(C_n^2\) is similar. Therefore, through experiments, it was derived that the suitable gate widths for detecting 1 km, 2 km, 3 km, and 4 km in this system are 70ns, 260ns, 650ns, and 1us, respectively. The results of this study can be used for parameter optimization in detecting turbulence using DIM LiDAR, thereby achieving more accurate detection.