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
% Ansmann, A., et al. (1992). "Independent measurement of extinction and backscatter profiles in cirrus clouds by using a combined Raman elastic-backscatter lidar." Applied optics 31(33): 7113-7131.
48
+
%
49
+
% HISTORY:
50
+
% - 2018-01-02: First edition by Zhenping.
51
+
% - 2018-07-24: Add the ext_mol_factor and ext_aer_factor for wavelength of 1064nm
52
+
% - 2018-09-04: Change the smoothing order. Previous way is smoothing the signal. This will create large drift at the signal ridges.
53
+
% - 2018-09-05: Keep the original smoothing order for 355, which makes the retrieving results at the far range bins quite stable.
54
+
% - 2024-11-12: Modified by HB for cinsitency in 2024
55
+
% .. Authors: - HolgerPollyNet
56
+
57
+
% check the inputs
58
+
if ~ (nargin>=9)
59
+
error('Not enough input arguments.');
60
+
end
61
+
62
+
if ~ exist('window_size', 'var')
63
+
window_size =40;
64
+
end
65
+
66
+
if (HRef(1) >= height(end)) || (HRef(end) <= height(1))
% the angstrom exponent for aerosol extinction coefficient
19
+
% window_size: integer
20
+
% window_size for smoothing the signal with sgolay filter.
21
+
% order: integer
22
+
% order of the implemented sgolay filter.
23
+
% method: char
24
+
% specify the method to calculate the slope of the signal. You can
25
+
% choose from 'moving', 'smoothing' and 'chi2'.
26
+
% measure_error: array
27
+
% measurement error for each bin.
28
+
% alpha_molecular_elastic: array
29
+
% molecular scattering coefficient at emitted wavelength in m^-1 sr^-1
30
+
% alpha_molecular_Raman: array
31
+
% molecular scattering coefficient at Raman wavelength in m^-1 sr^-1
32
+
% number_density: array
33
+
% molecular number density
34
+
% Mc_countNumber of MC iterations
35
+
% OUTPUTS:
36
+
% ext_aer: array
37
+
% aerosol extinction coefficient [m^{-1}]
38
+
%
39
+
% REFERENCES:
40
+
% https://bitbucket.org/iannis_b/lidar_processing
41
+
%
42
+
% Ansmann, A. et al. Independent measurement of extinction and backscatter profiles in cirrus clouds by using a combined Raman elastic-backscatter lidar. Applied Optics Vol. 31, Issue 33, pp. 7113-7131 (1992)
43
+
%
44
+
% HISTORY:
45
+
% - 2021-05-31: first edition by Zhenping
46
+
%
47
+
% .. Authors: - zhenping@tropos.de
48
+
49
+
% default method is movingslope
50
+
if ~ exist('method', 'var')
51
+
method ='movingslope';
52
+
end
53
+
54
+
if ~ exist('measure_error', 'var')
55
+
measure_error = zeros(size(sig));
56
+
end
57
+
58
+
temp =number_density./ (sig.*height.^2);
59
+
temp(temp<=0) =NaN;
60
+
ratio = log(temp);
61
+
62
+
if strcmpi(method, 'moving') || strcmpi(method, 'movingslope')
0 commit comments