% 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');
    
    bdn = datenum( 2010, 11, 17, 0, 0, 0);
    edn = datenum( 2010, 11, 17, 0, 0, 0);
    
    for idn=bdn:edn        
        dv=datevec(idn);
        retval = SummitPLTsodar_loop_func(dv(1),dv(2),dv(3),dv(1),dv(2),dv(3));
    end
    
    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

