Changeset 557 in lmdz_wrf


Ignore:
Timestamp:
Jul 3, 2015, 3:00:29 PM (10 years ago)
Author:
lfita
Message:

Adding `None' values on 'writing_str_nc'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r552 r557  
    73277327    Nvals = len(values)
    73287328    for iv in range(Nvals):   
    7329         stringv=values[iv] 
     7329        if values[iv] is None:
     7330            stringv = 'None'
     7331        else:
     7332            stringv = values[iv] 
    73307333        charvals = np.chararray(Lchar)
    73317334        Lstr = len(stringv)
Note: See TracChangeset for help on using the changeset viewer.