Changeset 1856 in lmdz_wrf for trunk/tools/generic_tools.py


Ignore:
Timestamp:
Mar 25, 2018, 7:21:02 PM (7 years ago)
Author:
lfita
Message:

Adding some more practical staff...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/generic_tools.py

    r1854 r1856  
    474474    fname = 'datetimeStr_conversion'
    475475
     476    availableSio = {'cfTime,[units]': 'time in CF-convention format [units] = ' +    \
     477        '[tunits] since [refdate]',                                                  \
     478        'matYmdHMS': 'numerical vector with [[YYYY], [MM], [DD], [HH], [MI], [SS]]', \
     479        'YmdHMS': '[YYYY][MM][DD][HH][MI][SS] format',                               \
     480        'Y-m-d_H:M:S': '[YYYY]-[MM]-[DD]_[HH]:[MI]:[SS] format',                     \
     481        'Y-m-d H:M:S': '[YYYY]-[MM]-[DD] [HH]:[MI]:[SS] format',                     \
     482        'Y/m/d H-M-S': '[YYYY]/[MM]/[DD] [HH]-[MI]-[SS] format',                     \
     483        'Y-m-dTH:M:SZ': '[YYYY]-[MM]-[DD]T[HH]:[MI]:[SS]Z UNIDATA format',           \
     484        'WRFdatetime': "[Y], [Y], [Y], [Y], '-', [M], [M], '-', [D], [D], '_', " +   \
     485          "[H], [H], ':', [M], [M], ':', [S], [S]"}
     486
    476487    if StringDT[0:1] == 'h':
    477488        print fname + '_____________________________________________________________'
     
    596607        print '  ' + fname + ': type of String input date "' + typeSi +              \
    597608          '" not ready !!!!'
     609        printing_dictionary(availableSio)
    598610        quit(-1)
    599611
     
    723735        print errormsg
    724736        print '  ' + fname + ': type of output date "' + typeSo + '" not ready !!!!'
     737        printing_dictionary(availableSio)
    725738        quit(-1)
    726739
Note: See TracChangeset for help on using the changeset viewer.