Ignore:
Timestamp:
Jul 12, 2012, 8:02:52 PM (12 years ago)
Author:
aslmd
Message:

UTIL PYTHON. Added an option to set magnifying factor for winds. added support for GCM v5 files. added a handful of pretty cool background maps (titan, venus, triton, cobe, pluto). added the possibility to use div_var_only etc... instead of div_var to get only the operation plot. corrected bugs : if transparency is zero color for vectors must be set according to background not colorbar; added a line which avoid a bug with histograms and mesoscale files.

File:
1 edited

Legend:

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

    r647 r721  
    2323    ### Get options and variables
    2424    parser = OptionParser() ; getparseroptions(parser) ; (opt,args) = parser.parse_args()
    25     if opt.file is None:                                errormess("I want to eat one file at least ! Use winds.py -f name_of_my_file. Or type winds.py -h")
     25    if opt.file is None:                                errormess("I want to eat one file at least ! Use pp.py -f name_of_my_file. Or type pp.py -h")
    2626    if opt.var is None and opt.anomaly is True:         errormess("Cannot ask to compute anomaly if no variable is set")
    2727    if opt.fref is not None and opt.operat is None:     errormess("you must specify an operation when using a reference file")
     
    6161      else:                                       
    6262          [lschar,zehour,zehourin] = ["",0,0]
    63           if opt.var is None:  opt.var = ["phisinit"] ; opt.clb = "nobar"
     63          if opt.var is None: 
     64             opt.var = ["phisinit"] ; opt.clb = "nobar"
     65             ### temporaire... en attendant mieux.
     66             if opt.back == "titan": opt.var = ["phis"] ; opt.clb = "nobar"
    6467
    6568      if opt.vmin is not None : zevmin  = opt.vmin[min(i,len(opt.vmin)-1)]
     
    172175                mrate=opt.rate,mquality=opt.quality,trans=opt.trans,zarea=opt.area,axtime=opt.axtime,\
    173176                redope=opt.redope,seevar=opt.seevar,xlab=opt.xlab,ylab=opt.ylab,lbls=separatenames(opt.labels),\
    174                 lstyle=separatenames(opt.linestyle),cross=readslices(opt.mark),streamflag=opt.stream)
     177                lstyle=separatenames(opt.linestyle),cross=readslices(opt.mark),facwind=opt.facwind,streamflag=opt.stream)
    175178        print 'DONE: '+name
    176179        system("rm -f to_be_erased")
Note: See TracChangeset for help on using the changeset viewer.