- Timestamp:
- Nov 10, 2016, 2:45:04 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r1308 r1310 17605 17605 # Fixing 0000 year issue... 17606 17606 Stunits = tunits.split(' ') 17607 Utunits = tunits[0]17607 Utunits = Stunits[0] 17608 17608 if len(Stunits) == 4: 17609 17609 datetunits = Stunits[2] + ' ' + Stunits[3] … … 17613 17613 if int(datetunits[0:4]) == 0: 17614 17614 print warnmsg 17615 newdatetunits = datetunits.replace('0000', '1900') 17616 tunits = Utunits + ' since ' + newdatetunits 17615 17617 print ' ' + fname + ": Imposing a new units year for dates on '1900' !!" 17616 datetunits[0:4] = '1900' 17617 tunits = Utunits + ' since ' + datetunits 17618 print ' new time units reference: ' + tunits 17618 17619 17619 17620 RefDate = CFT.split(' ')[2]
Note: See TracChangeset
for help on using the changeset viewer.