Changeset 2721 in lmdz_wrf


Ignore:
Timestamp:
Oct 6, 2019, 12:12:42 AM (6 years ago)
Author:
lfita
Message:

Adding availunits in 'CFtims_plot' error message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r2717 r2721  
    22482248    """
    22492249    import datetime as dt
     2250    availunits = ['weeks','days', 'hours', 'minutes', 'seconds', 'milliseconds']
     2251    availexcttunits = ['c: centuries', 'y: year', 'm: month', 'w: week', 'd: day',   \
     2252      'h: hour', 'i: minute', 's: second', 'l: milisecond']
    22502253
    22512254# Seconds between 0001 and 1901 Jan - 01
     
    23202323        print errormsg
    23212324        print '  ' + fname + ': reference time units "' + trefu + '" not ready!!!!'
     2325        print '    available ones:', availunits
    23222326        quit(-1)
     2327   
    23232328
    23242329    okind=kind.split(',')[0]
     
    25992604            print errormsg
    26002605            print '  '  + fname + ': exact units "' + tu + '" not ready!!!!!'
     2606            print '    available ones:', availexcttunits
    26012607            quit(-1)
    26022608
Note: See TracChangeset for help on using the changeset viewer.