[Dart-dev] [4393] DART/trunk/diagnostics/matlab/linked_observations.m: a little cleanup ... print a t
nancy at ucar.edu
nancy at ucar.edu
Tue Jun 22 13:44:35 MDT 2010
Revision: 4393
Author: thoar
Date: 2010-06-22 13:44:35 -0600 (Tue, 22 Jun 2010)
Log Message:
-----------
a little cleanup ... print a table to the command window
of the observation QC summary since this is not annotated on
a graphic anymore (that graphic was replaced by the scatterplot
of obs value vs. prior mean).
Modified Paths:
--------------
DART/trunk/diagnostics/matlab/linked_observations.m
-------------- next part --------------
Modified: DART/trunk/diagnostics/matlab/linked_observations.m
===================================================================
--- DART/trunk/diagnostics/matlab/linked_observations.m 2010-06-22 19:41:28 UTC (rev 4392)
+++ DART/trunk/diagnostics/matlab/linked_observations.m 2010-06-22 19:44:35 UTC (rev 4393)
@@ -211,18 +211,23 @@
qcvals = unique(qcarray);
qccount = zeros(size(qcvals));
- s = cell(length(qcvals),1);
for i = 1:length(qcvals)
qccount(i) = sum(qcarray == qcvals(i));
- s{i} = sprintf('%d - %s %d obs',qcvals(i), dartqc_strings{qcvals(i)+1}, qccount(i));
+ fprintf('(%s == %d) %10d obs [%s]\n',strtrim(QCString), qcvals(i), ...
+ qccount(i), dartqc_strings{qcvals(i)+1});
end
% set(gca,'YTick',qcvals,'YAxisLocation','right')
% set(gca,'YTickLabel',char(s{:}),'FontSize',12)
otherwise,
- str = sprintf('no way to interpret values of %s',strtrim(QCString));
- text(0.0, 0.0, str)
+
+ qcvals = unique(qcarray);
+ qccount = zeros(size(qcvals));
+ for i = 1:length(qcvals)
+ qccount(i) = sum(qcarray == qcvals(i));
+ fprintf('(%s == %d) %10d obs\n',strtrim(QCString), qcvals(i), qccount(i));
+ end
end
More information about the Dart-dev
mailing list