function gb_plot97track(id,tstart,tstop)
% gb_plot97track(id,tstart,tstop) plots the tracks
% of drifters given in id for the time between
% tstart and tstop during 1997.
% 4/1/01

% find number of drifters to be plotted
N=length(id);

%load data
load gb10mallA
clf
orient tall

% convert to 1995 yd for drifters
nyr=2;
tstart=tstart+nyr*365;
tstop=tstop+nyr*365;

% set up base map
V=[-70 -65.5 39.75 42.5];
gbmapss2(V);
aspect5(41);
hold on

% start loop
for n=1:N
   nn=find(z(:,8)==id(n));
   zz=z(nn,:);
   % find subarray
   t=zz(:,1);
   err=0.005;
   I=find(tstart-err<=t & t<=tstop+err);
   t=zz(I,1);
   x=zz(I,2);x1=zz(max(I),2);
   y=zz(I,3);y1=zz(max(I),3);
   % plot drifter
   h=plot(x,y,'b',x1,y1,'r*');set(h,'linewidth',2);
   hold on
   text(x1,y1+.1,int2str(id(n)));
   title([int2str(tstart-nyr*365), ' - ',int2str(tstop-nyr*365)])
   axis(V)
   hold on
end

   