Ignore:
Timestamp:
Nov 9, 2011, 3:28:13 PM (13 years ago)
Author:
acolaitis
Message:

M 362 planetoplot.py
M 362 meso.py
M 362 gcm.py
----------------- Added --inverty option to force pyplot to inverse the y axis of a contourplot. Usefull when plotting data along pressure vertical axis.

M 362 zrecast_wrapper.py
----------------- Some modif for the pressure interpolation. A following commit will make it cleaner so that interpolation details can be passed to zrecast from gcm.py

M 362 myplot.py
----------------- Minor modifs, added some variables.

File:
1 edited

Legend:

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

    r362 r363  
    5656    parser.add_option('--Mope',         action='store',dest='vmaxope', type="float",   default=0.,  help='bounding maximum value for inter-file operation')
    5757    parser.add_option('--titleref',     action='store',dest='titref',  type="string",  default="fill",  help='title for the reference file. Default: title of figure (1)')
     58    parser.add_option('--inverty',      action='store_true',dest='inverty',             default=False, help='Force matplotlib.pyplot to revert the y-axis. Can be of use when plotting data along pressure levels. (pyplot naturally tend to plot the z-axis with increasing values)')
     59   
    5860
    5961    ############# T.N. changes
     
    211213                slon=zeslon,slat=zeslat,svert=zesvert,stime=zestime,\
    212214                outputname=opt.output,resolution=opt.res,\
    213                 ope=opt.operation,fileref=reffile,minop=opt.vminope,maxop=opt.vmaxope,titleref=opt.titref)
     215                ope=opt.operation,fileref=reffile,minop=opt.vminope,maxop=opt.vmaxope,titleref=opt.titref,\
     216                invert_y=opt.inverty)
    214217        print 'Done: '+name
    215218        system("rm -f to_be_erased")
Note: See TracChangeset for help on using the changeset viewer.