Changeset 818 for trunk/UTIL


Ignore:
Timestamp:
Oct 25, 2012, 11:55:13 PM (12 years ago)
Author:
aslmd
Message:

UTIL PYTHON. small corrections using nocolorb. corrected: now when only one level is asked vert is automatically to that level (has been broken at some point)

File:
1 edited

Legend:

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

    r817 r818  
    3636    ### Get infos about slices
    3737    zeslat  = readslices(opt.slat) ; zeslon  = readslices(opt.slon) ; zesvert = readslices(opt.svert) ; zestime = readslices(opt.stime)
     38
    3839    reffile = opt.fref
    3940    zexaxis = [opt.xmin,opt.xmax] ; zeyaxis=[opt.ymin,opt.ymax]
     
    5556      if typefile in ["meso"]:         
    5657          [lschar,zehour,zehourin] = getlschar ( zefiles[0] )
    57           if opt.var is None:  opt.var = ["HGT"] #; opt.clb = "nobar" # otherwise breaks the automatic one-var file capability
     58          if opt.var is None:  opt.var = ["HGT"] ; opt.nocolorb = True
    5859      elif typefile in ["geo"]:
    5960          lschar=""
    60           if opt.var is None:  opt.var = ["HGT_M"] ; opt.clb = "nobar"
     61          if opt.var is None:  opt.var = ["HGT_M"] ; opt.nocolorb = True
    6162      else:                                     
    6263          lschar=""
     
    6465             opt.var = ["phisinit"] ; opt.clb = "nobar"
    6566             ### temporaire... en attendant mieux.
    66              if opt.back == "titan": opt.var = ["phis"] ; opt.clb = "nobar"
     67             if opt.back == "titan": opt.var = ["phis"] ; opt.nocolorb = True
    6768
    6869      if opt.vmin is not None : zevmin  = opt.vmin[min(i,len(opt.vmin)-1)]
     
    8283            zelevel = float(inputnvert[0])
    8384            ze_interp_levels = [-9999.]
     85            zesvert = readslices([str(zelevel)])
    8486        elif np.array(inputnvert).size > 2:
    8587            zelevel = -99.
Note: See TracChangeset for help on using the changeset viewer.