%  1.  NAME
%
%  avg_con - Average data from contour files
%
%  2.  USAGE
%
%  avg_con
%
%  3.  DESCRIPTION
%
%  This Matlab script is a command interface for averaging data from
%  different contour files.  See Matlab help on avg_con2(3m) for more
%  information.
%
%  4.  PARAMETERS
%
%  The following parameters must be edited:
%
%     files
%        Cell array with all contour files to be averaged together.
%
%     x_grid
%        Column numbers to data containing x-axes data for common
%        regridding.
%
%     y_grid
%        Column numbers to data containing y-axes data for common
%        regridding.
%
%     output
%        File name for output data.
%
%     method
%        Method to use for regridding data. See Matlab help on interp1
%        for more information.
%
%  5.  AUTHORS
%
%  Pierre Jaccard, Geophysical Institute, University of Bergen, 1999
%

% Edit the following parameters:
%------------------------------------------------------------------

files     = { '../001/cuv_all_detided.con', '../002/cuv_all_detided.con' };
output    = 'cuv_all_detided_mean.con';
%files     = { '../001/cuv_all.con', '../002/cuv_all.con' };
%output    = 'cuv_all_mean.con';
x_grid    = 1;
y_grid    = 2;
method    = 'linear';

%------------------------------------------------------------------
% No more editing below!!!

avg_con2(files, x_grid, y_grid, output, method);







