Changeset 483 for trunk/UTIL/PYTHON/planetoplot.py
- Timestamp:
- Dec 19, 2011, 9:57:26 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/planetoplot.py
r477 r483 58 58 trans=1,\ 59 59 zarea=None,\ 60 axtime=None): 60 axtime=None,\ 61 redope=None): 61 62 62 63 … … 181 182 if "Times" in nc.variables: time = count + np.arange(0,len(nc.variables["Times"]),1) 182 183 elif "Time" in nc.variables: time = count + np.arange(0,len(nc.variables["Time"]),1) 184 else: time = count + np.arange(0,1,1) 183 185 count = time[-1] + 1 ## so that a cat is possible with simple subscripts 184 186 ### … … 303 305 if varname: ### what is shaded. 304 306 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 ) 306 308 what_I_plot = what_I_plot*mult 307 309 if var2: ### what is contoured. … … 473 475 474 476 ### 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) 476 480 if len(what_I_plot.shape) > 3: 477 481 basename = basename + getstralt(nc,level)
Note: See TracChangeset
for help on using the changeset viewer.