[Dart-dev] [4389] DART/trunk/matlab/GetNCindices.m: Added more level-type dimension names to be used when providing a ' levelindex'.

nancy at ucar.edu nancy at ucar.edu
Mon Jun 21 11:49:25 MDT 2010


Revision: 4389
Author:   thoar
Date:     2010-06-21 11:49:25 -0600 (Mon, 21 Jun 2010)
Log Message:
-----------
Added more level-type dimension names to be used when providing a 'levelindex'.
Added a default case to warn when encountering an unknown dimension.

Modified Paths:
--------------
    DART/trunk/matlab/GetNCindices.m

-------------- next part --------------
Modified: DART/trunk/matlab/GetNCindices.m
===================================================================
--- DART/trunk/matlab/GetNCindices.m	2010-06-08 21:25:48 UTC (rev 4388)
+++ DART/trunk/matlab/GetNCindices.m	2010-06-21 17:49:25 UTC (rev 4389)
@@ -141,7 +141,7 @@
       case 'copy'
          start(i) = copy1;
          count(i) = copyN;
-      case {'lev','z','bottom_top_d01','bottom_top_stag_d01'}
+      case {'surface','undef','hlevel','mlevel','plevel','height','lev','z','bottom_top_d01','bottom_top_stag_d01'}
          start(i) = level1;
          count(i) = levelN;
       case {'lat','y','tmpj','south_north_d01','south_north_stag_d01'}
@@ -158,6 +158,8 @@
       case 'region'
          start(i) = region1;
          count(i) = regionN;
+      otherwise
+         disp('GetNCindices encountered unknown coordinate variable %s',dimname)
    end
 
 end


More information about the Dart-dev mailing list