%PlotDeployment

close all;
clear all;
dates=['0710';'0711';'0712';'0714';'0717';'0719';'0720';'0722';'0723';'0724';'0725';'0726';'0727';'0728';'0729';'0730';'0731';'0802';'0805';'0806';'0808';'0809'];
mycolor=jet(size(dates,1));
figure;figure;
legendString=[];
for i= 1: size(dates),
    load(strcat(dates(i,:),'.mat'));
    figure(1);plot(PortTS,'Color',mycolor(i,:)); hold on;
    figure(2);plot(PortConcTS,'Color',mycolor(i,:)); hold on;
    legendString=[legendString;strcat(dates(i,1:2),'/ ',dates(i,3:4))];
end
%port %sat plot
figure(1);
legend(legendString);
xlabel('Time (days)');
xlim([0 1.25]);
ylabel ('%02 Sat');
title('Port Optode 02 Sat July 2009, Smooth Ridge');

%port conc plot
figure(2);
legend(legendString);
xlabel('Time (days)');
xlim([0 1.25]);
ylabel ('02 Conc(um)');
title('Port Optode 02 Conc July 2009, Smooth Ridge');


figure;figure; hold on;
legendString=[];
for i= 1: size(dates),
    load(strcat(dates(i,:),'.mat'));
    figure(3);plot(RefTS,'Color',mycolor(i,:)); hold on;
    figure(4);plot(RefConcTS,'Color',mycolor(i,:)); hold on;
end
figure(3);
legend(legendString);
xlabel('Time (days)');
ylabel ('%02 Sat');
xlim([0 1.25]);
ylim([0 5]);
title('Ref Optode Data July 2009, Smooth Ridge');

figure(4);
legend(legendString);
xlabel('Time (days)');
ylabel ('02 Conc(um)');
xlim([0 1.25]);
ylim([2 20]);
title('Ref Optode Data July 2009, Smooth Ridge');

figure;
for i= 1: size(dates),
   load(strcat(dates(i,:),'.mat'));
   plot(PortConcTS,'r');hold on;plot(RefConcTS,'b');

end
legend('Port','Ref');
xlabel('Time (days)');
xlim([0 1.0]);
ylabel ('02 Conc (um)');
title('Port and Ref Optode Data July-Aug 2009, Smooth Ridge');

Stbddates=['0710';'0711';'0712';'0714';'0720';'0722';'0728';'0802'];

figure; hold on;
legendString=[];
for i= 1: size(Stbddates),
   load(strcat(Stbddates(i,:),'.mat'));
   plot(PortConcTS,'r');hold on;plot(RefConcTS,'b');hold on; plot(StbdConcTS,'g');hold on; 

end
legend('Port','Ref','Stbd');
xlabel('Time (days)');
ylabel ('02 Conc (um)');
title('Port and Ref Optode Data July 2009, Smooth Ridge');


