[go: up one dir, main page]

Menu

[0713af]: / anal / load_initfile.m  Maximize  Restore  History

Download this file

48 lines (45 with data), 1.4 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
% 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 exist('p_RECloc','var') & ~isempty(p_RECloc)
t_RECloc=p_RECloc;
end
if name_site=='K' | name_site=='S';
temp=[path_expr name_expr 'R'];
else
temp=[path_expr name_expr name_site];
end
if exist('d_rcprog','var')
initfile=[temp '_' int2str(d_rcprog) 'init'];
initfil=canon(initfile,0);
end
if ~exist('initfil','var') | ~exist(initfil,'file')
initfile=[temp 'init'];
initfil=canon(initfile,0);
end
if exist(initfil,'file')
disp(initfile)
load(initfil)
else
error(['File ' initfile '.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 temp initfile initfil