Changeset 2758 in lmdz_wrf for trunk/tools
- Timestamp:
- Nov 13, 2019, 4:34:16 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/generic_tools.py
r2757 r2758 618 618 619 619 Tspace = True 620 Nchars = len(newstring) 620 621 newstring2 = '' 621 for ic in range(Nchars- 2,-1,-1):622 for ic in range(Nchars-1,-1,-1): 622 623 if Tspace: 623 624 if newstring[ic:ic+1] == ' ': … … 17393 17394 17394 17395 stvalues = list_listKs(values, stKs) 17396 if type(stvalues[icrit]) != type(stv): 17397 print errormsg 17398 print ' ' + fname + ": types of values for '" + stcrit + "' in " + \ 17399 "list ", type(stvalues[icrit]), 'and provided one', type(stv), \ 17400 'do not coincide !!' 17401 quit(-1) 17402 17395 17403 if not searchInlist(availvals, stvalues[icrit]): 17396 17404 availvals.append(stvalues[icrit]) 17397 17405 print "'" + stvalues[icrit] + "'", "'"+ stv+ "'", type(stvalues[icrit]), type(stv), stvalues[icrit] == stv 17398 if stvalues[icrit] == stv: 17399 stations[Nst] = stvalues 17400 Nst = Nst + 1 17406 print begend_spaces(stvalues[icrit]), begend_spaces(stv), begend_spaces(stvalues[icrit]) == begend_spaces(stv) 17407 if type(stvalues[icrit]) == type('S') or type(stvalues[icrit]) == \ 17408 type(unicode('S')): 17409 if begend_spaces(stvalues[icrit]) == begend_spaces(stv): 17410 stations[Nst] = stvalues 17411 Nst = Nst + 1 17412 else: 17413 if stvalues[icrit] == stv: 17414 stations[Nst] = stvalues 17415 Nst = Nst + 1 17401 17416 17402 17417 if Nst == 0:
Note: See TracChangeset
for help on using the changeset viewer.