
% -- 
% Jeff Sevadjian
% Research Technician
% Monterey Bay Aquarium Research Institute
% 7700 Sandholdt Rd
% Moss Landing, CA 95039, USA
% ph: +1 831-775-1888

% Compares Wave Glider and M1 oxygen data when nearby.
% To get the data in the right format for the below plot, you will
%  have to manually run the first part of the QC_wg*_yyyymmdd.m script
%  for the WG mission(s) you want to look at.

%--%

figure('Units','inches','Position',[0 0 8.5 8.5]);
hold on;
plot(CTD(:,4),CTD(:,9),'b.');
plot(CTD1(:,4),CTD1(:,9),'g.');
plot(CTD2(:,4),CTD2(:,9),'r.');
legend('Tiny','Sparky Float','Sparky Sub');
xlim([210 420]);
ylim([210 420]);
plot([210 420],[210 420],'k');
daspect([1 1 1]);
xlabel('Wave Glider O2 [umol/kg]');
ylabel('M1 O2 [umol/kg]');
set(gca,'XTick',[225:25:400],'YTick',[225:25:400]);
grid on;
title('Comparison of O2 data within 4 km & 10 minutes');
box on;
print(gcf,'C:\Users\jsevadjian\Desktop\O2_WaveGlider_M1_v2c',...
  '-dpng','-r300');

f = find(CTD(:,1) > datenum([2016 7 11]));
plot(CTD(f,4),CTD(f,9),'k.');
