- Timestamp:
- Mar 11, 2019, 6:42:38 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r2392 r2395 2560 2560 if not timeval == -1: 2561 2561 # print ' refdate with time!' 2562 self.refdate = gen.datetimeStr_datetime(txtunits[len(txtunits) -2]+\2562 self.refdate= gen.datetimeStr_datetime(txtunits[len(txtunits)-2]+\ 2563 2563 '_' + Srefdate) 2564 2564 self.Urefdate = txtunits[len(txtunits) - 2] + ' ' + Srefdate … … 2573 2573 self.dt = timev[1]-timev[0] 2574 2574 self.firstTu = timev[0] 2575 self.firstTt = timeref_datetime(self.refdate, self.firstTu,self.units) 2575 self.firstTt = gen.timeref_datetime(self.refdate, self.firstTu, \ 2576 self.units) 2576 2577 self.firstTS = self.firstTt.strftime("%Y%m%d%H%M%S") 2577 self.firstTm = timeref_datetime_mat(self.refdate, self.firstTu,\2578 self.firstTm = gen.timeref_datetime_mat(self.refdate, self.firstTu, \ 2578 2579 self.units) 2579 2580 self.lastTu = timev[self.dimt-1] 2580 self.lastTt = timeref_datetime(self.refdate, self.lastTu, self.units) 2581 self.lastTt = gen.timeref_datetime(self.refdate, self.lastTu, \ 2582 self.units) 2581 2583 self.lastTS = self.lastTt.strftime("%Y%m%d%H%M%S") 2582 self.lastTm = timeref_datetime_mat(self.refdate, self.lastTu,\2584 self.lastTm = gen.timeref_datetime_mat(self.refdate, self.lastTu, \ 2583 2585 self.units) 2584 2586
Note: See TracChangeset
for help on using the changeset viewer.