Changeset 1802 in lmdz_wrf
- Timestamp:
- Mar 12, 2018, 10:56:25 PM (7 years ago)
- Location:
- trunk/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing.py
r1767 r1802 218 218 print ' ' + fname + ': shading file "' + ncfiles + \ 219 219 '" does not have variable "' + varns + '" !!' 220 varns = sorted(objsf.variables.keys()) 221 print ' available ones:', varns 220 222 quit(-1) 221 223 … … 8449 8451 quit(-1) 8450 8452 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 8451 8458 if opts.ncfile is not None and not os.path.isfile(opts.ncfile) and \ 8452 8459 not drw.searchInlist(Notcheckingfile, oper): -
trunk/tools/drawing_tools.py
r1792 r1802 913 913 if line[0:1] != '#': 914 914 values = line.replace('\n','').split(',') 915 if len(values) != 8:915 if len(values) != 10: 916 916 print errormsg 917 print "problem in varibale: '", values[0],\918 "' it should have 8values and it has:", len(values)917 print ' ' + fname + ": problem in varibale: '", values[0], \ 918 "' it should have 10 values and it has:", len(values) 919 919 quit(-1) 920 920
Note: See TracChangeset
for help on using the changeset viewer.