Changeset 1577 in lmdz_wrf


Ignore:
Timestamp:
May 17, 2017, 2:16:10 AM (8 years ago)
Author:
lfita
Message:

Adding error message when dimension-variable is not found in compute_opersvarsfile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r1572 r1577  
    74737473                found = False
    74747474                if not gen.searchInlist(Dddv.keys(), dimn):
     7475                    if not objnc.variables.has_key(dimn):
     7476                        print erorrmsg
     7477                        print '  ' + fname + ": no variable '" + dimn + "' found!!"
     7478                        print '    for the operation the dimension-variable is ' +   \
     7479                          'required but it is not in file !'
     7480                        print '    Could you think in adding it?'
     7481                        print '      vurrent varibales:', bjnc.variables.keys()
     7482                        quit(-1)
     7483
    74757484                    ovar = objnc.variables[dimn]
    74767485                    print warnmsg
Note: See TracChangeset for help on using the changeset viewer.