Ignore:
Timestamp:
Dec 8, 2011, 5:33:58 PM (13 years ago)
Author:
aslmd
Message:

UTIL:PYTHON: fixed combination of cat and -w. improved titles (less spurious lvl0 and LT stuff).

File:
1 edited

Legend:

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

    r458 r462  
    228228             elif ope in ["cat"]:
    229229                tab = all_var[0];k = 1
     230                if var2: tab2 = all_var2[0]
    230231                while k != len(namefiles):
     232                    if var2: tab2 = np.append(tab2,all_var2[k],axis=0)
    231233                    tab = np.append(tab,all_var[k],axis=0) ; k += 1
    232234                all_time[0] = np.arange(0,len(tab),1) ### AS: time reference is too simplistic, should be better
    233235                all_var[0] = np.array(tab) ; numplot = 1
     236                if var2: all_var2[0] = np.array(tab2)
    234237             else: errormess(ope+" : non-implemented operation. Check pp.py --help")
    235238        else:
     
    454457       ### Next subplot
    455458       basename = getname(var=varname,winds=winds,anomaly=anomaly)
    456        basename = basename + getstralt(nc,level)
     459       if len(what_I_plot.shape) > 3:
     460           basename = basename + getstralt(nc,level)
    457461       if mrate is not None: basename = "movie_" + basename
    458462       if typefile in ['mesoapi','meso']:
     
    460464            if slat is not None: basename = basename + "_lat_" + str(int(lat2d[indices[1],indices[0]]))
    461465            plottitle = basename
    462             if addchar: 
    463                 [addchar,gogol,gogol2] = getlschar ( all_namefile[index_f] )
    464                 plottitle = plottitle + addchar + "_LT"
    465             else:        plottitle = plottitle + "_LT"
    466             if ltst is not None: plottitle = plottitle + str(ltst)
     466            if addchar:   [addchar,gogol,gogol2] = getlschar ( all_namefile[index_f] )  ;  plottitle = plottitle + addchar
     467            if ltst is not None and ( (mapmode == 0) or (proj in ["lcc","laea","merc","nsper"]) ):  plottitle = plottitle + "_LT" + str(ltst)
    467468       else:
    468469            if fileref is not None:
Note: See TracChangeset for help on using the changeset viewer.