Changeset 1336 for trunk/UTIL
- Timestamp:
- Aug 26, 2014, 6:06:26 PM (10 years ago)
- Location:
- trunk/UTIL/PYTHON/planetoplot_v2/examples/ppclass_additional
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/planetoplot_v2/examples/ppclass_additional/dynanalysis/eddyflux.py
r1279 r1336 7 7 ############################# 8 8 ff = "diagfi.nc" 9 ff = "diagfi739139.nc" 9 10 tt = 240. 11 tt = 100000. 10 12 ############################# 11 13 … … 16 18 17 19 # coordinates 18 press = pp(var="p",file= "diagfi.nc",t=tt,x=0,y=0).getf()20 press = pp(var="p",file=ff,t=tt,x=0,y=0).getf() 19 21 lat = np.linspace(-90.,90.,up.shape[1]) 20 22 … … 29 31 p.x = lat 30 32 p.y = press/100. 31 p.title = r"$\overline{u^\prime v^\prime}$" 33 #p.title = r'$\overline{u^\prime v^\prime}$' 34 p.title = "" 32 35 p.xlabel = "Latitude" 33 36 p.ylabel = "Pressure (mb)" 34 p.units = r "$m^{2}s^{-2}$"37 p.units = r'$m^{2}s^{-2}$' 35 38 p.invert = True 36 39 p.logy = True … … 40 43 p.vmax = 7 41 44 p.div = 28 42 p.makesave(mode=" jpg",filename="eddyflux")45 p.makesave(mode="png",filename="eddyflux") -
trunk/UTIL/PYTHON/planetoplot_v2/examples/ppclass_additional/froude_jump.py
r1192 r1336 8 8 fi = 'testisaac/wrfout_d04_2024-03-46_06:00:00_zabg' 9 9 fi = 'testisaac/wrfout_d03_2024-03-46_06:00:00_zabg' 10 fi = 'wrfout_d05_2024-03-46_06:00:00_zabg' 11 fi = 'wrfout_d05_2024-03-57_06:00:00_zabg' 10 12 ti = 1 11 13 ti = 10 14 ti = 7 12 15 zi = 25. # in meters 16 zi = 130. #ok vert velo 17 13 18 deltaT = 3. 19 deltaT = 4. 14 20 grav = 3.72 15 21 tpottest = 195. #test potential temperature for finding height of katabatic layer 22 #tpottest = 188. 23 tpottest = 200. 24 #tpottest = 205. 16 25 17 26 ### LOAD … … 46 55 p2d.title = "Topography" 47 56 p2d.colorbar = "gist_rainbow" 48 p2d.makeshow() 57 p2d.xlabel = "longitude" 58 p2d.ylabel = "latitude" 59 p2d.makesave(filename="topo") 49 60 50 61 p2d = plot2d() … … 55 66 p2d.title = "Froude number" 56 67 p2d.vmin = 0. 57 p2d.vmax = 4.58 p2d.div = 4059 p2d.colorbar = " gist_stern"68 p2d.vmax = 2. #4. 69 p2d.div = 20 #40 70 p2d.colorbar = "RdBu_r" #"gist_stern" 60 71 p2d.fmt = "%.1f" 61 p2d.makeshow() 72 p2d.xlabel = "longitude" 73 p2d.ylabel = "latitude" 74 p2d.makesave(filename="froude") 62 75 63 76 p2d = plot2d() … … 72 85 p2d.colorbar = "spectral" 73 86 p2d.fmt = "%.0f" 74 p2d.makeshow() 87 p2d.xlabel = "longitude" 88 p2d.ylabel = "latitude" 89 p2d.makesave(filename="height") 75 90 76 91 p2d = plot2d() … … 85 100 p2d.colorbar = "jet" 86 101 p2d.fmt = "%.0f" 87 p2d.makeshow() 102 p2d.xlabel = "longitude" 103 p2d.ylabel = "latitude" 104 p2d.makesave(filename="hwind") 88 105 89 106 p2d = plot2d() … … 98 115 p2d.colorbar = "RdBu_r" 99 116 p2d.fmt = "%.1f" 100 p2d.makeshow() 117 p2d.xlabel = "longitude" 118 p2d.ylabel = "latitude" 119 p2d.makesave(filename="vwind") 101 120
Note: See TracChangeset
for help on using the changeset viewer.