% This a Matlab script that calls the Summit sodar plotting
% function one day at a time.

try
    cd('z:\BAO\Tower\Programs');
    userpath('z:\BAO\Tower\Programs');
    
    dv = clock;
    edn=datenum(dv(1),dv(2),dv(3),dv(4),dv(5),dv(6));
    dv=datevec(edn-1);
    by = dv(1);
    bm = dv(2);
    bd = dv(3);
    ey = dv(1);
    em = dv(2);
    ed = dv(3);
    
    retval = SummitPLTsodar_loop_func(by,bm,bd,ey,em,ed);
    cd('z:\BAO\Tower\Programs');
    
catch ME
    dv = clock;
    fid = fopen( 'c:\matlab\logs\matlab_summit_sodar_try.log','a');
    fprintf(fid,'%4d-%02d-%02d %02d:%02d:%02d %s\n',...
        dv(1),dv(2),dv(3),dv(4),dv(5),dv(6),ME.message);
    exit
end

exit

