function gb_plot99trackd(id,tstart,tstop)
% gb_plot99dtrack(id,tstart,tstop) plots the tracks
% of the 40-m deep drifters given in id for the time
% between tstart and tstop during 1999.
% 4/5/01;4/7/01

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

%load data
load gb40m99
z=zd;
clf

% convert to drifter days
tstart=yd2dd(tstart,1999);
tstop=yd2dd(tstop,1999);

% set up base map
% V=[-70 -65 39.75 43];
V=[-72 -65 38 43];
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
   % denote each day on track
   plotday=1;
   if plotday==1
      [xp,yp,tp]=get_day_xyt(zz(I,:);
      plot(xp,yp,'r+')
   end
   text(x1,y1+.1,int2str(id(n)));
   title([int2str(dd2yd(tstart)), ' - ',int2str(dd2yd(tstop))])
   axis(V)
   hold on
end

   