%dicky.m

%load /home/allison/w9709b/pos_btm3
%load /home/allison/w9709b/tow32.pos
%load /home/allison/w9709b/recovery
%load /home/allison/w9709b/XCP.pos
%load /home/allison/w9709b/CTD.pos
load /home/allison/w9709b/AVP.pos

%plat=CTD(:,2) + CTD(:,3)/60;
%plon=-(CTD(:,4) + CTD(:,5)/60);

%plat=XCP(:,2) + XCP(:,3)/60;
%plon=-(XCP(:,4) + XCP(:,5)/60);

plat=AVP(:,2) + AVP(:,3)/60;
plon=-(AVP(:,4) + AVP(:,5)/60);

figure

for i = 1:length(AVP)
	txt=sprintf('%03d', AVP(i,1))
	text(plon(i),plat(i), txt)
end

%plot(plon,plat,'+')
%plot(-XCP(:,5),XCP(:,3),'+') 
%plot(-CTD(:,5),CTD(:,3),'+') 
%plot(-tow32(:,5),tow32(:,3),'+') 
%x=recovery(:,1);
%y=recovery(:,2);
%plot(x,y,x,y,'ro')
%hist(y)

hold on;
%plot(-tow32(:,5),tow32(:,3),'-')
%plot(-tow32(2:12,5),tow32(2:12,3),'g')
%plot(-tow32(15:26,5),tow32(15:26,3),'r')
%plot(-tow32(29:39,5),tow32(29:39,3),'b')
%plot(-tow32(42:52,5),tow32(42:52,3),'c')
%axis ij
grid on
%median (recovery(:,2))
%title('Bathymetry across Mendocino Ridge, 7 Oct 97, Lon 127 40 W')

%title('Recovery times - Mendocino')

%title('TTM3 tow32 box 1,2,3,4')
%title('CTD locations - W9709b')
%title('XCP locations - W9709b')
title('AVP locations - W9709b')

ylabel('Latitude - Decimal degrees')
%ylabel('Time')
%ylabel('Frequency')
%xlabel('Minutes')
%xlabel('Drop Number')
xlabel('Longitude - Decimal degrees')

%range = [-128.4 -126.6 39.5 41.5];
%range = [-128.4 -126.6 39.5 40.5];
%range = [-128.4 -126.6 40.5 41.5];
%range = [-127.635 -127.631 39.5 41.5];
range = [-127.636 -127.630 39.5 41.5];

hold on;
%plot(-38,35,'d','MarkerSize',10)
%text(-37.9,35,'S47')
%axis([35 36 37 38])
%orient landscape
%print
axis(range);

%datarat = cos(40.5*pi/180);
%axisrat = (abs(range(2)-range(1))*datarat/(range(4)-range(3)));
%set(gca,'AspectRatio',[axisrat datarat]);
orient tall


%hold on;  plot(-pos_btm(:,3),pos_btm(:,1))
%orient landscape
%print
