Changeset 1254 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Nov 2, 2016, 7:24:51 PM (8 years ago)
Author:
lfita
Message:

Fixing `stagger_unstagger' by using the list of dimensions inistead of the dictinoary which gives the right order of dimensions for the final result

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/generic_tools.py

    r1233 r1254  
    86418641    idim = 0
    86428642    for vd in dndims:
    8643         idim = dndims.index(vd)
    86448643        if searchInlist(udndims, vd):
    86458644            if varv.shape[idim] - 1 == udims[vd]:
     
    86528651              varv.shape[idim], 'as staggered dim'
    86538652        newdims.append(vdstaggered[vd])
     8653        idim = idim + 1
    86548654
    86558655    if len(vdstaggered) > 1:
     
    86598659        upstagslc = []
    86608660        downstagslc = []
    8661         for vd in vdstaggered.keys():
     8661        for vd in dndims:
    86628662            idim = dndims.index(vd)
    86638663            if vdstaggered[vd] != varv.shape[idim]:
Note: See TracChangeset for help on using the changeset viewer.