Changeset 1547 in lmdz_wrf for trunk


Ignore:
Timestamp:
Apr 28, 2017, 7:52:38 PM (8 years ago)
Author:
lfita
Message:

Adding error in `DataSetSection_multidims' on the absence of a given dimension

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r1536 r1547  
    64276427    for dimid in range(Ndims):
    64286428        dn = dimns[dimid]
     6429        if not dimslices.has_key(dn):
     6430            print errormsg
     6431            print '  ' + fname + ": dimension name '" + dn + "' not present !!"
     6432            print '    available ones:', dimslices
     6433            quit(-1)
    64296434        if dimslices[dn][2] is not None:
    64306435            slicevalS = slicevalS + dn + ' (' + str(dimslices[dn][0]) + ',' +        \
Note: See TracChangeset for help on using the changeset viewer.