Ignore:
Timestamp:
Dec 21, 2011, 3:22:19 PM (13 years ago)
Author:
aslmd
Message:

UTIL PYTHON : 1) no more negative values for --time but use --axtime lt ; this actually fix a stupid bug with negative lat lon. 2) use of -l is now possible with GCM files, try it with -i 2. 3) now correct handling of sol/ls in mesoscale files 4) for mesoscale files with chosen lat+lon now shows a topo map with a cross on it.

File:
1 edited

Legend:

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

    r483 r489  
    4444        yeah = glob.glob(opt.file[0]) ; yeah.sort()
    4545        opt.file[0] = yeah[0]
    46         for file in yeah: opt.file[0] = opt.file[0] + "," + file
     46        for file in yeah[1:]: opt.file[0] = opt.file[0] + "," + file
    4747
    4848    #############################
     
    7979            zelevel = float(inputnvert[0])
    8080            ze_interp_levels = [-9999.]
     81        elif np.array(inputnvert).size == 2:
     82            zelevel = -99.
     83            ze_interp_levels = np.linspace(float(inputnvert[0]),float(inputnvert[1]),20)
    8184        else:
    8285            zelevel = -99.
     
    122125                    input_name=zefiles,\
    123126                    fields=inputvar,\
     127                    limites = ze_interp_levels,\
    124128                    predefined=opt.intas)
    125129
Note: See TracChangeset for help on using the changeset viewer.