Changeset 2759 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Nov 13, 2019, 4:36:21 PM (5 years ago)
Author:
lfita
Message:

Fixing `stations_values' for String value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/generic_tools.py

    r2758 r2759  
    1740317403            if not searchInlist(availvals, stvalues[icrit]):
    1740417404                availvals.append(stvalues[icrit])
    17405             print "'" + stvalues[icrit] + "'", "'"+ stv+ "'", type(stvalues[icrit]), type(stv), stvalues[icrit] == stv
    17406             print begend_spaces(stvalues[icrit]), begend_spaces(stv), begend_spaces(stvalues[icrit]) == begend_spaces(stv)
    1740717405            if type(stvalues[icrit]) == type('S') or type(stvalues[icrit]) ==        \
    1740817406              type(unicode('S')):
     
    1744717445    return stations
    1744817446
    17449 print stations_values('prov', 'Antartic')
    17450 quit()
    17451 
    1745217447def list_rmchar(listv, rmchr):
    1745317448    """ Function to remove a list of characters from its values
Note: See TracChangeset for help on using the changeset viewer.