Changeset 2652 in lmdz_wrf


Ignore:
Timestamp:
Jun 30, 2019, 3:42:43 PM (5 years ago)
Author:
lfita
Message:

Fixing 'rotate_objdic_2D'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/geometry_tools.py

    r2651 r2652  
    197197        objv = objdic[secn]
    198198        vectors = objv[0]
     199        lt = objv[1]
     200        lc = objv[2]
     201        lw = objv[3]
     202
    199203        rotvecs = np.zeros(vectors.shape, dtype=np.float)
    200204
     
    202206        for iv in range(Nvecs):
    203207            rotvecs[iv,:] = rotate_2D(vectors[iv,:], angle)
    204         rotobjdic[secn] = rotvecs
     208        rotobjdic[secn] = [rotvecs, lt, lc, lw]
    205209
    206210    return rotobjdic
Note: See TracChangeset for help on using the changeset viewer.