Changeset 504 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Jun 16, 2015, 6:46:09 PM (9 years ago)
Author:
lfita
Message:

Changing to `seconds' as unit of time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/TS_ASCII_netCDF.py

    r461 r504  
    145145# time
    146146newvar = objofile.createVariable('time','f8',('time'))
    147 newvar[:] = time_stepv
    148 newattr = ncvar.basicvardef(newvar, 'time', 'time', 'hours since ' +                 \
     147newvar[:] = time_stepv*3600.
     148newattr = ncvar.basicvardef(newvar, 'time', 'time', 'seconds since ' +               \
    149149  simstarttime.replace('_',' '))
    150150ncvar.set_attribute(newvar, 'calendar', 'standard')
Note: See TracChangeset for help on using the changeset viewer.