function [csdawk] = onedimCSDout(data, t);
% [csd1_8, interp_csd1_8, csd9_16, interp_csd9_16, csd17_24, interp_csd17_24, ...
     %   csd25_32, interp_csd25_32, csd33_40, interp_csd33_40, csd41_48, interp_csd41_48, ...
     %   csd49_56, interp_csd49_56, csd57_64, interp_csd57_64, varagout] = onedimCSD(data);

time=t;
extra1(1:10000,1)=0;
extra2(1:10000,1)=0;
extra9(1:10000,1)=0;
extra10(1:10000,1)=0;
waveawk=[extra1 extra2 data(:,1) data(:,2) extra9 extra10 ];

x=waveawk(1:10000,1:6);
nCh=size(x,2);
step=2; %step size
csdch=[step+1:nCh-step];
csdawk=-(x(:,csdch+step)-2*x(:,csdch)+x(:,csdch-step));
interp_csdawk=interp2(csdawk,2,'linear');
%x=[0 130]; y=[0 9];
%subplot (1,9,8); colorbar
%imagesc(x,y,interp_csd8_64');
%hold on;
%t=(130/3000:130/3000:130);
%plot(t,-(wave8_64(:,5))*50000+3,'k');


