[go: up one dir, main page]

Menu

[ce0c76]: / anal / load_initfile.m  Maximize  Restore  History

Download this file

39 lines (36 with data), 1.3 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
% load_initfile.m: loads the ambiguity functions etc. into the workspace for analysis
% GUISDAP v.1.60 96-05-27 Copyright Asko Huuskonen and Markku Lehtinen
%
% The script assumed that variables name_expr and name_site exist in the workspace
% The script contains reference to EISCAT remote sites. However, the script works
% without modifications for other radars as long as name_site is different from K and S
%
% See also: path_expr save_toinitfile
%
clear vcg_Aenv
if ~isempty(p_RECloc), t_RECloc=p_RECloc; end
temp=[path_expr name_expr name_site];
if name_site=='K' | name_site=='S';
temp=[path_expr name_expr 'R'];
end
if exist('d_rcprog')==1, rcp=d_rcprog; else, rcp=0; end
if exist(canon([temp '_' int2str(rcp) 'init.mat'],0))==2
load(canon([temp '_' int2str(rcp) 'init']))
elseif exist(canon([temp 'init.mat'],0))==2
load(canon([temp 'init']))
else
error(['File ' temp 'init.mat not found'])
end
if GUP_iniver<1.52
error(sprintf('Files produced by GUP vs %.2f not usable: Reinitialise!',GUP_iniver))
end
if exist('vcg_Aenv')
vc_Aenv=vcg_Aenv(:,vc_group);
vc_Ap=vcg_Ap(:,vc_group);
vc_Apenv=vcg_Apenv(:,vc_group);
vc_penv=vcg_penv(:,vc_group);
vc_penvabs=vcg_penvabs(:,vc_group);
clear vcg_Aenv vcg_Ap vcg_Apenv vcg_penv vcg_penvabs
end
if exist('t_RECloc'), p_RECloc=t_RECloc; clear t_RECloc, end
clear rcp temp