- Timestamp:
- Aug 22, 2016, 2:14:17 PM (9 years ago)
- Location:
- trunk/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/generic_tools.py
r1040 r1042 23 23 24 24 # Variable name might come with a statistical surname... 25 statsurname=['min','max','mean','std', 'sum', 'turb' ]25 statsurname=['min','max','mean','std', 'sum', 'turb', 'var'] 26 26 27 27 ####### Content -
trunk/tools/nc_var_tools.py
r1037 r1042 8918 8918 elif oper == 'sum': 8919 8919 varoper = np.sum(varoper, axis=idim-noper) 8920 elif oper == 'var': 8921 varoper = np.var(varoper, axis=idim-noper) 8920 8922 else: 8921 8923 print errormsg … … 8943 8945 which operation has to be done 8944 8946 opkind= operation to perform along the dimensions with a range: max, mean, 8945 mean2, min, sum 8947 mean2, min, sum, var 8946 8948 """ 8947 8949 fname = 'operation_alongdims' … … 9020 9022 elif opkind == 'std': 9021 9023 varoper = np.std(origvar, axis=ids-noper) 9024 elif opkind == 'var': 9025 varoper = np.var(origvar, axis=ids-noper) 9022 9026 else: 9023 9027 print errormsg … … 9073 9077 which operation has to be done 9074 9078 [opkind]; operation to perform along the dimensions with a range: max, mean, 9075 mean2, min, sum 9079 mean2, min, sum, var 9076 9080 [dimvn]; [varname1]:[varname2]:[...[varnameM]] variables with the values of the 9077 9081 dimensions … … 9093 9097 # Operations with which when the variable dimensions will be ajusted to the file 9094 9098 # the zero value along the operated dimensions will be taken 9095 zerodimops = ['max', 'mean', 'mean2', 'min', 'sum', 'std' ]9099 zerodimops = ['max', 'mean', 'mean2', 'min', 'sum', 'std', 'var'] 9096 9100 9097 9101 dimsoperS = gen.numVector_String(dimsoper,', ')
Note: See TracChangeset
for help on using the changeset viewer.