Ignore:
Timestamp:
Nov 30, 2011, 6:08:18 PM (13 years ago)
Author:
acolaitis
Message:

PYTHON. Sorry I committed some stuff about contour lines which were not meant to be committed

File:
1 edited

Legend:

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

    r430 r431  
    153153          else:                 londim='WEST-EAST_PATCH_END_UNSTAG'
    154154          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)
    156157          if typefile in ['geo']:   vert = [0.] ; stime = readslices(str(0))
    157158          else:
     
    290291              ### If we plot a 2-D field
    291292              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.]
    293294                  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)
    298299              ### If we plot a 1-D field
    299300              elif len(what_I_plot.shape) is 1:
Note: See TracChangeset for help on using the changeset viewer.