Changeset 1802 in lmdz_wrf


Ignore:
Timestamp:
Mar 12, 2018, 10:56:25 PM (7 years ago)
Author:
lfita
Message:

Fixing:

  • Absence of file
  • Adding variable not found on 'draw_2D_shad'
Location:
trunk/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing.py

    r1767 r1802  
    218218        print '  ' + fname + ': shading file "' + ncfiles +                          \
    219219          '" does not have variable "' +  varns + '" !!'
     220        varns = sorted(objsf.variables.keys())
     221        print '    available ones:', varns
    220222        quit(-1)
    221223
     
    84498451        quit(-1)
    84508452
     8453    if opts.ncfile is None and not gen.searchInlist(Notcheckingfile, oper):
     8454        print errormsg
     8455        print '  ' + mainn + ": you must provide a file as '-f [filename]'!!"
     8456        quit(-1)
     8457
    84518458    if opts.ncfile is not None and not os.path.isfile(opts.ncfile) and                   \
    84528459      not drw.searchInlist(Notcheckingfile, oper):
  • trunk/tools/drawing_tools.py

    r1792 r1802  
    913913        if line[0:1] != '#':
    914914            values = line.replace('\n','').split(',')
    915             if len(values) != 8:
     915            if len(values) != 10:
    916916                print errormsg
    917                 print "problem in varibale: '", values[0],                           \
    918                   "' it should have 8 values and it has:", len(values)
     917                print '  ' + fname + ": problem in varibale: '", values[0],          \
     918                  "' it should have 10 values and it has:", len(values)
    919919                quit(-1)
    920920
Note: See TracChangeset for help on using the changeset viewer.