Ignore:
Timestamp:
Dec 19, 2011, 9:57:26 PM (13 years ago)
Author:
aslmd
Message:

PYTHON UTIL: added a new keyword --redope which allow to plot the minimum/maximum value over times stored in the file. MESOSCALE: provided a small fix in runmeso for case mars=12.

File:
1 edited

Legend:

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

    r477 r483  
    5858           trans=1,\
    5959           zarea=None,\
    60            axtime=None):
     60           axtime=None,\
     61           redope=None):
    6162
    6263
     
    181182              if "Times" in nc.variables:   time = count + np.arange(0,len(nc.variables["Times"]),1)
    182183              elif "Time" in nc.variables:  time = count + np.arange(0,len(nc.variables["Time"]),1)
     184              else:                         time = count + np.arange(0,1,1)
    183185              count = time[-1] + 1  ## so that a cat is possible with simple subscripts
    184186          ###
     
    303305       if varname:   ### what is shaded.
    304306           what_I_plot, error = reducefield( all_var[index_f], d4=indextime, d1=indexlon, d2=indexlat, d3=indexvert, \
    305                                              yint=yintegral, alt=vert, anomaly=anomaly )
     307                                             yint=yintegral, alt=vert, anomaly=anomaly, redope=redope )
    306308           what_I_plot = what_I_plot*mult
    307309       if var2:      ### what is contoured.
     
    473475
    474476       ### Next subplot
    475        basename = getname(var=varname,var2=var2,winds=winds,anomaly=anomaly)
     477       zevarname = varname
     478       if redope is not None: zevarname = zevarname + "_" + redope
     479       basename = getname(var=zevarname,var2=var2,winds=winds,anomaly=anomaly)
    476480       if len(what_I_plot.shape) > 3:
    477481           basename = basename + getstralt(nc,level)
Note: See TracChangeset for help on using the changeset viewer.