%get all the cdf group names for each moored location
%
do_names2

%winter 90-91 near-surface
start=[1990 11 1 1 0 0];
stop=[1991 3 1  0 0 0];
%
%  each one of the cdf_groups is a text matrix containing the 
%  names of the cdf files that make up this group
%
cdf_groups=['broad_surf'
            'lnb_surf  '
            'scit_surf '
            'u2_surf   '
            'mano_surf '
            'u6_surf   '
            'u3_surf   '
            'u7_surf   '
            'race_surf '];
clear w
[m,n]=size(cdf_groups);
%
% merge the files of each group together
%
for i=1:m
  group=eval(cdf_groups(i,:));
  [w(:,i),jd]=merge(group,start,stop);
  cdf_names(i,:)=group(1,:);
end
ll=getll(cdf_names);  %get lon lat
%
% wind
cdfwind='logantau-a.cdf';
wind_str=getwind(cdfwind,start,stop);
wind_ll=getll(cdfwind);  %get lon lat
%
% runoff
cdfrun='runoff.cdf';
getrunoff(cdfrun,start,stop);
%run_ll=getll(cdfrun);
run_ll=[-70.8359 42.7993];   % make Merrimack river lon lat closer to mouth 

