Changeset 383 in lmdz_wrf for trunk


Ignore:
Timestamp:
Mar 23, 2015, 11:47:15 AM (10 years ago)
Author:
lfita
Message:

Fixing issues on taking values for the dimensions

Location:
trunk/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing.py

    r382 r383  
    526526        for dimsn in dimsshad:
    527527            if idimn == dimsn:
    528                 cutslice.append(slice(0,len(objsf.dimensions(idimn))))
     528                cutslice.append(slice(0,len(objsf.dimensions[idimn])))
    529529                found = True
    530530        if not found: cutslice.append(0)
     
    538538        for dimsn in dimsshad:
    539539            if idimn == dimsn:
    540                 cutslice.append(slice(0,len(objsf.dimensions(idimn))))
     540                cutslice.append(slice(0,len(objsf.dimensions[idimn])))
    541541                found = True
    542542        if not found: cutslice.append(0)
  • trunk/tools/drawing_tools.py

    r379 r383  
    38163816            else:
    38173817                y = np.zeros((dimxv.shape), dtype=np.float)
    3818                 print 'Lluis shapes y:',y.shape,'dimyv:',dimyv.shape
     3818                print 'Lluis shapes y:',y.shape,'dimyv:',dimyv.shape,'dimxv:',dimxv.shape
    38193819
    38203820                if y.shape[0] == dimyv.shape[0]:
Note: See TracChangeset for help on using the changeset viewer.