%  function run_final_hyIX(stat_cast_list)
%
% Allows input of station or a list of stations to LADCP
% processing. Calls control file cnt1_dwh_IX.m, then calls
% process_cast.
%       stn_num = e.g. [1:70] or [1 3 4 5 6]
%
% LMB May 2005, modified May 2006

function run_final_hyIX(stn_num);

% add matlab path to Visbeck's software (choose version)
addpath(['/Mahe/ladcp_processing/andreas/IX_2/m']);

% copy run 1 control file into set_cast_params so that process_cast can pick
% it up.
copyfile('cnt_final_hyIX.m','set_cast_params.m')

% get station number
%for i=1:size(stat_cast_list,1)
%    stncaststr = stat_cast_list(i,:)
%    process_cast(stncaststr,1);
%end

% get stncaststr from list of stn numbers
for i=1:length(stn_num)
    stncaststr = sprintf('%03d_01',stn_num(i));
    process_cast(stncaststr,1);
end
