[Dart-dev] [6947] DART/trunk/matlab/Compare_netCDF_files.m: Corrected logic on the printing of the differences between two files.
nancy at ucar.edu
nancy at ucar.edu
Fri Apr 25 15:28:55 MDT 2014
Revision: 6947
Author: thoar
Date: 2014-04-25 15:28:54 -0600 (Fri, 25 Apr 2014)
Log Message:
-----------
Corrected logic on the printing of the differences between two files.
Now, if EITHER the min or the max is not 0.0, both the min and max
differences are printed.
Modified Paths:
--------------
DART/trunk/matlab/Compare_netCDF_files.m
-------------- next part --------------
Modified: DART/trunk/matlab/Compare_netCDF_files.m
===================================================================
--- DART/trunk/matlab/Compare_netCDF_files.m 2014-04-25 21:20:09 UTC (rev 6946)
+++ DART/trunk/matlab/Compare_netCDF_files.m 2014-04-25 21:28:54 UTC (rev 6947)
@@ -139,7 +139,7 @@
fprintf(fid,'%32s has min/max differences of %g %g\n', ...
varname1,datamin,datamax);
- if ((datamin ~= 0.0) && (datamax ~= 0.0))
+ if ((datamin ~= 0.0) || (datamax ~= 0.0))
fprintf('%32s has min/max differences of %g %g\n', ...
varname1,datamin,datamax);
end
More information about the Dart-dev
mailing list