%range_plot2.m

clear
load corc2_srtm30.mat;

misID = 11200501;
fp = sprintf('data\\%d_range.txt',misID);
A = load(fp);



B = [
 -126.25 29.349
 -126.259 29.342,
 -126.272 29.345,
 -126.246 29.342,
 -126.258 29.333,
 -124.710 30.106,
 -123.333 30.778,
 -121.773 31.460,
 -120.487 32.136,
 -120.091 32.356,
 -120.501 32.145,
];
Lab = ['M_2';'L_2';'P_5';'L2B';'L2C';'P_4';'P_3';'P_2';'P_1';'P_0';'M_1'];

 
 
 figure(1)
 hold on;
 [C,h] = contour(x,y,z);
 clabel(C,h);

 scatter(-A(:,13),A(:,12),A(:,4)/300 + 5,A(:,4),'filled');
 %mercator;
 title('Good bytes xfered');
 
 
 figure(2)
 
 hold on;
 scatter(-A(:,13),A(:,12),A(:,4)/300 + 5,A(:,4),'filled');

 for i=1:1:size(B,1)
     %text( -1*(B(i,2)-.001),B(i,3), num2str( B(i,1) ),'FontSize',7 );
 end
 title('Good bytes xfered at CORC2 and PIES5');
 
  
 %plot waypoints
 %plot(M2x,M2y,'r*');
 %text( (M2x+.0005) , M2y , 'M2' , 'FontSize',7, 'Color','r');
%  plot(L2x,L2y,'r*');
%  text( (L2x+.0005) , L2y , 'L2' , 'FontSize',7, 'Color','r');
 %plot(P5x,P5y,'r*');
 %text( (P5x+.0005) , P5y , 'PIES5' , 'FontSize',7, 'Color','r')
%  plot(L2Bx,L2By,'r*');
%  text( (L2Bx+.0005) , L2By , 'L2B' , 'FontSize',7, 'Color','r');
%  plot(L2Cx,L2Cy,'r*');
%  text( (L2Cx+.0005) , L2Cy , 'L2C' , 'FontSize',7, 'Color','r');
 
 plot( B(:,1),B(:,2),'r*');
 text( B(:,1)+.0005,B(:,2),Lab(:,:),'FontSize',7, 'Color','r' );
 %mercator;
 title('Good bytes xfered');
 colorbar;
 