Ignore:
Timestamp:
Oct 29, 2012, 12:19:22 PM (12 years ago)
Author:
aslmd
Message:

UTIL PYTHON. corrected a problem introduced in a previous commit. added --axtime ind to ask for time subscript instead of values.

File:
1 edited

Legend:

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

    r817 r822  
    248248              if initime == -1: initime=input("Please type initial local time:")
    249249              time = (initime+time*24)%24 ; print "LOCAL TIMES.... ", time
     250          ### (simply ask for subscript)
     251          if axtime in ["ind"]:
     252              dadim = getdimfromvar(nc)
     253              if   len(dadim) == 4:  time = np.arange(dadim[-4])
     254              elif len(dadim) == 3:  time = np.arange(dadim[-3])
     255              elif len(dadim) == 2:  time = np.arange(dadim[-2])
    250256
    251257    ### TYPE 2 : MESOSCALE FILES
     
    630636                        if indextime is None and axtime is not None and xlab is None:    xlabel(axtime.upper()) ## define the right label
    631637                        if save == 'txt':  writeascii(np.transpose([x,np.transpose(what_I_plot)]),'profile'+str(nplot*1000+imov)+'.txt')
    632                         if axtime == "lt":
     638                        if axtime == "lt" and indextime is None:
    633639                            ax = mpl.pyplot.gca()
    634640                            # set ticks where your images will be
Note: See TracChangeset for help on using the changeset viewer.