Ignore:
Timestamp:
Apr 4, 2012, 4:36:50 PM (13 years ago)
Author:
aslmd
Message:

UTIL PYTHON: an example script for pp.py (whole ExoMars? report). minor corrections. MESOSCALE : dust storm def files

File:
1 edited

Legend:

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

    r612 r613  
    244244              elif axtime == "sol":   time = soltab
    245245          else:
    246               if "Times" in nc.variables:   time = count + np.arange(0,len(nc.variables["Times"]),1)
    247               elif "Time" in nc.variables:  time = count + np.arange(0,len(nc.variables["Time"]),1)
    248               else:                         time = count + np.arange(0,1,1)
     246              if "Times" in nc.dimensions:   time = count + np.arange(0,len(nc.dimensions["Times"]),1)
     247              elif "Time" in nc.dimensions:  time = count + np.arange(0,len(nc.dimensions["Time"]),1)
     248              else:                          time = count + np.arange(0,1,1)
    249249              if ope in ["cat"]:
    250250                 if nnn > 0:  count = time[-1] + 1  ## so that a cat is possible with simple subscripts
Note: See TracChangeset for help on using the changeset viewer.