Changeset 425


Ignore:
Timestamp:
Nov 25, 2011, 5:06:34 PM (14 years ago)
Author:
aslmd
Message:

GRAPHICS: cosmetic changes. corrected a bug in treating local times with two input meso files.

Location:
trunk/UTIL/PYTHON
Files:
3 edited

Legend:

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

    r422 r425  
    678678    fmtvar    =     { \
    679679             "TK":           "%.0f",\
    680 # Variables from TES ncdf format
     680             # Variables from TES ncdf format
    681681             "T_NADIR_DAY":  "%.0f",\
    682682             "T_NADIR_NIT":  "%.0f",\
    683 # Variables from tes.py ncdf format
     683             # Variables from tes.py ncdf format
    684684             "TEMP_DAY":     "%.0f",\
    685685             "TEMP_NIGHT":   "%.0f",\
    686 # Variables from MCS and mcs.py ncdf format
     686             # Variables from MCS and mcs.py ncdf format
    687687             "DTEMP":     "%.0f",\
    688688             "NTEMP":   "%.0f",\
     689             # other stuff
    689690             "TPOT":         "%.0f",\
    690691             "TSURF":        "%.0f",\
     
    726727             "HGT":          "spectral",\
    727728             "TK":           "gist_heat",\
     729             "TPOT":         "Paired",\
    728730             "TSURF":        "RdBu_r",\
    729731             "QH2O":         "PuBu",\
     
    927929# output : all indexes to be taken into account for reducing field
    928930  import numpy as np
     931  ### added by AS to treat the case of stime = - LT
     932  if saxis is not None:
     933      if saxis[0][0] < 0: saxis = - saxis
     934  ###
    929935  if ( np.array(axis).ndim == 2):
    930936      axis = axis[:,0]
  • trunk/UTIL/PYTHON/myscript.py

    r424 r425  
    2121    parser.add_option('-l', '--level',  action='store',dest='lvl',       type="string",  default="0",   help='level / start,stop,step (-i 2: p,mb)(-i 3,4: z,km) [0]')
    2222    parser.add_option('-i', '--interp', action='store',dest='itp',       type="int",     default=None,  help='interpolation (2: p, 3: z-amr, 4:z-als)')
    23     parser.add_option('--intas',        action='store',dest='intas',     type="string",  default=None,  help='specify "mcs" or "tes" for specific gcm pressure interpolation grid')
     23    parser.add_option('--intas',        action='store',dest='intas',     type="string",  default=None,  help='specify "mcs" or "tes" for gcm P interpolation grid')
    2424    parser.add_option('-N', '--no-api', action='store_true',dest='nocall',               default=False, help='do not recreate api file')
    2525
  • trunk/UTIL/PYTHON/planetoplot.py

    r424 r425  
    257257               if typefile in ['mesoapi','meso']:
    258258                   for i in range(len(time)):  time[i] = localtime ( interv[0]+time[i]*interv[1], 0.5*(wlon[0]+wlon[1]) )
    259                    stime = -stime ; print "OK... WORKING WITH LOCAL TIMES"
     259                   print "OK... WORKING WITH LOCAL TIMES"
    260260               else: errormess("local times not supported for GCM files. not too hard to modify the code though.")
    261261       if mapmode == 1 and stime is None:   indextime = 1
    262262       else:                                indextime = getsindex(stime,((nplot-1)//(nlon*nlat*nvert))%ntime,time)
    263263       if typefile in ['mesoapi','meso'] and indextime is not None:  ltst = localtime ( interv[0]+indextime*interv[1], 0.5*(wlon[0]+wlon[1]) ) 
     264       print "********** index lon, lat, vert, time ",indexlon,indexlat,indexvert,indextime
    264265       ####################################################################
    265266
Note: See TracChangeset for help on using the changeset viewer.