Changeset 1099 in lmdz_wrf for trunk/tools
- Timestamp:
- Sep 11, 2016, 8:56:45 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r1092 r1099 8943 8943 varoper = np.sum(varoper, axis=idim-noper) 8944 8944 elif oper == 'turb': 8945 var mean= np.mean(varoper, axis=idim-noper)8945 varoper = np.mean(varoper, axis=idim-noper) 8946 8946 opereddims.append(vardims[idim]) 8947 8947 elif oper == 'var': … … 8956 8956 opereddims.append(vardims[idim]) 8957 8957 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 8959 8964 8960 8965 return operedvals, opereddims
Note: See TracChangeset
for help on using the changeset viewer.