Changeset 238 for trunk/MESOSCALE_DEV/PLOT/PYTHON/scripts/winds.py
- Timestamp:
- Jul 20, 2011, 5:49:17 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE_DEV/PLOT/PYTHON/scripts/winds.py
r237 r238 25 25 zoom=None,\ 26 26 display=True,\ 27 itstep=None): 27 itstep=None,\ 28 hole=False): 28 29 29 30 #################################################################################################################### … … 50 51 typefile = whatkindfile(nc) ## TYPEFILE 51 52 if var not in nc.variables: var = False ## VAR 52 if winds: [uchar,vchar,metwind] = getwinddef(nc) ## WINDS 53 if uchar == 'not found': winds = False 53 if winds: ## WINDS 54 [uchar,vchar,metwind] = getwinddef(nc) 55 if uchar == 'not found': winds = False 54 56 [lon2d,lat2d] = getcoorddef(nc) ## COORDINATES, could be moved below 55 57 if proj == None: proj = getproj(nc) ## PROJECTION … … 122 124 palette = get_cmap(name=colorb) 123 125 if not tile: 124 if var in ["TAU_ICE","ICETOT"]: hole = True #nice plots with vis img 125 if not hole: what_I_plot = bounds(what_I_plot,zevmin,zevmax) 126 if not hole: what_I_plot = bounds(what_I_plot,zevmin,zevmax) 126 127 zelevels = np.linspace(zevmin,zevmax) 127 128 contourf( x, y, what_I_plot, zelevels, cmap = palette ) … … 177 178 else: zeplot = target + "/" + zeplot 178 179 ### 179 #if found_lct: makeplotpng(zeplot,pad_inches_value=0.35,disp=display) 180 if found_lct: makeplotpng(zeplot,disp=display) 180 if found_lct: makeplotpng(zeplot,pad_inches_value=0.35,disp=display) 181 181 #if found_lct: makeplotpngres(zeplot,200,disp=display) 182 182 else: print "Local time not found" … … 232 232 parser.add_option('-d', action='store_false',dest='display', default=True, help='do not pop up created images') 233 233 parser.add_option('-e', action='store',dest='itstep', type="int", default=None, help='stride time (def=4)') 234 parser.add_option('-H', action='store_true',dest='hole', default=False, help='holes above max and below min') 234 235 #parser.add_option('-V', action='store', dest='comb', type="float", default=None, help='a defined combination of variables') 235 236 (opt,args) = parser.parse_args() … … 302 303 addchar=lschar,interv=[zehour,zehourin],vmin=argvmin,vmax=argvmax,\ 303 304 tile=opt.tile,zoom=opt.zoom,display=opt.display,\ 304 itstep=opt.itstep )305 itstep=opt.itstep,hole=opt.hole) 305 306 print 'Done: '+name 306 307
Note: See TracChangeset
for help on using the changeset viewer.