Changeset 400


Ignore:
Timestamp:
Nov 18, 2011, 9:45:09 PM (13 years ago)
Author:
aslmd
Message:

GRAPHICS: oups. forgot something in the previous commit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/myplot.py

    r399 r400  
    247247    from timestuff import sol2ls
    248248    from numpy import array
     249    from string import rstrip
     250    namefile = rstrip( rstrip( namefile, chars="_z"), chars="_zabg")
     251    #### we assume that wrfout is next to wrfout_z and wrfout_zabg
    249252    nc  = Dataset(namefile)
    250253    zetime = None
    251     if 'Times' in nc.variables: 
     254    if 'Times' in nc.variables:
    252255        zetime = nc.variables['Times'][0]
    253256        shape = array(nc.variables['Times']).shape
Note: See TracChangeset for help on using the changeset viewer.