[Dart-dev] [6134] DART/branches/development/models/clm/matlab: Just renaming the file to be consistent with the companion
nancy at ucar.edu
nancy at ucar.edu
Mon May 13 10:16:58 MDT 2013
Revision: 6134
Author: thoar
Date: 2013-05-13 10:16:57 -0600 (Mon, 13 May 2013)
Log Message:
-----------
Just renaming the file to be consistent with the companion
routine ... clm_get_var.m
Added Paths:
-----------
DART/branches/development/models/clm/matlab/clm_plot_var.m
Removed Paths:
-------------
DART/branches/development/models/clm/matlab/clm_var_plot.m
-------------- next part --------------
Copied: DART/branches/development/models/clm/matlab/clm_plot_var.m (from rev 6133, DART/branches/development/models/clm/matlab/clm_var_plot.m)
===================================================================
--- DART/branches/development/models/clm/matlab/clm_plot_var.m (rev 0)
+++ DART/branches/development/models/clm/matlab/clm_plot_var.m 2013-05-13 16:16:57 UTC (rev 6134)
@@ -0,0 +1,49 @@
+function clm_plot_var(x)
+%% DART clm_plot_var - plots the data structure that results from clm_get_var.
+%
+% EXAMPLE 1:
+% fname = 'Prior_Diag.2000-01-05-00000.nc';
+% varname = 'frac_sno';
+% levelindex = 1;
+% timeindex = 1;
+% copystring = 'ensemble member 3';
+% x = clm_get_var(fname,varname,copystring,levelindex,timeindex);
+% clm_plot_var(x);
+%
+% EXAMPLE 2: as above, compare to comparable field in CLM history file.
+% clmfname = '/glade/scratch/thoar/enstest_0907/enstest_0907.clm2_0003.r.2000-01-05-00000.nc';
+% x = clm_get_var(fname,varname,copystring,levelindex,timeindex,clmfname);
+% clm_plot_var(x);
+%
+
+%% DART software - Copyright 2004 - 2011 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
+%
+% <next few lines under version control, do not edit>
+% $URL$
+% $Id$
+% $Revision$
+% $Date$
+
+if (isfield(x,'clmres'))
+ subplot(2,1,1)
+end
+ h1 = imagesc(x.lon, x.lat, x.datmat);
+ set(h1,'AlphaData',~isnan(x.datmat))
+ set(gca,'YDir','normal')
+ h2 = title(sprintf('DART version of %s',x.varname));
+ set(h2,'Interpreter','none')
+ worldmap;
+ colorbar;
+
+if (isfield(x,'clmres'))
+ subplot(2,1,2)
+ h3 = imagesc(x.lon, x.lat, x.clmres);
+ set(h3,'AlphaData',~isnan(x.clmres))
+ set(gca,'YDir','normal')
+ h4 = title(sprintf('Restart file version of %s',x.varname));
+ set(h4,'Interpreter','none')
+ worldmap;
+ colorbar;
+end
Deleted: DART/branches/development/models/clm/matlab/clm_var_plot.m
===================================================================
--- DART/branches/development/models/clm/matlab/clm_var_plot.m 2013-05-13 16:04:20 UTC (rev 6133)
+++ DART/branches/development/models/clm/matlab/clm_var_plot.m 2013-05-13 16:16:57 UTC (rev 6134)
@@ -1,49 +0,0 @@
-function clm_var_plot(x)
-%% DART clm_var_plot - plots the data structure that results from clm_get_var.
-%
-% EXAMPLE 1:
-% fname = 'Prior_Diag.2000-01-05-00000.nc';
-% varname = 'frac_sno';
-% levelindex = 1;
-% timeindex = 1;
-% copystring = 'ensemble member 3';
-% x = clm_get_var(fname,varname,copystring,levelindex,timeindex);
-% clm_var_plot(x);
-%
-% EXAMPLE 2: as above, compare to comparable field in CLM history file.
-% clmfname = '/glade/scratch/thoar/enstest_0907/enstest_0907.clm2_0003.r.2000-01-05-00000.nc';
-% x = clm_get_var(fname,varname,copystring,levelindex,timeindex,clmfname);
-% clm_var_plot(x);
-%
-
-%% DART software - Copyright 2004 - 2011 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
-%
-% <next few lines under version control, do not edit>
-% $URL$
-% $Id$
-% $Revision$
-% $Date$
-
-if (isfield(x,'clmres'))
- subplot(2,1,1)
-end
- h1 = imagesc(x.lon, x.lat, x.datmat);
- set(h1,'AlphaData',~isnan(x.datmat))
- set(gca,'YDir','normal')
- h2 = title(sprintf('DART version of %s',x.varname));
- set(h2,'Interpreter','none')
- worldmap;
- colorbar;
-
-if (isfield(x,'clmres'))
- subplot(2,1,2)
- h3 = imagesc(x.lon, x.lat, x.clmres);
- set(h3,'AlphaData',~isnan(x.clmres))
- set(gca,'YDir','normal')
- h4 = title(sprintf('Restart file version of %s',x.varname));
- set(h4,'Interpreter','none')
- worldmap;
- colorbar;
-end
More information about the Dart-dev
mailing list