% program to read daily_chl_5depths_data.txt file from Pete Strutton
% daily_chl_5depths_data.txt contains chl measurements at night only.
% INPUTS:
  % date, 2m_chl, 5m_chl, 10m_chl, 15m_chl, 20m_chl
  % chl data in mg/m3
%
close all
clear all
[date_night,chl_2m_night,chl_5m_night,chl_10m_night,chl_15m_night,chl_20m_night] = textread( ...
    'C:\Documents and Settings\Lisa Taylor\My Documents\Data\COASOSU\data\daily_chl_5depths_data.txt', ...
    '%f %f %f %f %f %f', ...
    'headerlines',0, 'delimiter','\t');
chlNight=[date_night chl_2m_night chl_5m_night chl_10m_night chl_15m_night chl_20m_night];
save chl_night -v6
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% figure
% plot(date_night,chl_2m_night,'.')
% datetick('x','mmmyy')
% xlabel('Date')
% ylabel('Chlorophyll [mg/m3]')
% title({'COASOSU Chlorophyll at 2m','Night Data Only'})
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
subplot(3,2,1)
plot(date_night,chl_2m_night,'.')
datetick('x','mmmyy')
xlabel('Date')
ylabel('Chlorophyll [mg/m3]')
title({'COASOSU Chlorophyll at 2m','Night Data Only'})
subplot(3,2,2)
plot(date_night,chl_5m_night,'.')
datetick('x','mmmyy')
xlabel('Date')
ylabel('Chlorophyll [mg/m3]')
title({'COASOSU Chlorophyll at 5m','Night Data Only'})
subplot(3,2,3)
plot(date_night,chl_10m_night,'.')
datetick('x','mmmyy')
xlabel('Date')
ylabel('Chlorophyll [mg/m3]')
title({'COASOSU Chlorophyll at 10m','Night Data Only'})
subplot(3,2,4)
plot(date_night,chl_15m_night,'.')
datetick('x','mmmyy')
xlabel('Date')
ylabel('Chlorophyll [mg/m3]')
title({'COASOSU Chlorophyll at 15m','Night Data Only'})
subplot(3,2,5)
plot(date_night,chl_20m_night,'.')
datetick('x','mmmyy')
xlabel('Date')
ylabel('Chlorophyll [mg/m3]')
title({'COASOSU Chlorophyll at 20m','Night Data Only'})