Changeset 721 for trunk/UTIL/PYTHON/pp.py
- Timestamp:
- Jul 12, 2012, 8:02:52 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/pp.py
r647 r721 23 23 ### Get options and variables 24 24 parser = OptionParser() ; getparseroptions(parser) ; (opt,args) = parser.parse_args() 25 if opt.file is None: errormess("I want to eat one file at least ! Use winds.py -f name_of_my_file. Or type winds.py -h")25 if opt.file is None: errormess("I want to eat one file at least ! Use pp.py -f name_of_my_file. Or type pp.py -h") 26 26 if opt.var is None and opt.anomaly is True: errormess("Cannot ask to compute anomaly if no variable is set") 27 27 if opt.fref is not None and opt.operat is None: errormess("you must specify an operation when using a reference file") … … 61 61 else: 62 62 [lschar,zehour,zehourin] = ["",0,0] 63 if opt.var is None: opt.var = ["phisinit"] ; opt.clb = "nobar" 63 if opt.var is None: 64 opt.var = ["phisinit"] ; opt.clb = "nobar" 65 ### temporaire... en attendant mieux. 66 if opt.back == "titan": opt.var = ["phis"] ; opt.clb = "nobar" 64 67 65 68 if opt.vmin is not None : zevmin = opt.vmin[min(i,len(opt.vmin)-1)] … … 172 175 mrate=opt.rate,mquality=opt.quality,trans=opt.trans,zarea=opt.area,axtime=opt.axtime,\ 173 176 redope=opt.redope,seevar=opt.seevar,xlab=opt.xlab,ylab=opt.ylab,lbls=separatenames(opt.labels),\ 174 lstyle=separatenames(opt.linestyle),cross=readslices(opt.mark), streamflag=opt.stream)177 lstyle=separatenames(opt.linestyle),cross=readslices(opt.mark),facwind=opt.facwind,streamflag=opt.stream) 175 178 print 'DONE: '+name 176 179 system("rm -f to_be_erased")
Note: See TracChangeset
for help on using the changeset viewer.