Changeset 1099 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Sep 11, 2016, 8:56:45 PM (8 years ago)
Author:
lfita
Message:

Including `turb': turbulence in 'operdim'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r1092 r1099  
    89438943                varoper = np.sum(varoper, axis=idim-noper)
    89448944            elif oper == 'turb':
    8945                 varmean = np.mean(varoper, axis=idim-noper)
     8945                varoper = np.mean(varoper, axis=idim-noper)
    89468946                opereddims.append(vardims[idim])
    89478947            elif oper == 'var':
     
    89568956            opereddims.append(vardims[idim])
    89578957
    8958     operedvals = varoper
     8958
     8959    # In 'turb' operation, resultant values have the original shape
     8960    if oper == 'turb':
     8961        operedvals = gen.oper_submatrix(varv, vardims, varoper, 'subc', doper)
     8962    else:
     8963        operedvals = varoper
    89598964           
    89608965    return operedvals, opereddims
Note: See TracChangeset for help on using the changeset viewer.