Ignore:
Timestamp:
Jul 5, 2011, 8:56:29 AM (14 years ago)
Author:
aslmd
Message:

MESOSCALE: python graphics. fix the program so that it guesses the correct local time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE/PLOT/PYTHON/mylib/myplot.py

    r195 r197  
    5050        if zeday < 0:    lschar=""  ## might have crossed a month... fix soon
    5151        else:            lschar="_Ls"+str( int( sol2ls ( getattr( nc, 'JULDAY' ) + zeday ) ) )
     52        ###
     53        zetime2 = nc.variables['Times'][1]
     54        one  = int(zetime[11]+zetime[12]) + int(zetime[14]+zetime[15])/37.
     55        next = int(zetime2[11]+zetime2[12]) + int(zetime2[14]+zetime2[15])/37.
     56        zehour    = one
     57        zehourin  = abs ( next - one )
    5258    else:
    5359        lschar=""
    54     return lschar
     60        zehour = 0
     61        zehourin = 1 
     62    return lschar, zehour, zehourin
    5563
    5664def api_onelevel (  path_to_input   = None, \
Note: See TracChangeset for help on using the changeset viewer.