Changeset 1842 in lmdz_wrf


Ignore:
Timestamp:
Mar 22, 2018, 8:00:34 PM (7 years ago)
Author:
lfita
Message:

Adding `'Y-m-dTH:M:SZ': [YYYY]-[MM]-[DD]T[HH]:[MI]:[SS]Z UNIDATA format to 'datetimeStr_conversion'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/generic_tools.py

    r1841 r1842  
    459459        'Y-m-d H:M:S': [YYYY]-[MM]-[DD] [HH]:[MI]:[SS] format
    460460        'Y/m/d H-M-S': [YYYY]/[MM]/[DD] [HH]-[MI]-[SS] format
     461        'Y-m-dTH:M:SZ': [YYYY]-[MM]-[DD]T[HH]:[MI]:[SS]Z UNIDATA format
    461462        'WRFdatetime': [Y], [Y], [Y], [Y], '-', [M], [M], '-', [D], [D], '_', [H],
    462463          [H], ':', [M], [M], ':', [S], [S]
     
    663664          str(da).zfill(2) + ' ' + str(ho).zfill(2) + '-' + str(mi).zfill(2) + '-' + \
    664665          str(se).zfill(2)
     666    elif typeSo = 'Y-m-dTH:M:SZ':
     667        dateYmdHMS = str(yr).zfill(4) + '-' + str(mo).zfill(2) + '-' +               \
     668          str(da).zfill(2) + 'T' + str(ho).zfill(2) + ':' + str(mi).zfill(2) + ':' + \
     669          str(se).zfill(2) + 'Z'
    665670    elif typeSo == 'WRFdatetime':
    666671        dateYmdHMS = []
     
    1268112686        axis: generic related axis
    1268212687        _CoordinateAxisType: generic type of axis
    12683         maxrank: maximunm allowed rank of the coordinate
     12688        maxrank: maximunm allowed rank of the variable dimension
    1268412689        length: length of the coordinate (0: unknown, -1: unlimited)
    1268512690    >>> CFcorValues('lon')
Note: See TracChangeset for help on using the changeset viewer.