[Dart-dev] DART/trunk Revision: 11148

dart at ucar.edu dart at ucar.edu
Thu Feb 23 11:53:48 MST 2017


thoar at ucar.edu
2017-02-23 11:53:48 -0700 (Thu, 23 Feb 2017)
53
These work with recent (2014b+) versions of Matlab.




Modified: DART/branches/rma_trunk/diagnostics/matlab/plot_wind_vectors.m
===================================================================
--- DART/branches/rma_trunk/diagnostics/matlab/plot_wind_vectors.m	2017-02-23 18:32:23 UTC (rev 11147)
+++ DART/branches/rma_trunk/diagnostics/matlab/plot_wind_vectors.m	2017-02-23 18:53:48 UTC (rev 11148)
@@ -70,7 +70,7 @@
 %% Read the observation sequence
 
 [UtypeString, VtypeString] = FindObsType( fname, platform );
-verbose = 1;
+verbose = 0;
 Uobs = read_obs_netcdf(fname, UtypeString, region, CopyString, QCString, verbose);
 Vobs = read_obs_netcdf(fname, VtypeString, region, CopyString, QCString, verbose);
 

Modified: DART/releases/Lanai/diagnostics/matlab/plot_wind_vectors.m
===================================================================
--- DART/releases/Lanai/diagnostics/matlab/plot_wind_vectors.m	2017-02-23 18:32:23 UTC (rev 11147)
+++ DART/releases/Lanai/diagnostics/matlab/plot_wind_vectors.m	2017-02-23 18:53:48 UTC (rev 11148)
@@ -175,7 +175,7 @@
 
 h = xlabel(data.filename); set(h,'Interpreter','none');
 
-legend(legh,legstr,'Location','Best')
+legend(legh,legstr,'Location','Best','FontSize',18)
 
 hold off;
 
@@ -195,7 +195,6 @@
 dy = 0.05 * (axlims(4) - axlims(3));
 axlims(1:4) = axlims(1:4) + [-dx dx -dy dy];
 axis(axlims)
-axis image
 
 % It is nice to know where the land is
 worldmap('light');
@@ -265,11 +264,11 @@
    vtf = strncmpi(ObsTypeStrings(i,:),vtarget,n);
 
    if ( utf )
-      ustring = ObsTypeStrings(i,:);
+      ustring = deblank(ObsTypeStrings(i,:));
       uindex  = i;
    end 
    if ( vtf )
-      vstring = ObsTypeStrings(i,:);
+      vstring = deblank(ObsTypeStrings(i,:));
       vindex  = i;
    end 
 

Modified: DART/trunk/diagnostics/matlab/plot_wind_vectors.m
===================================================================
--- DART/trunk/diagnostics/matlab/plot_wind_vectors.m	2017-02-23 18:32:23 UTC (rev 11147)
+++ DART/trunk/diagnostics/matlab/plot_wind_vectors.m	2017-02-23 18:53:48 UTC (rev 11148)
@@ -175,7 +175,7 @@
 
 h = xlabel(data.filename); set(h,'Interpreter','none');
 
-legend(legh,legstr,'Location','Best')
+legend(legh,legstr,'Location','Best','FontSize',18)
 
 hold off;
 
@@ -195,7 +195,6 @@
 dy = 0.05 * (axlims(4) - axlims(3));
 axlims(1:4) = axlims(1:4) + [-dx dx -dy dy];
 axis(axlims)
-axis image
 
 % It is nice to know where the land is
 worldmap('light');
@@ -265,11 +264,11 @@
    vtf = strncmpi(ObsTypeStrings(i,:),vtarget,n);
 
    if ( utf )
-      ustring = ObsTypeStrings(i,:);
+      ustring = deblank(ObsTypeStrings(i,:));
       uindex  = i;
    end 
    if ( vtf )
-      vstring = ObsTypeStrings(i,:);
+      vstring = deblank(ObsTypeStrings(i,:));
       vindex  = i;
    end 
 


More information about the Dart-dev mailing list