%PIDu_plot.m
clear;
SN = 'BOG2'
fp = '2018May22';
path = sprintf( '../%s/%s/parsed/CPF%s_ENG.mat',SN,fp,fp);
load(path,'P','PIDU','PID_UCPS','DATETIMENUM');

numprofiles = size(P,1);
j=1;k=1;l=1;
figure;hold on



prof = 4
    
    
    for i = 1:1:size(P,2)
       if(~isnan(P(prof,i)))
           p(j) = P(prof,i);
           pt(j) = DATETIMENUM(prof,i);
           j=j+1;
       end
       if(~isnan(PIDU(prof,i)))
           pidu(k) = PIDU(prof,i);
           pidut(k) = DATETIMENUM(prof,i);
           k=k+1;
       end   
       if(~isnan(PID_UCPS(prof,i)))
           ucps(l) = PID_UCPS(prof,i);
           ucpst(l) = DATETIMENUM(prof,i);
           l=l+1;
       end 
    end
    
    subplot(3,1,1);
    plot( pt,p);
    grid on;
    xlim([min(pt) max(pt)]);
    ylabel('dBar');
    datetick;
grid on;

    subplot(3,1,2);hold on
    plot(pidut,pidu);
    grid on;
    xlim([min(pt) max(pt)]);
    ylabel('PIDu');
    datetick;
grid on;
 
    subplot(3,1,3);hold on
    plot(ucpst,ucps);
    grid on;
    xlim([min(pt) max(pt)]);
    ylabel('PIDuCPS');
    datetick;
grid on;
    


