Changeset 763 in lmdz_wrf for trunk/tools/nc_var_tools.py
- Timestamp:
- May 9, 2016, 10:23:46 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r762 r763 4461 4461 else: 4462 4462 stringv = values[iv] 4463 charvals = np. chararray(Lchar)4463 charvals = np.zeros((Lchar), dtype='string_') 4464 4464 Lstr = len(stringv) 4465 4465 charvals[Lstr:Lchar] = '' 4466 4466 4467 4467 for ich in range(Lstr): 4468 chrv = stringv[ich:ich+1] 4469 if ord(chrv) == 32: chrv = unichr(32) 4468 4470 charvals[ich] = stringv[ich:ich+1] 4469 4470 print 'Lluis: ' + fname + 'stringv:', stringv, 'charvals:', charvals4471 quit()4472 4471 varo[iv,:] = charvals 4473 4472
Note: See TracChangeset
for help on using the changeset viewer.