Ignore:
Timestamp:
Dec 1, 2011, 12:30:21 AM (13 years ago)
Author:
aslmd
Message:

GRAPHICS: minor fixes and comments for movies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/planetoplot.py

    r434 r435  
    77### A. Colaitis  -- LMD --    11/2011 -- Mostly minor improvements and inter-plot operation capabilities + zrecast interpolation for gcm
    88### 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]
    910
    1011def planetoplot (namefiles,\
     
    8889    if slon is not None: vlon = slon[0][0]
    8990    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.
    9092    if mapmode == 0:       winds=False
    9193    elif mapmode == 1:     
     
    264266                   print "OK... WORKING WITH LOCAL TIMES"
    265267               else: errormess("local times not supported for GCM files. not too hard to modify the code though.")
    266        if mapmode == 1 and stime is None:   indextime = 1
    267        elif mrate is not None:              indextime = None
    268        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)
    269271       ltst = None
    270272       if typefile in ['mesoapi','meso'] and indextime is not None:  ltst = localtime ( interv[0]+indextime*interv[1], 0.5*(wlon[0]+wlon[1]) ) 
     
    294296                  #zelevels=[-10.,-8.,-6.,-4.,-2.,0.,2.,4.,6.,8.,10.]
    295297                  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)
    300299              ### If we plot a 1-D field
    301300              elif len(what_I_plot.shape) is 1:
Note: See TracChangeset for help on using the changeset viewer.