Changeset 435 for trunk/UTIL/PYTHON/planetoplot.py
- Timestamp:
- Dec 1, 2011, 12:30:21 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/planetoplot.py
r434 r435 7 7 ### A. Colaitis -- LMD -- 11/2011 -- Mostly minor improvements and inter-plot operation capabilities + zrecast interpolation for gcm 8 8 ### A. Spiga -- LMD -- 11/2011 -- Extended multivar subplot capabilities + cosmetic changes + general cleaning and tests 9 ### A. Colaitis -- LMD -- 12/2011 -- Added movie capability [mencoder must be installed] 9 10 10 11 def planetoplot (namefiles,\ … … 88 89 if slon is not None: vlon = slon[0][0] 89 90 if slat is not None: vlat = slat[0][0] 91 if mrate is not None: mapmode = 0 ### THIS IS DIRTY. MAPMPODE=1 SHOULD WORK WITH MOVIES. WILL BE FIXED. 90 92 if mapmode == 0: winds=False 91 93 elif mapmode == 1: … … 264 266 print "OK... WORKING WITH LOCAL TIMES" 265 267 else: errormess("local times not supported for GCM files. not too hard to modify the code though.") 266 if m apmode == 1 and stime is None: indextime = 1267 elif m rate is not None: indextime = None268 else: indextime = getsindex(stime,((nplot-1)//(nlon*nlat*nvert))%ntime,time)268 if mrate is not None: indextime = None 269 elif mapmode == 1 and stime is None: indextime = 1 270 else: indextime = getsindex(stime,((nplot-1)//(nlon*nlat*nvert))%ntime,time) 269 271 ltst = None 270 272 if typefile in ['mesoapi','meso'] and indextime is not None: ltst = localtime ( interv[0]+indextime*interv[1], 0.5*(wlon[0]+wlon[1]) ) … … 294 296 #zelevels=[-10.,-8.,-6.,-4.,-2.,0.,2.,4.,6.,8.,10.] 295 297 cs = contour(x,y,what_I_plot, zelevels, colors='k', linewidths = 1 ) #0.33 colors='w' )# , alpha=0.5) 296 #clabel(cs,zelevels, 297 # inline=3, 298 # fmt='%1.1f', 299 # fontsize=7) 298 #clabel(cs,zelevels,inline=3,fmt='%1.1f',fontsize=7) 300 299 ### If we plot a 1-D field 301 300 elif len(what_I_plot.shape) is 1:
Note: See TracChangeset
for help on using the changeset viewer.