[Dart-dev] [6812] DART/trunk: Both of these are relational operations going the wrong way.

nancy at ucar.edu nancy at ucar.edu
Sun Feb 16 01:50:09 MST 2014


Revision: 6812
Author:   thoar
Date:     2014-02-16 01:50:09 -0700 (Sun, 16 Feb 2014)
Log Message:
-----------
Both of these are relational operations going the wrong way.
plot_obs_netcdf.m ... the intent is that if you have a lot of observations,
the symbol size should be constant and small.
In Compare_netCDF_files.m ... if either the min OR the max differences are not
zero, print them to the screen. The log file for Compare_netCDF_files is unaffected.

Modified Paths:
--------------
    DART/trunk/diagnostics/matlab/plot_obs_netcdf.m
    DART/trunk/matlab/Compare_netCDF_files.m

-------------- next part --------------
Modified: DART/trunk/diagnostics/matlab/plot_obs_netcdf.m
===================================================================
--- DART/trunk/diagnostics/matlab/plot_obs_netcdf.m	2014-02-16 08:15:43 UTC (rev 6811)
+++ DART/trunk/diagnostics/matlab/plot_obs_netcdf.m	2014-02-16 08:50:09 UTC (rev 6812)
@@ -114,8 +114,8 @@
 
    % choose a symbol size based on the number of obs to plot.
 
-   if (length(obsstruct.obs) > 1000) 
-      pstruct.scalearray = scaleme(obsstruct.obs, 36);
+   if (length(obsstruct.obs) < 1000) 
+      pstruct.scalearray = scaleme(obsstruct.obs, 30);
    else
       pstruct.scalearray = 128.0 * ones(size(obsstruct.obs));
    end

Modified: DART/trunk/matlab/Compare_netCDF_files.m
===================================================================
--- DART/trunk/matlab/Compare_netCDF_files.m	2014-02-16 08:15:43 UTC (rev 6811)
+++ DART/trunk/matlab/Compare_netCDF_files.m	2014-02-16 08:50:09 UTC (rev 6812)
@@ -67,7 +67,7 @@
          datamin = min(bob);
          datamax = max(bob);
          fprintf(fid,'%32s has min/max differences of %g %g\n',varname,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',varname,datamin,datamax);
          end
    end


More information about the Dart-dev mailing list