Ignore:
Timestamp:
Sep 13, 2012, 12:29:15 PM (12 years ago)
Author:
acolaitis
Message:

UTIL PYTHON fixed mesoscale local time bugs introduced at revision 763. now working fine for LMD and MRAMS-generated wrfout files. plus polar domain now OK

File:
1 edited

Legend:

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

    r781 r782  
    299299          if axtime in ["lt"]:
    300300              ftime = np.zeros(len(time))
    301               for i in range(len(time)):
    302                  ftime[i] = localtime ( time[i], slon , nc )
    303               time=ftime
    304               time=check_localtime(time)
     301              for i in range(len(time)): ftime[i] = localtime ( time[i], slon , namefile )
     302              time=ftime ; time=check_localtime(time)
    305303              print "LOCAL TIMES.... ", time
    306304          ### we define the vertical axis (or lack thereof) and cover possibilities for it to be altitude, pressure, geopotential. quite SPECIFIC.
     
    463461       else:                                 indextime = getsindex(stime,((nplot-1)//(nlon*nlat*nvert))%ntime,time)
    464462       ltst = None
    465        if typefile in ['meso'] and indextime is not None and len(indextime) < 2: ltst = localtime ( indextime, slon , nc)
     463       if typefile in ['meso'] and indextime is not None and len(indextime) < 2: ltst = localtime ( indextime, slon , all_namefile[index_f])
    466464       print "********** INDEX LON:",indexlon," LAT:",indexlat," VERT:",indexvert," TIME:",indextime
    467465       ##var = nc.variables["phisinit"][:,:]
Note: See TracChangeset for help on using the changeset viewer.