[Dart-dev] DART/branches Revision: 12021

dart at ucar.edu dart at ucar.edu
Thu Oct 26 12:10:03 MDT 2017


thoar at ucar.edu
2017-10-26 12:09:59 -0600 (Thu, 26 Oct 2017)
192
Adding support for the landmass georeferencing that works with all (known) versions of Matlab.
Removed some of the dependencies on the snctools and mexnc. plot_obs_netcdf() and its kin work.




Deleted: DART/branches/mizzi/diagnostics/matlab/get_varnames.m
===================================================================
--- DART/branches/mizzi/diagnostics/matlab/get_varnames.m	2017-10-26 17:56:13 UTC (rev 12020)
+++ DART/branches/mizzi/diagnostics/matlab/get_varnames.m	2017-10-26 18:09:59 UTC (rev 12021)
@@ -1,59 +0,0 @@
-function bob = get_varnames(fname)
-%% get_varnames returns NON-coordinate variables.
-%
-% the result is a cell array of strings ... must use {} notation to address elements.
-%
-% EXAMPLE:
-% fname    = 'obs_seq.final.nc';
-% varnames = get_varnames(fname);
-% varnames{:}
-% nvars = length(varnames);
-% disp(sprintf('first atmospheric variable (of %d) is %s',nvars,varnames{1}))
-
-%% 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
-% http://www.image.ucar.edu/DAReS/DART/DART_download
-%
-% DART $Id$
-
-fileinfo    = nc_info(fname);
-Nvarnames   = length(fileinfo.Dataset);
-
-inds = [];
-
-for i = 1:Nvarnames
-
-   varname    = fileinfo.Dataset(i).Name;
-   isatmosvar = 1;
-
-   % Reject the obvious coordinate variables and some that are
-   % specific to DART
-
-   if (         nc_iscoordvar(fname,varname)), isatmosvar = 0; end 
-   if (strcmp( varname ,      'time_bounds')), isatmosvar = 0; end 
-   if (strcmp( varname ,     'region_names')), isatmosvar = 0; end 
-   if (strcmp( varname ,     'CopyMetaData')), isatmosvar = 0; end 
-   if (strcmp( varname , 'ObservationTypes')), isatmosvar = 0; end
-
-   % keep track of the 'good' variables
-   if (isatmosvar > 0)
-      inds = [inds i];
-   end
-end
-
-if (isempty(inds))
-   error('There are only coordinate variables in %s',fname)
-end
-
-% coerce just the names into a cell array 
-
-for i = 1:length(inds)
-   bob{i} = fileinfo.Dataset(inds(i)).Name;
-end
-
-
-% <next few lines under version control, do not edit>
-% $URL$
-% $Revision$
-% $Date$
-

Deleted: DART/branches/mizzi/diagnostics/matlab/get_varsNdims.m
===================================================================
--- DART/branches/mizzi/diagnostics/matlab/get_varsNdims.m	2017-10-26 17:56:13 UTC (rev 12020)
+++ DART/branches/mizzi/diagnostics/matlab/get_varsNdims.m	2017-10-26 18:09:59 UTC (rev 12021)
@@ -1,49 +0,0 @@
-function [y, ydims] = get_varsNdims(fname)
-%% Get the dimension (strings) for each atmospheric variable.
-% [y, ydims] = get_vars_dims(fname);
-%
-% fname     a netcdf file name
-%
-% y       a cell array of variable names
-% ydims   a cell array of the concatenated dimension names 
-%
-% EXAMPLE:
-% 
-% fname      = 'obs_seq.final.nc';
-% [y, ydims] = get_varsNdims(fname);
-%
-% >> y{20}  
-%
-%    AIRCRAFT_U_WIND_COMPONENT_guess
-%
-% >> ydims{20}
-%    region plevel copy time
-
-%% 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
-% http://www.image.ucar.edu/DAReS/DART/DART_download
-%
-% DART $Id$
-
-ALLvarnames = get_varnames(fname);
-Nvarnames   = length(ALLvarnames);
-
-y     = cell(Nvarnames,1);


More information about the Dart-dev mailing list