Changeset 193 for trunk/MESOSCALE/PLOT/PYTHON/scripts/winds.py
- Timestamp:
- Jul 4, 2011, 4:21:53 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/PLOT/PYTHON/scripts/winds.py
r192 r193 227 227 if found_lct: makeplotpng(zeplot,pad_inches_value=0.35) 228 228 else: print "Local time not found" 229 229 return zeplot 230 230 231 231 … … 251 251 from optparse import OptionParser ### to be replaced by argparse 252 252 from api_wrapper import api_onelevel 253 254 ############################# 255 ### Get options and variables 253 256 parser = OptionParser() 254 257 parser.add_option('-f', action='store', dest='namefile', type="string", default=None, help='[NEEDED] name of WRF file') … … 268 271 exit() 269 272 print "Options:", opt 270 271 273 zefile = opt.namefile 272 274 zelevel = opt.nvert 273 275 stralt = None 276 277 ##################################################### 278 ### Call Fortran routines for vertical interpolations 274 279 if opt.interp is not None: 275 280 if opt.nvert is 0 and opt.interp is 4: zelevel = 0.010 … … 290 295 zelevel = 0 ## so that zelevel could play again the role of nvert 291 296 292 winds (zefile,int(zelevel),\ 297 ############# 298 ### Main call 299 name = winds (zefile,int(zelevel),\ 293 300 proj=opt.proj,back=opt.back,target=opt.target,stride=opt.stride,var=opt.var,numplot=opt.numplot,colorb=opt.colorb,winds=opt.winds) 301 302 ######################################################### 303 ### Generate a .sh file with the used command saved in it 304 command = "" 305 for arg in sys.argv: command = command + arg + ' ' 306 f = open(name+'.sh', 'w') 307 f.write(command)
Note: See TracChangeset
for help on using the changeset viewer.