[go: up one dir, main page]

Menu

[ee52ad]: / init / init_GUP.m  Maximize  Restore  History

Download this file

74 lines (63 with data), 2.5 kB

 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
% init_GUP.m: Main program to find lag profile groups and calculate ambiguity functions
% GUISDAP v.1.60 96-05-27 Copyright Asko Huuskonen and Markku Lehtinen
%
% Main program to find lag profile groups and calculate ambiguity functions
% Script and functions called:
% load_GUPvar : load GUISDAP experiment definition variables from a file
% read_specpar: defines the scale parameters and spectral grid
% findlpg : lag profile groups are formed here
% find_vcgroups : similar virtual channels are grouped together
% find_calibrations : associates lpg's with calibration and background lpg
% ambcalc : vc_Aenv vc_Ap vc_Apenv matrices formed
% lpgwrcalc : calculation of the range ambiguity functions
% lpgwomcalc : calculation of the reduced spectral ambiguity functions
% save_toinitfile : saves the variables to a file
%
% See also: load_GUPvar read_specpar nat_const constants lpg_tex save_toinitfile
%
% See also: findlpg find_vcgroups find_calibrations ambcalc lpgwrcalc lpgwomcalc
clf, hold off
glob_GUP
% Chdir to the experiment directory, store the present path as a return address
original_path=pwd;
fprintf('\n\nChdir to the experiment directory\n')
cd(canon(path_expr))
nat_const
if exist('N_rcprog')~=1, N_rcprog=1; end
for d_rcprog=1:N_rcprog
Stime=clock;
if N_rcprog>1, apustr=['_',int2str(d_rcprog)]; else apustr=[]; end
load_GUPvar
read_specpar
constants
findlpg
find_vcgroups
find_calibrations
ambcalc,
if all(p_XMITloc==p_RECloc) % Monostatic case
lpgwrcalc,
lpgwomcalc,
else
disp([' Bistatic measurement:'])
% Assume that the scattering volume is always completely filled
% vc_Aenv=ones(600,length(vc_ch)); % For unit length
% fir=lp_fir; lp_fir=abs(lp_fir);
% lpgwomcalc,
% lp_fir=fir;vc_Aenv=zeros(size(vc_env));
% vc_Aenv=zeros(size(vc_env));
% New for gup-1.70
lpgwrcalc,
lpgwomcalc,
end
plot(p_om,real(lpg_wom)), drawnow
lpg_tex
fprintf(' Time used in initialisation:%8.2f min\n',etime(clock,Stime)/60)
save_toinitfile
fprintf('Radar controller program %g ready\n',d_rcprog)
end
%fprintf(['\nChdir back to the original directory ', original_path,'\n'])
%cd(original_path)
fprintf('\n*****************************************************\n')
fprintf('*\n*\n* Execute plot_wr to see the range ambiguity functions\n')
fprintf('*\n*\n******************************************************\n')
clear original_path Stime d_rcprog