Changeset 659 in lmdz_wrf for trunk


Ignore:
Timestamp:
Dec 8, 2015, 11:09:07 AM (9 years ago)
Author:
lfita
Message:

Adding in String_Boolean; 'T', 'F', 't', 'f' also as imputs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r658 r659  
    157157    fname = 'Str_Bool'
    158158
    159     if val == 'True' or val == 'true' or val == '1' or val == 'yes':
     159    if val == 'True' or val == 'true' or val == '1' or val == 'yes' or val == 'T' or val == 't':
    160160        boolv = True
    161161        boolv = True
    162     elif val == 'False' or val == 'false' or val == '0' or val== 'no':
     162    elif val == 'False' or val == 'false' or val == '0' or val== 'no' or val == 'F' or val == 'f':
    163163        boolv = False
    164164    else:
Note: See TracChangeset for help on using the changeset viewer.