%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% PURPOSE: Plot raw Tritech altimeter data
% AUTHOR:  Initial; rsm; nst
% DATE:    01/07/12
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Units and Fundamental Constants:
  units


  str = [' ',titleStr, ' ',myDate];
  PaperPosn = [.5 .5 3.75 2.5];
  FigurePosn = [5 30 815 760];
  i = 0;
  if exist( 'tritechFig1' ) ~= 1
      tritechFig1 = figure;
  else 
      figure( tritechFig1 ); 
  end
    
  set( tritechFig1, 'name', 'Tritech Range', ...
       'DeleteFcn', 'clear tritechFig1' );
  set(gcf,'position',position)
  clf

    subplot(2,1,1)
    plot( PA200LR(:,m_present_time), rangetritech);
    ylabel('m')
    title(['Range',str]);
    grid on
    zoom on


 if ( exist('dataNav') == 1 )
    subplot(2,1,2)
    [xx,yy] = stairs( dataNav(:,m_present_time), dataNav(:,mDepth));
    plot(xx,yy);
    set( gca, 'ydir', 'reverse' );
    ylabel('Meters')
    title(['Depth',str]);
    grid on
    zoom on
 end
       
    
