Changeset 1304 in lmdz_wrf for trunk


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

Imposing refyear at 1900' when original one was at 0000'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r1302 r1304  
    1760417604
    1760517605    RefDate = CFT.split(' ')[2]
     17606    # Fixing 0000 year issue...
     17607    if int(RefDate[0:4]) == 0:
     17608        print warnmsg
     17609        print '  ' + fname + ': Imposing a new reference year for dates on '1900' !!"
     17610        RefDate[0:4] = '1900'
     17611
    1760617612    RefDateS = RefDate[0:4] + '-' + RefDate[4:6] + '-' + RefDate[6:8] + ' ' +        \
    1760717613      RefDate[8:10] + ':' + RefDate[10:12] + ':' + RefDate[12:14]
    1760817614    CFtimeUnits = ' '.join(CFT.split(' ')[0:2]) + ' '+ RefDateS
     17615
    1760917616
    1761017617    newtvals = gen.coincident_CFtimes(tvals, CFtimeUnits, tunits)
Note: See TracChangeset for help on using the changeset viewer.