%To plot data in "latest: 
%
%    close all;clear all;plotLR
%
%If you want to plot data other than that in "latest": 
%
%    close all;clear all;dirName = '2023...';plotLR
%
co = [0 0 1;
      0 0.5 0;
      1 0 0;
      0 0.75 0.75;
      0.75 0 0.75;
      0.75 0.75 0;
      0.25 0.25 0.25];
set(groot,'defaultAxesColorOrder',co)

if( 1 ~= exist('dirName') ) %Not a variable on the stack
  if( 7 ~= exist('latest') ) %Not a sub dir
    fprintf('Can''t find "latest".  Maybe in the wrong directory?');
    return;
  end
  [s, dirName]=unix('ls -l latest');
  dirName = dirName(1:end-1);                  %Get rid of CR/LF
  dirNameIndx = regexp(dirName,'-> 202')+3;    %Find start of the dir name
  dirName = dirName(dirNameIndx:end)
end

[s,filepath]=unix(['ls ', dirName,'/2*.mat']);
filepath=filepath(1:end-1);
data=lrauv_load(filepath);
loc='upper';
loadGrd;
vplaneLR;
altpLR;
navplotLR;


%proNav_analysis


