- Timestamp:
- Nov 10, 2016, 2:13:23 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r1302 r1304 17604 17604 17605 17605 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 17606 17612 RefDateS = RefDate[0:4] + '-' + RefDate[4:6] + '-' + RefDate[6:8] + ' ' + \ 17607 17613 RefDate[8:10] + ':' + RefDate[10:12] + ':' + RefDate[12:14] 17608 17614 CFtimeUnits = ' '.join(CFT.split(' ')[0:2]) + ' '+ RefDateS 17615 17609 17616 17610 17617 newtvals = gen.coincident_CFtimes(tvals, CFtimeUnits, tunits)
Note: See TracChangeset
for help on using the changeset viewer.