[Dart-dev] [3759] DART/trunk/diagnostics/matlab/get_varnames.m:
patching broken function.
nancy at ucar.edu
nancy at ucar.edu
Mon Feb 2 15:54:45 MST 2009
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/dart-dev/attachments/20090202/d2d42ec0/attachment.html
-------------- next part --------------
Modified: DART/trunk/diagnostics/matlab/get_varnames.m
===================================================================
--- DART/trunk/diagnostics/matlab/get_varnames.m 2009-01-31 00:22:38 UTC (rev 3758)
+++ DART/trunk/diagnostics/matlab/get_varnames.m 2009-02-02 22:54:44 UTC (rev 3759)
@@ -57,8 +57,10 @@
if (strcmp( varname , 'ObservationTypes')), isatmosvar = 0; end
if (isatmosvar > 0)
- inds = [inds i];
- else
- error('No atmospheric variables in %s.',name(f))
+ inds = [inds i];
end
end
+
+if (isempty(inds))
+ error('No atmospheric variables in %s',name(f))
+end
More information about the Dart-dev
mailing list