Changeset 310 for trunk/MESOSCALE/LMD_MM_MARS/SRC/PYTHON/2dplot.py
- Timestamp:
- Sep 29, 2011, 3:59:01 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/LMD_MM_MARS/SRC/PYTHON/2dplot.py
r296 r310 26 26 #title = "Atmospheric temperature" 27 27 28 name = "wrfout_d01_2024-03-22_01:00:00_z" 29 itime = 12 30 ndiv = 10 31 zey = 120 32 var = "VMR_ICE" 33 title = "Volume mixing ratio of water ice [ppm]" 34 vmin = -0.5 35 vmax = 400. 36 28 37 nc = Dataset(name) 29 38 30 39 what_I_plot, error = reducefield( getfield(nc,var), d4=itime, d2=zey ) 40 31 41 32 42 y = nc.variables["vert"][:] … … 34 44 horinp = len(what_I_plot[0,:]) 35 45 x = np.linspace(0.,horinp*500.,horinp) / 1000. 46 xlabel("Horizontal coordinate (km)") 47 48 horinp = len(what_I_plot[0,:]) 49 x = np.linspace(0.,horinp,horinp) 50 xlabel("x grid points") 51 36 52 37 53 zevmin, zevmax = calculate_bounds(what_I_plot,vmin=vmin,vmax=vmax) … … 46 62 extend='neither',spacing='proportional') 47 63 ptitle(title) 48 xlabel("Horizontal coordinate (km)")49 64 ylabel("Altitude (m)") 50 65 makeplotres(var+str(itime),res=200.,disp=False)
Note: See TracChangeset
for help on using the changeset viewer.