 jdn=reshape([jd0g'*ones(1,length(depth))]',length(depth)*length(lo),1);
  depthn=reshape(depth'*ones(1,length(jd0g)),length(depth)*length(lo),1);
%yadcp=[lon lan   depthn bdn uan van uan van jdn];

tt=[125.25 125.8; 125.9 126.15; 126.36 126.6; 126.89 127.166; 127.43 127.542; 127.76 127.854 ];
k=0;
for i=[1 3 4 5 6 7];
  k=k+1;
  disp(['Finding deployment #',num2str(i)]);
  id=find(jdn>=tt(k,1)&jdn<=tt(k,2));
  disp(['Saving deployment #',num2str(i)]);
  yadcp=[lon(id) lan(id)   depthn(id) bdn(id) uan(id) van(id) uan(id) van(id) jdn(id)  wan(id)];
  eval(['save /data5/jmanning/adcp/al9805/adcp',num2str(i),'tll yadcp']);
  disp('done');
end;  