Skip to content

Commit

Permalink
Handle potential unlabelled last column in WQM dat file
Browse files Browse the repository at this point in the history
For some WQM firwmare version and WQMhost software versions, can possibly have an extra unlabelled columen (a flag value?), eg

WQM	SN	MMDDYY	HHMMSS	Temp(C)	Pres(dbar)	Sal(PSU)	DO(ml/l)	CHL(ug/l)	NTU
WQM	135	060310	195934	23.62480	0.09000	0.01200	0.00000	-0.01400	0.76400	0.00000

Have only ever seen one extra column, and always as last column. Tested a two files with/without extra column.
  • Loading branch information
sspagnol authored and ggalibert committed Mar 27, 2017
1 parent 17aba55 commit 79436bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Parser/readWQMdat.m
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,9 @@ case upper('DO(mg/l)') % DOX1_3
end
end

% handle potential unlabelled last column
format=strcat(format,'%*s');

%remove unsupported fields from header list
fields(unsupported) = [];
end
Expand Down

0 comments on commit 79436bf

Please sign in to comment.