%%%% 
%%%%
%%%% get .dat structures for a cruise
%%%%
%%%%
%  2008/03/20
%%%% 



clear dat;
rdir='raw_data/';
d=dir([ rdir '*.dat']);
for i=1:length(d), 
	filename=[rdir d(i).name];
	[DAT,data,scans,header,rawheader]=read_sbedat(filename);
	fn=fieldnames(DAT);
	for j=1:length(fn), dat(i).(fn{j})=DAT.(fn{j}); end;
	dat(i).header=header;
	dat(i).scans=scans;
end;
