You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
% bg_t, signal_x, bg_x, time, polCaliPAngStartTime,
11
+
% polCaliPAngStopTime, polCaliNAngStartTime,
12
+
% polCaliNAngStopTime, K, caliHIndxRange,
13
+
% SNRmin, sigMax, rel_std_dplus, rel_std_dminus,
14
+
% segmentLen, smoothWin, flagShowResults)
15
+
%
16
+
% INPUTS:
17
+
% signal_t: matrix
18
+
% background-removed photon count signal at total channel.
19
+
% (nBins * nProfiles)
20
+
% bg_t: matrix
21
+
% background at total channel. (nBins * nProfiles)
22
+
% signal_x: matrix
23
+
% background-removed photon count signal at cross channel.
24
+
% (nBins * nProfiles)
25
+
% bg_x: matrix
26
+
% background at cross channel. (nBins * nProfiles)
27
+
% time: array
28
+
% datenum array represents the measurement time of each profile.
29
+
% polCaliPAngStartTime: array
30
+
% datenum array represents the start time that the polarizer
31
+
% rotates to the positive angle.
32
+
% polCaliPAngStopTime: array
33
+
% datenum array represents the stop time that the polarizer
34
+
% rotates to the positive angle.
35
+
% polCaliNAngStartTime array
36
+
% datenum array represents the start time that the polarizer
37
+
% rotates to the negative angle.
38
+
% polCaliNAngStopTime: array
39
+
% datenum array represents the end time that the polarizer
40
+
% rotates to the negative angle.
41
+
% K: float
42
+
% K parameter from GHK to correct the calibration.
43
+
% caliHIndxRange: 2-element array
44
+
% range of height indexes at which the signal can be used for
45
+
% polarization calibration.
46
+
% SNRmin: array
47
+
% minimum SNR for calibration.
48
+
% sigMax: array
49
+
% maximum signal that could be used in the calibration to prevent
50
+
% pulse pileup effects. (Photon Count)
51
+
% rel_std_dplus: float
52
+
% maximum relative uncertainty of dplus that is allowed.
53
+
% rel_std_dplus: float
54
+
% maximum relative uncertainty of dminus that is allowed.
55
+
% segmentLen: integer
56
+
% segement length for testing the variability of the calibration results
57
+
% to prevent of cloud contamintaion.
58
+
% smoothWin: integer
59
+
% width of the sliding window for smoothing the signal.
60
+
% flagShowResults: logical
61
+
% flag to control whether to save the intermediate results.
62
+
%
63
+
% OUTPUTS:
64
+
% polCaliEta: array
65
+
% eta from polarization calibration.
66
+
% polCaliEtaStd: array
67
+
% uncertainty of eta from polarizatrion calibration.
68
+
% polCaliStartTime: array
69
+
% start time for each successful calibration.
70
+
% polCaliStopTime: array
71
+
% stop time for each successful calibration.
72
+
% cali_status: integer
73
+
% 1 if calibration is successfull, 0 otherwise.
74
+
% globalAttri: struct
75
+
% all the information about the depol calibration.
76
+
%
77
+
% REFERENCE:
78
+
% 1. Freudenthaler, V.: About the effects of polarising optics on lidar signals and the Delta90° calibration, Atmos. Meas. Tech., 9, 4181-4255, 10.5194/amt-9-4181-2016, 2016.
79
+
%
80
+
% HISTORY:
81
+
% - 2018-07-25: First edition by Zhenping.
82
+
% - 2019-06-08: If no depol cali, return empty array.
83
+
% - 2019-09-06: Remove the part to replace the bins of low SNR with NaN, because it will lead to bias when doing smoothing.
84
+
% - 2024-08-27: Transfrom to GHK parameters using only eta and not V* (polCaliFac) any more
85
+
% - 2024-10-02: Add calibration status variable to output.
0 commit comments