Changeset 425
- Timestamp:
- Nov 25, 2011, 5:06:34 PM (14 years ago)
- Location:
- trunk/UTIL/PYTHON
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/myplot.py
r422 r425 678 678 fmtvar = { \ 679 679 "TK": "%.0f",\ 680 # Variables from TES ncdf format680 # Variables from TES ncdf format 681 681 "T_NADIR_DAY": "%.0f",\ 682 682 "T_NADIR_NIT": "%.0f",\ 683 # Variables from tes.py ncdf format683 # Variables from tes.py ncdf format 684 684 "TEMP_DAY": "%.0f",\ 685 685 "TEMP_NIGHT": "%.0f",\ 686 # Variables from MCS and mcs.py ncdf format686 # Variables from MCS and mcs.py ncdf format 687 687 "DTEMP": "%.0f",\ 688 688 "NTEMP": "%.0f",\ 689 # other stuff 689 690 "TPOT": "%.0f",\ 690 691 "TSURF": "%.0f",\ … … 726 727 "HGT": "spectral",\ 727 728 "TK": "gist_heat",\ 729 "TPOT": "Paired",\ 728 730 "TSURF": "RdBu_r",\ 729 731 "QH2O": "PuBu",\ … … 927 929 # output : all indexes to be taken into account for reducing field 928 930 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 ### 929 935 if ( np.array(axis).ndim == 2): 930 936 axis = axis[:,0] -
trunk/UTIL/PYTHON/myscript.py
r424 r425 21 21 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]') 22 22 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 pressureinterpolation grid')23 parser.add_option('--intas', action='store',dest='intas', type="string", default=None, help='specify "mcs" or "tes" for gcm P interpolation grid') 24 24 parser.add_option('-N', '--no-api', action='store_true',dest='nocall', default=False, help='do not recreate api file') 25 25 -
trunk/UTIL/PYTHON/planetoplot.py
r424 r425 257 257 if typefile in ['mesoapi','meso']: 258 258 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" 260 260 else: errormess("local times not supported for GCM files. not too hard to modify the code though.") 261 261 if mapmode == 1 and stime is None: indextime = 1 262 262 else: indextime = getsindex(stime,((nplot-1)//(nlon*nlat*nvert))%ntime,time) 263 263 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 264 265 #################################################################### 265 266
Note: See TracChangeset
for help on using the changeset viewer.