% combines old and new chlorophyll data sets

% chlorophyll old: chl_modis, contained in data/chlor_a_modis_2004_2006 (through 12/31/06) [2601x2116]
% chlorophyll new: chlor_a, contained in chlor_a_april2007 (01/06/07-04/30/07) [2601x287]

% date old: dt_modis, contained in data/chlor_a_modis_2004_2006 [2116x1]
% date new: dt_im, contained in dt_im_april2007 [1x287]
% don't forget about the julian date offset between IDL and Matlab 
% (~1.72105949e+006) , unless you are using Rich Signell's julian function 
% (which differs from the IDL time by 0.5 days).

close all
clear all

load 'C:\Documents and Settings\Lisa Taylor\My Documents\Data\MODIS\data\original downloads\extended\dt_im_april2007'
load 'C:\Documents and Settings\Lisa Taylor\My Documents\Data\MODIS\data\original downloads\extended\chlor_a_april2007.mat'
load 'C:\Documents and Settings\Lisa Taylor\My Documents\Data\MODIS\data\chlor_a_modis_2004_2006'

dt_modis=dt_modis'; % [now 1x2116]
dt_modis=[dt_modis dt_im]; % [1x2403]
dt_modis=dt_modis'; % [now 2403x1]

chl_modis=chl_modis'; % [now 2116x2601]
chlor_a=chlor_a'; % [now 287x2601]
chl_modis=[chl_modis; chlor_a]; % [2403x2601]
chl_modis=chl_modis'; % [now 2601x2403]

clear dt_im chlor_a;

save chlor_a_modis_2004_2007 -v6
