Skip to content
Snippets Groups Projects
Commit 18267a9e authored by Yves Gouriou's avatar Yves Gouriou
Browse files

BUG in readBucketData there is no "Second" in the bucket file. Bad scanf format.

parent e20bd381
No related branches found
No related tags found
No related merge requests found
......@@ -29,21 +29,21 @@ if fid ~= -1
% Read the file - skip 2 lines
% ----------------------------
fgetl( fid ); fgetl( fid );
bucketData = fscanf(fid,'%d %d %d %d %d %d %f %f %f', [9 Inf])';
bucketData = fscanf(fid,'%d %d %d %d %d %f %f %f', [8 Inf])';
% Every variable are put in a structure
% -------------------------------------
tsg.DAYD_WS = datenum(bucketData(:,1), bucketData(:,2), ...
bucketData(:,3), bucketData(:,4), ...
bucketData(:,5), bucketData(:,6));
bucketData(:,5), 0);
% save original date
% ------------------
tsg.DATE_WS = datestr( tsg.DAYD_WS, 'yyyymmddHHMMSS' );
tsg.LATX_WS = bucketData(:,7);
tsg.LONX_WS = bucketData(:,8);
tsg.SSPS_WS = bucketData(:,9);
tsg.LATX_WS = bucketData(:,6);
tsg.LONX_WS = bucketData(:,7);
tsg.SSPS_WS = bucketData(:,8);
% get code value for 'NO_CONTROL' in hashtable
% --------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment