[Dart-dev] [9720] DART/trunk/diagnostics/matlab/linked_observations.m: Annotating the actual time range of the observations rather than the nominal

nancy at ucar.edu nancy at ucar.edu
Fri Feb 5 10:46:51 MST 2016


Revision: 9720
Author:   thoar
Date:     2016-02-05 10:46:51 -0700 (Fri, 05 Feb 2016)
Log Message:
-----------
Annotating the actual time range of the observations rather than the nominal
values specified in the netCDF metadata.

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	2016-02-05 17:09:31 UTC (rev 9719)
+++ DART/trunk/diagnostics/matlab/linked_observations.m	2016-02-05 17:46:51 UTC (rev 9720)
@@ -70,9 +70,12 @@
 ylabel(obs.colnames{obs.latindex});
 zlabel(obs.colnames{obs.zindex});
 
+tmin = min(obs.time);
+tmax = max(obs.time);
+
 h = title({obs.ObsTypeString, ...
       sprintf('"%s"',obs.ObsCopyString), ...
-      sprintf('%s ---> %s',obs.timestring(1,:),obs.timestring(2,:)) });
+      sprintf('%s ---> %s',datestr(tmin),datestr(tmax)) });
 set(h,'Interpreter','none')
 linkdata on
 


More information about the Dart-dev mailing list