diff --git a/tsg_io/writeTSGDataNetCDF.m b/tsg_io/writeTSGDataNetCDF.m index b9f0643361709dac8adf50192967aaa00f09934a..0126d7f23fda58228a2d641b99870c126eaa6697 100644 --- a/tsg_io/writeTSGDataNetCDF.m +++ b/tsg_io/writeTSGDataNetCDF.m @@ -67,7 +67,7 @@ fprintf('...writing %s : ', filename); % Variable dimensions % ------------------- -nc('DAYD') = numel(tsg.DAYD); % number of TSG measurements +nc('DAYD') = numel(tsg.DAYD); nc('DAYD_WS') = numel(tsg.DAYD_WS); % number of water samples nc('DAYD_EXT') = numel(tsg.DAYD_EXT); % number of external SSPS or SSTP comparison nc('NCOEF_CAL') = 5; % number of calibration coefficients @@ -142,6 +142,8 @@ for i=1:numel(ncv_keys) % variable dimension, nc was corrupted to double object % works well on windows if ~isempty(tsg.(ncv_keys{i})) + %ncv_keys{i} + %nc{ncv_keys{i}}(1:length(tsg.(ncv_keys{i}))) = tsg.(ncv_keys{i}); nc{ncv_keys{i}}(:) = tsg.(ncv_keys{i}); end end