Changeset 770


Ignore:
Timestamp:
Sep 5, 2012, 3:30:09 PM (12 years ago)
Author:
acolaitis
Message:

PYTHON. Bug correction for cases when one call multiple times a dimension, eg: pp.py .... --time 1 --time 2 --time 3

File:
1 edited

Legend:

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

    r767 r770  
    13711371    nslices = 1
    13721372    if slon is not None:
    1373         if slon[0,0]!=slon[0,1]: length=len(slon)
    1374         else: length=1
     1373        length=len(slon[:,0])
    13751374        nslices = nslices*length
    13761375        nlon = len(slon)
    13771376    if slat is not None:
    1378         if slat[0,0]!=slat[0,1]: length=len(slat)
    1379         else: length=1
     1377        length=len(slat[:,0])
    13801378        nslices = nslices*length
    13811379        nlat = len(slat)
    13821380    if svert is not None:
    1383         if svert[0,0]!=svert[0,1]: length=len(svert)
    1384         else: length=1
     1381        length=len(slvert[:,0])
    13851382        nslices = nslices*length
    13861383        nvert = len(svert)
    13871384    if stime is not None:
    1388         if stime[0,0]!=stime[0,1]: length=len(stime)
    1389         else: length=1
     1385        length=len(stime[:,0])
    13901386        nslices = nslices*length
    13911387        ntime = len(stime)
Note: See TracChangeset for help on using the changeset viewer.