Changeset 792 in lmdz_wrf


Ignore:
Timestamp:
Jun 1, 2016, 11:55:52 AM (9 years ago)
Author:
lfita
Message:

Adding flattening of the matrices to meet arrays size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing.py

    r785 r792  
    31173117
    31183118    pointvalues = ma.masked_array(np.zeros((Lpts,3), dtype=np.float))
    3119     pointvalues[:,0] = olonvar[:]
    3120     pointvalues[:,1] = olatvar[:]
    3121     pointvalues[:,2] = ovarvar[:]
     3119    pointvalues[:,0] = olonvar[:].flatten()
     3120    pointvalues[:,1] = olatvar[:].flatten()
     3121    pointvalues[:,2] = ovarvar[:].flatten()
    31223122
    31233123    varattrs = ovarvar.ncattrs()
Note: See TracChangeset for help on using the changeset viewer.