Commit a866e04e authored by Achim Morschhauser's avatar Achim Morschhauser
Browse files

GAN2XLS bugfix

parent 640cb8f4
......@@ -19,8 +19,9 @@ clear all
close all
figure
station='GAN0j';
%station = 'SMA0g'; % c or d or g or s or l for datalogger
station = 'WNG5g'; % c or d or g or s or l for datalogger
%station = 'WNG5g'; % c or d or g or s or l for datalogger
%station = 'NGK0g'; % c or d or g or s or l for datalogger
%station = 'TDC1d'; % c or d or g or s or l for datalogger
%station = 'VNA1s'; % c or d or g or s or l for datalogger
......@@ -37,9 +38,9 @@ timeshift_array = [-300:1:300]';
number_DI = 1000; % read in all DI-measurements for this year
number_DI = 5; % read in the last x measurements in this year
number_DI = 0; % use date range from below
year = 2018;
start_mmdd = '0509';
end___mmdd = '0509';
year = 2014;
start_mmdd = '0101';
end___mmdd = '0101';
......
......@@ -159,7 +159,7 @@ clearvars tmp
% Residuals
tmp=num2cell(zeros(8,1));
my_xlswrite(opsys,file_new,tmp,1,'D19');
my_xlswrite(opsys,file_new,tmp,1,'E19');
clearvars tmp
% /////////////////////////////////////////////////////////////////////
......@@ -175,6 +175,7 @@ for i=1:length(fields)
tmp{2*i-1} = tmpval;
tmp{2*i} = tmpval;
end
tmp{end+1}=tmp{end};
my_xlswrite(opsys,file_new,tmp',1,'B37');
clearvars tmp
......@@ -187,12 +188,13 @@ for i=1:length(fields)
tmp{2*i-1} = tmpval;
tmp{2*i} = tmpval;
end
tmp{end+1}=NaN;
my_xlswrite(opsys,file_new,tmp',1,'D37');
clearvars tmp
% Residuals
tmp=num2cell(zeros(8,1));
tmp=num2cell(zeros(9,1));
my_xlswrite(opsys,file_new,tmp,1,'E37');
clearvars tmp
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment