% combines old and new spectra data sets

% spectra old: nLw_412_2004_2006 and those for wavelengths 443, 488, 531, 551, 667
% spectra new: nLw_412_april2007 and those for wavelengths 443, 488, 531, 551, 667

close all
clear all

load nLw_412_2004_2006.mat % nLw_412 [2601x2116]
load nLw_443_2004_2006.mat
load nLw_488_2004_2006.mat
load nLw_531_2004_2006.mat
load nLw_551_2004_2006.mat
load nLw_667_2004_2006.mat

a412=nLw_412'; % [2116x2601]
a443=nLw_443';
a488=nLw_488';
a531=nLw_531';
a551=nLw_551';
a667=nLw_667';

clear nLw_412 nLw_443 nLw_488 nLw_531 nLw_551 nLw_667;

load nLw_412_april2007.mat % [2601x287]
load nLw_443_april2007.mat
load nLw_488_april2007.mat
load nLw_531_april2007.mat
load nLw_551_april2007.mat
load nLw_667_april2007.mat

b412=nLw_412'; % [287x2601]
b443=nLw_443';
b488=nLw_488';
b531=nLw_531';
b551=nLw_551';
b667=nLw_667';

clear nLw_412 nLw_443 nLw_488 nLw_531 nLw_551 nLw_667;

nLw_412=[a412; b412]'; % [2601x2403]
nLw_443=[a443; b443]';
nLw_488=[a488; b488]';
nLw_531=[a531; b531]';
nLw_551=[a551; b551]';
nLw_667=[a667; b667]';

clear a412 a443 a488 a531 a551 a667 b412 b443 b488 b531 b551 b667;

save nLw_412_2004_2007 nLw_412
save nLw_443_2004_2007 nLw_443
save nLw_488_2004_2007 nLw_488
save nLw_531_2004_2007 nLw_531
save nLw_551_2004_2007 nLw_551
save nLw_667_2004_2007 nLw_667

