Changeset 608 for trunk/UTIL


Ignore:
Timestamp:
Mar 31, 2012, 2:12:55 PM (13 years ago)
Author:
aslmd
Message:

LMDZ.MARS: minor correction in solarlong. MESOSCALE: output mtot and icetot now same units, notes updated, improved save_this_simu so that all .def are saved. UTIL PYTHON: now in mesoscale mode, sections show lat/lon instead of nx or ny (to be improved), also corrected 1D labels that was not working for several time asked.

File:
1 edited

Legend:

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

    r603 r608  
    430430                   if len(what_I_plot.shape) == 3: itime=[0]
    431431                   m = None ; x = None ; y = None
    432                    what_I_plot, x, y = define_axis(lon,lat,vert,time,indexlon,indexlat,indexvert,\
     432                   latyeah = lat ; lonyeah = lon
     433                   if typefile in ['meso']:
     434                       # now that the section is determined we can set the real lat
     435                       # ... or for now, a temptative one.
     436                       if slon is not None: latyeah = lat2d[:,0]
     437                       if slat is not None: lonyeah = lon2d[0,:]
     438                   what_I_plot, x, y = define_axis(lonyeah,latyeah,vert,time,indexlon,indexlat,indexvert,\
    433439                         itime,what_I_plot, len(all_var[index_f].shape),vertmode)
    434440               ###
     
    491497                        if indextime is not None: lbl = lbl + " it" + str(indextime[0])
    492498                        if lbl == "": lbl = namefiles[index_f]
    493 
    494                         if lbls is not None: lbl=lbls[index_f]
     499                        if lbls is not None: lbl=lbls[nplot-1]
    495500
    496501                        if mrate is not None: x = y  ## because swapaxes...
     
    548553                        zelevels = np.linspace(zevminc,zevmaxc,ticks/2) #20)
    549554                        if var2 == 'HGT': zelevels = np.arange(-10000.,30000.,2000.)
    550                         if mapmode == 0:    
     555                        if mapmode == 0:   
    551556                            what_I_plot_frame, x, y = define_axis( lon,lat,vert,time,indexlon,indexlat,indexvert,\
    552557                                                              itime,what_I_plot_frame, len(all_var2[index_f].shape),vertmode )
Note: See TracChangeset for help on using the changeset viewer.