Changeset 957 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Jun 27, 2016, 11:45:51 AM (8 years ago)
Author:
lfita
Message:

Adding:

  • `statsurname': global variable with the possible surnames due to statistics
  • use of 'np.floor' in `pretty_int'
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/generic_tools.py

    r950 r957  
    1717fillValueF64 = 1.e20
    1818fillValueI32 = -99999
     19
     20# For variables_values
     21
     22# Variable name might come with a statistical surname...
     23statsurname=['min','max','mean','stdv', 'sum', 'turb']
    1924
    2025####### Content
     
    518523        quit(-1)
    519524
    520 # Variable name might come with a statistical surname...
    521     stats=['min','max','mean','stdv', 'sum']
    522 
    523525# Variables with a statistical section on their name...
    524526    NOstatsvars = ['zmaxth', 'zmax_th', 'lmax_th', 'lmaxth']
     
    526528    ifst = False
    527529    if not searchInlist(NOstatsvars, varName.lower()):
    528         for st in stats:
     530        for st in statsurname:
    529531            if varName.find(st) > -1:
    530532                print '    '+ fname + ": varibale '" + varName + "' with a " +       \
Note: See TracChangeset for help on using the changeset viewer.