[Dart-dev] DART/trunk Revision: 11204

dart at ucar.edu dart at ucar.edu
Mon Mar 6 19:53:07 MST 2017


thoar at ucar.edu
2017-03-06 19:53:05 -0700 (Mon, 06 Mar 2017)
278
Fixed behavior for observations that occur at same level.
Also moved the call to myworldmap to plot before scatterplot,
as this helped put the overlay(?!) under the scatterplot.
This is the proper plot order, the scatterplot now superimposes
on top of the continental shading.




Modified: DART/trunk/diagnostics/matlab/link_obs.m
===================================================================
--- DART/trunk/diagnostics/matlab/link_obs.m	2017-03-06 23:44:01 UTC (rev 11203)
+++ DART/trunk/diagnostics/matlab/link_obs.m	2017-03-07 02:53:05 UTC (rev 11204)
@@ -98,6 +98,13 @@
 obs.region(5)     = min(obs.z); % use observation Z to specify vertical region
 obs.region(6)     = max(obs.z);
 
+% Some observations are all at same z value. Cannot use same value for
+% upper and lower axis bounds.
+if (obs.region(5) == obs.region(6))
+    obs.region(5) = obs.region(5) - 0.5;
+    obs.region(6) = obs.region(6) + 0.5;
+end
+
 %% Now pack the data in the same fashion as the cell array of column labels.
 
 obs.lonindex  = 1;

Modified: DART/trunk/diagnostics/matlab/linked_observations.m
===================================================================
--- DART/trunk/diagnostics/matlab/linked_observations.m	2017-03-06 23:44:01 UTC (rev 11203)
+++ DART/trunk/diagnostics/matlab/linked_observations.m	2017-03-07 02:53:05 UTC (rev 11204)
@@ -48,6 +48,8 @@
 view(fig1ax1,[-37.5 30]);
 grid(fig1ax1,'on');
 
+myworldmap(obs); hold on;
+
 xstring = sprintf('obsmat(:,%d)',obs.lonindex);
 ystring = sprintf('obsmat(:,%d)',obs.latindex);
 zstring = sprintf('obsmat(:,%d)',obs.zindex  );
@@ -64,8 +66,6 @@
 
 set(fig1ax1,'FontSize',18);
 
-myworldmap(obs);
-
 xlabel(obs.colnames{obs.lonindex});
 ylabel(obs.colnames{obs.latindex});
 zlabel(obs.colnames{obs.zindex});


More information about the Dart-dev mailing list