forked from sgarrettroe/data_analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstruct2dPP.m
48 lines (47 loc) · 1.15 KB
/
construct2dPP.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
function s=construct2dPP(varargin)
switch nargin
case 0
s = struct('freq',[],...
'time',[],...
't2',[],...
't3',0,...
'w1',[],...
'w3',[],...
'R',[],...
'PP',[],...
...% 'R2',[],...
...%'hene_x',[],...
...%'hene_y',[],...
'igram',[],...
'phase',0,...
't0_bin',[],...
't_bin_shift',0,...
'PP_noise',[],...
...%'R2_noise',[],...
'basename',[],...
'undersampling',0,...
'centerfreq',[],...
'resolution',[],...
'zeropad',[],...
'fft_type','sgrsfft',...
'time_units','fs',...
'freq_units','wavenumbers',...
'spec_calib',[],...
'pump_probe',[],...
'pump_probe_freq',[],...
'comment',[],...
'time_stamp',[],...
'PARAMS',[],...
'noise',[],...
'background',[],...
'apod',struct('name',[],'params',[]),...
'polarization', '',...
'waveplate_angle', [],...
'polarizer_angle', []);
case 1
if isa(varargin{1},'struct')
s = varargin{1};
else
error('Construct2dPP wrong argument type');
end
end