Changeset 665 for trunk/UTIL


Ignore:
Timestamp:
May 23, 2012, 10:33:16 AM (13 years ago)
Author:
aslmd
Message:

MESOSCALE : output more physical variables in Registry. update GCM for storm
simulations. bug fix in readmeteo with ccn. UTIL PYTHON : bug fix for
operation cat (time axis)

File:
1 edited

Legend:

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

    r647 r665  
    254254              elif axtime == "sol":   time = soltab
    255255          else:
     256              if ope in ["cat"] and nnn > 0:    count = time[-1] + 1  ## so that a cat is possible with simple subscripts
     257              else:                             count = 0
    256258              if "Times" in nc.dimensions:   time = count + np.arange(0,len(nc.dimensions["Times"]),1)
    257259              elif "Time" in nc.dimensions:  time = count + np.arange(0,len(nc.dimensions["Time"]),1)
    258260              else:                          time = count + np.arange(0,1,1)
    259               if ope in ["cat"]:
    260                  if nnn > 0:  count = time[-1] + 1  ## so that a cat is possible with simple subscripts
    261                  else:        count = 0
    262               else: count = 0
    263261          if axtime in ["lt"]:
    264262              ftime = np.zeros(len(time))
Note: See TracChangeset for help on using the changeset viewer.