Changeset 431 for trunk/UTIL/PYTHON/planetoplot.py
- Timestamp:
- Nov 30, 2011, 6:08:18 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/planetoplot.py
r430 r431 153 153 else: londim='WEST-EAST_PATCH_END_UNSTAG' 154 154 lon = np.arange(0,getattr(nc,londim),1) ; lat = np.arange(0,getattr(nc,latdim),1) 155 time = np.arange(0,len(nc.variables["Times"]),1) 155 if "Times" in nc.variables:time = np.arange(0,len(nc.variables["Times"]),1) 156 elif "Time" in nc.variables:time = np.arange(0,len(nc.variables["Time"]),1) 156 157 if typefile in ['geo']: vert = [0.] ; stime = readslices(str(0)) 157 158 else: … … 290 291 ### If we plot a 2-D field 291 292 if len(what_I_plot.shape) is 2: 292 zelevels=[-10.,-8.,-6.,-4.,-2.,0.,2.,4.,6.,8.,10.]293 #zelevels=[-10.,-8.,-6.,-4.,-2.,0.,2.,4.,6.,8.,10.] 293 294 cs = contour(x,y,what_I_plot, zelevels, colors='k', linewidths = 1 ) #0.33 colors='w' )# , alpha=0.5) 294 clabel(cs,zelevels,295 inline=3,296 fmt='%1.1f',297 fontsize=7)295 #clabel(cs,zelevels, 296 # inline=3, 297 # fmt='%1.1f', 298 # fontsize=7) 298 299 ### If we plot a 1-D field 299 300 elif len(what_I_plot.shape) is 1:
Note: See TracChangeset
for help on using the changeset viewer.