[Dart-dev] [3287] DART/trunk/matlab/ReadObsSeq.m: ReadObsSeq should now correctly identify ascii vs.

thoar at subversion.ucar.edu thoar at subversion.ucar.edu
Tue Apr 1 14:49:34 MDT 2008


An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/dart-dev/attachments/20080401/70b2085d/attachment.html
-------------- next part --------------
Modified: DART/trunk/matlab/ReadObsSeq.m
===================================================================
--- DART/trunk/matlab/ReadObsSeq.m	2008-03-31 20:09:20 UTC (rev 3286)
+++ DART/trunk/matlab/ReadObsSeq.m	2008-04-01 20:49:33 UTC (rev 3287)
@@ -45,15 +45,14 @@
    fname = 'obs_seq.final';
 end
 
-
 % Determine if the file is an ascii file:
 
 fid    = fopen(fname,'rt');
 aline  = fgetl(fid);
-values = sscanf(aline,'%*s %d %*s %d');
+values = sscanf(aline,'%s');
 fclose(fid);
 
-if ~ isempty(values) 
+if (strcmp(values,'obs_sequence'))
    flavor = 'ASCII';
 end
 


More information about the Dart-dev mailing list