% CALIBRATIONS NOT YET DONE

% gets first chl and bb readings of the day

close all
clear all

% run gen_msg_data to get apex msg (saves apex_msg.mat)
% run plot_argos_data to consolidate apex msg data and apply
  % calibrations (saves float0005Surface and float0005SurfaceAll)
  
load float0015Surface
% float0005Surface contains:
    % float0005SurfaceChl: [date, chl_corr]

% get first reading of the day
I=find(diff(float0015SurfaceChl(:,1))>4);
time_surf=[float0015SurfaceChl(1,1);float0015SurfaceChl(I+1,1)];
chl_surf=[float0015SurfaceChl(1,2);float0015SurfaceChl(I+1,2)];

figure(1); % plot chlorophyll
plot(time_surf,chl_surf,'.')
set(gca,'FontName','Times New Roman');
set(gca,'FontSize',16);
set(gca,'XTick',[732464 732647 732829 733012 733194]);
datetick(gca,'x','mmmyy','keepticks');
title({'Chlorophyll','Float 0015, North Atlantic'})
ylabel('Concentration [mg/m^3]')

clear I float0015SurfaceChl;
save 'C:\Documents and Settings\Lisa Taylor\My Documents\Data\APEX\dataFiles\surfaceChl.mat'

% clear chl_surf;
% load float0005Argos
% % float0005Argos contains:
%    % float0005SurfaceAll: [date, lat, lon, P, Chl_b_corr, B_LSS_b_corr, stat]
% 
% % get first reading of the day
% II=find(diff(float0005SurfaceAll(:,1))>4);
% bb_surf=[float0005SurfaceAll(1,6);float0005SurfaceAll(II+1,6)];
% 
% clear II float0005SurfaceAll;
% save 'C:\Documents and Settings\Lisa Taylor\My Documents\Data\APEX\dataFiles\surfaceBb.mat'

