Changeset 237 for trunk/MESOSCALE_DEV/PLOT/PYTHON
- Timestamp:
- Jul 20, 2011, 4:11:27 PM (13 years ago)
- Location:
- trunk/MESOSCALE_DEV/PLOT/PYTHON
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE_DEV/PLOT/PYTHON/mylib/myplot.py
r233 r237 165 165 from numpy import array 166 166 nc = Dataset(namefile) 167 zetime = None 167 168 if 'Times' in nc.variables: 168 169 zetime = nc.variables['Times'][0] … … 476 477 "HFX": "%.0f",\ 477 478 "ICETOT": "%.1e",\ 479 "TAU_ICE": "%.2f",\ 478 480 } 479 481 if whichvar not in fmtvar: … … 492 494 "HFX": "RdYlBu",\ 493 495 "ICETOT": "YlGnBu",\ 496 "TAU_ICE": "YlGnBu",\ 494 497 } 495 498 if whichone not in whichcolorb: -
trunk/MESOSCALE_DEV/PLOT/PYTHON/scripts/makefig.sh
r233 r237 4 4 file1="$fold/POLAR_THOMAS_ls50/wrfout_d03_2024-02-45_06:00:00" 5 5 file2="$fold/POLAR_THOMAS_ls20/wrfout_d03_2024-01-42_06:00:00" 6 file3="$fold/POLAR_THOMAS_ls0/wrfout_d03_2024-01-06_06:00:00"7 file 4="$fold/POLAR_THOMAS_ls10/wrfout_d03_2024-01-19_06:00:00"6 #file3="$fold/POLAR_THOMAS_ls0/wrfout_d03_2024-01-06_06:00:00" 7 file3="$fold/POLAR_THOMAS_ls10/wrfout_d03_2024-01-19_06:00:00" 8 8 dest="/u/aslmd/WWW/antichambre/thomas/" 9 9 … … 13 13 -v USTM -m 0. -M 0.8 \ 14 14 -v HGT -m 0 -M 0 \ 15 -f $file1 -f $file2 -f $file3 -f $file4\15 -f $file1 -f $file2 -f $file3 \ 16 16 -d -
trunk/MESOSCALE_DEV/PLOT/PYTHON/scripts/winds.py
r233 r237 33 33 ### Load librairies and functions 34 34 from netCDF4 import Dataset 35 from myplot import getcoord2d,define_proj,makeplotpng, simplinterv,vectorfield,ptitle,latinterv,getproj,wrfinterv,dumpbdy,\35 from myplot import getcoord2d,define_proj,makeplotpng,makeplotpngres,simplinterv,vectorfield,ptitle,latinterv,getproj,wrfinterv,dumpbdy,\ 36 36 fmtvar,definecolorvec,defcolorb,getprefix,putpoints,calculate_bounds,errormess,definesubplot,\ 37 37 zoomset,getcoorddef,getwinddef,whatkindfile,reducefield,bounds,getstralt,getfield … … 87 87 88 88 ### Which local time ? 89 print interv[0], interv[1], itime89 #print interv[0], interv[1], itime 90 90 ltst = ( interv[0] + 0.5*(wlon[0]+wlon[1])/15.) + itime*interv[1] 91 91 ltst = int (ltst * 10) / 10. … … 122 122 palette = get_cmap(name=colorb) 123 123 if not tile: 124 hole = True 125 hole = None 124 if var in ["TAU_ICE","ICETOT"]: hole = True #nice plots with vis img 126 125 if not hole: what_I_plot = bounds(what_I_plot,zevmin,zevmax) 127 126 zelevels = np.linspace(zevmin,zevmax) … … 178 177 else: zeplot = target + "/" + zeplot 179 178 ### 180 if found_lct: makeplotpng(zeplot,pad_inches_value=0.35,disp=display) 179 #if found_lct: makeplotpng(zeplot,pad_inches_value=0.35,disp=display) 180 if found_lct: makeplotpng(zeplot,disp=display) 181 #if found_lct: makeplotpngres(zeplot,200,disp=display) 181 182 else: print "Local time not found" 182 183
Note: See TracChangeset
for help on using the changeset viewer.