%  1.  NAME
%
%  avg_vec - Average data from vector files
%
%  2.  USAGE
%
%  avg_vec
%
%  3.  DESCRIPTION
%
%  This is a command interface for averaging data from different vector
%  files.  See avg_vec2(3m) for more information.
%
%  4.  PARAMETERS
%
%  The following parameters must be edited:
%
%     files
%        Cell array with all vector files to be averaged together.
%
%     output
%        File name for output data.
%
%     grid_axis
%        Axis to be used for regridding data from the different files on
%        the same grid before averaging. This must be the column number
%        containing these 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/vec_all.vec', '../002/vec_all.vec' };
output    = 'vec_all_mean.vec';
grid_axis = 2;
method    = 'linear';

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

avg_vec2(files, grid_axis, output, method);







