Changeset 2400 in lmdz_wrf for trunk


Ignore:
Timestamp:
Mar 11, 2019, 9:08:38 PM (6 years ago)
Author:
lfita
Message:

Fixing the right temporal values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r2399 r2400  
    50765076    gen.fmtprinting_class(timeinf)
    50775077
    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')
    50825085
    50835086    ncfobj.close()
Note: See TracChangeset for help on using the changeset viewer.