% get_AO
%
% alphaomega data on drive M:
%
imet_1=[]; imet_2=[]; imet_3=[]; imet_4=[];

lcmd=sprintf('load(''%s/im_1stor.mat'')',argosdir);
eval(lcmd)
lcmd=sprintf('load(''%s/im_2stor.mat'')',argosdir);
eval(lcmd)

% imet 3 & 4 exist, but are length(1)
% if exist( [argosdir '\im_3stor.mat'],'file')
%     lcmd=sprintf('load(''%s/im_3stor.mat'')',argosdir);
%     eval(lcmd)
% end
% if exist( [argosdir '\im_4stor.mat'] ,'file')
%     lcmd=sprintf('load(''%s/im_4stor.mat'')',argosdir);
%     eval(lcmd)
% end

% ao_to_variables creates structs sys
% if passed array imet_N exists
%fprintf('sys1 ');
[sys1]=AO_to_variables(imet_1,minx,maxx);
if isstruct(sys1)
    sys1.mday=sys1.yday + day1;
end

%sys1=struct_gap_nan(sys1,3);

%fprintf('sys2 ');
[sys2]=AO_to_variables(imet_2,minx,maxx);
if isstruct(sys1)
    sys2.mday=sys2.yday + day1;
end
%sys2=struct_gap_nan(sys2,3);

% fprintf('sys3 ');
% [sys3]=AO_to_variables(imet_3,minx,maxx);
% if isstruct(sys3)
%     sys3.mday=sys3.yday + day1;
% end
% 
% fprintf('sys4 ');
% [sys4]=AO_to_variables(imet_4,minx,maxx);
% if isstruct(sys4)
%     sys2.mday=sys4.yday + day1;
% end

