Changeset 1425 in lmdz_wrf


Ignore:
Timestamp:
Jan 20, 2017, 12:10:54 PM (8 years ago)
Author:
lfita
Message:

Adding re-naming varibale time_centered' to time' in 'CF_DYNAMICO.nc'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r1423 r1425  
    1780917809    ncf.sync()
    1781017810
     17811    # CFing variable 'time_centerd'
     17812    if gen.searchInlist(ncvars,'time_centerd'):
     17813        print warnmsg
     17814        print fname + ": renaming variable 'time_centerd' as 'time' !!"
     17815        newname = ncf.renameVariable('time_centerd','time')
     17816    ncf.sync()
     17817
    1781117818    # Re-aranging time-axis
    1781217819    tvaro = ncf.variables['time_counter']
Note: See TracChangeset for help on using the changeset viewer.