Changeset 1308 in lmdz_wrf for trunk


Ignore:
Timestamp:
Nov 10, 2016, 2:21:35 PM (9 years ago)
Author:
lfita
Message:

Passing to string the unicode `tunits' attribute

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r1307 r1308  
    1760117601    tvaro = ncf.variables['time_counter']
    1760217602    tvals = tvaro[:]
    17603     tunits = tvaro.getncattr('units')
     17603    tunits = str(tvaro.getncattr('units'))
    1760417604
    1760517605    # Fixing 0000 year issue...
Note: See TracChangeset for help on using the changeset viewer.