[Dart-dev] DART/branches Revision: 12054
dart at ucar.edu
dart at ucar.edu
Mon Nov 6 15:56:09 MST 2017
thoar at ucar.edu
2017-11-06 15:56:05 -0700 (Mon, 06 Nov 2017)
269
Consolidating all the matlab functions into something similar to the rma_trunk.
Removing the need for the third-party netCDF toolboxes.
All the observation-space tools and diagnostics are believed to be working.
All of the state-space diagnostics are probably broken.
Modified: DART/branches/mizzi/diagnostics/matlab/link_obs.m
===================================================================
--- DART/branches/mizzi/diagnostics/matlab/link_obs.m 2017-11-06 21:21:34 UTC (rev 12053)
+++ DART/branches/mizzi/diagnostics/matlab/link_obs.m 2017-11-06 22:56:05 UTC (rev 12054)
@@ -34,8 +34,7 @@
%
% EXAMPLE 1:
% fname = '/ptmp/thoar/POP/CAM/POP8/obs_epoch_001.nc';
-% fname = '/Users/thoar/svn/DART/trunk/models/POP/work/obs_epoch_001.nc';
-% ObsTypeString = 'FLOAT_TEMPERATURE';
+% ObsTypeString = 'APB_TEMPERATURE';
% ObsCopyString = 'WOD observation';
% CopyString = 'prior ensemble mean';
% QCString = 'DART quality control';
@@ -44,9 +43,9 @@
% link_obs(fname, ObsTypeString, ObsCopyString, CopyString, QCString, region)
%
% EXAMPLE 2:
-% fname = 'obs_epoch_002.nc';
-% ObsTypeString = 'ACARS_U_WIND_COMPONENT';
-% ObsCopyString = 'observation';
+% fname = 'obs_epoch_001.nc';
+% ObsTypeString = 'RADIOSONDE_TEMPERATURE';
+% ObsCopyString = 'NCEP BUFR observation';
% CopyString = 'prior ensemble mean';
% QCString = 'DART quality control';
% region = [220 300 20 60 -Inf Inf];
@@ -67,8 +66,8 @@
% the the Workspace window to generate a spreadsheet-like view of the
% observations which is also linked to the data brushing.
-%% DART software - Copyright 2004 - 2013 UCAR. This open source software is
-% provided by UCAR, "as is", without charge, subject to all terms of use at
+%% DART software - Copyright UCAR. This open source software is provided
+% by UCAR, "as is", without charge, subject to all terms of use at
% http://www.image.ucar.edu/DAReS/DART/DART_download
%
% DART $Id$
@@ -98,6 +97,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;
@@ -136,7 +142,7 @@
end
%% create the linked plots
-linked_observations(obs);
+linked_observations(obs)
% <next few lines under version control, do not edit>
@@ -143,4 +149,3 @@
% $URL$
% $Revision$
% $Date$
-
Modified: DART/branches/mizzi/diagnostics/matlab/plot_bias_xxx_profile.m
===================================================================
--- DART/branches/mizzi/diagnostics/matlab/plot_bias_xxx_profile.m 2017-11-06 21:21:34 UTC (rev 12053)
+++ DART/branches/mizzi/diagnostics/matlab/plot_bias_xxx_profile.m 2017-11-06 22:56:05 UTC (rev 12054)
@@ -32,7 +32,7 @@
% Default is to plot all available observation types.
%
% OUTPUT: 'plotdat' is a structure containing what was plotted.
-% A .pdf of each graphic is created. Each .pdf has a name that
+% A .pdf of each graphic is created. Each .pdf has a name that
% reflects the variable, quantity, and region being plotted.
%
% EXAMPLE 1: All the observation types possible are plotted in separate figures.
@@ -48,8 +48,8 @@
% obsname = 'RADIOSONDE_U_WIND_COMPONENT';
% plotdat = plot_bias_xxx_profile(fname, copy, 'obsname', obsname);
-%% DART software - Copyright 2004 - 2013 UCAR. This open source software is
-% provided by UCAR, "as is", without charge, subject to all terms of use at
+%% DART software - Copyright UCAR. This open source software is provided
+% by UCAR, "as is", without charge, subject to all terms of use at
% http://www.image.ucar.edu/DAReS/DART/DART_download
%
% DART $Id$
@@ -63,9 +63,14 @@
addRequired(p,'fname', at ischar);
addRequired(p,'copy', at ischar);
-addParamValue(p,'obsname',default_obsname, at ischar);
-parse(p, fname, copy, varargin{:});
+if (exist('inputParser/addParameter','file') == 2)
+ addParameter(p,'obsname',default_obsname, at ischar);
+else
+ addParamValue(p,'obsname',default_obsname, at ischar);
More information about the Dart-dev
mailing list