- Timestamp:
- Mar 11, 2019, 9:08:38 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r2399 r2400 5076 5076 gen.fmtprinting_class(timeinf) 5077 5077 5078 for it in range(timeinf.dimt): 5079 timev = timeinf.firstTu + timeinf.dt*it 5080 print it, ':', timev, ',', gen.datetimeStr_conversion(str(timev),'cfTime,'+ \ 5081 timeinf.unitsval, 'Y-m-d H:M:S') 5078 timevs = ncfobj.variables[tname] 5079 5080 if len(timevs.shape) == 1: 5081 for it in range(timeinf.dimt): 5082 timev = timevs[it] 5083 print it, ':', timev, ',', gen.datetimeStr_conversion(str(timev), \ 5084 'cfTime,'+timeinf.unitsval, 'Y-m-d H:M:S') 5082 5085 5083 5086 ncfobj.close()
Note: See TracChangeset
for help on using the changeset viewer.