Changeset 428 for trunk/UTIL/PYTHON/planetoplot.py
- Timestamp:
- Nov 30, 2011, 11:22:27 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/planetoplot.py
r427 r428 92 92 numplot = zelen*nslices 93 93 print "********** FILES, SLICES, VARS, TOTAL PLOTS: ", len(namefiles), nslices, len(var), numplot 94 print "********** MAPMODE: ", mapmode95 94 if ope is not None: 96 95 if fileref is not None: zelen = zelen + 2 … … 116 115 ### ... TYPEFILE 117 116 typefile = whatkindfile(nc) 117 if typefile in ['les']: 118 mapmode=0 119 winds=False 120 if firstfile: print "********** MAPMODE: ", mapmode 118 121 if firstfile: typefile0 = typefile 119 122 elif typefile != typefile0: errormess("Not the same kind of files !", [typefile0, typefile]) … … 130 133 [lon2d,lat2d] = getcoorddef(nc) 131 134 ### ... PROJECTION 132 if proj == None: proj = getproj(nc)135 if ((proj == None) and (typefile not in ['les'])): proj = getproj(nc) 133 136 134 137 ########################################################## … … 139 142 else: errormess("no time axis found.") 140 143 vert = nc.variables["altitude"][:] 141 elif typefile in ['meso','mesoapi','geo' ]:144 elif typefile in ['meso','mesoapi','geo','les']: 142 145 if vlon is not None or vlat is not None: indices = bidimfind(lon2d,lat2d,vlon,vlat) ; print '********** INDICES: ', indices 143 146 if slon is not None: slon[0][0] = indices[0] ; slon[0][1] = indices[0] … … 329 332 #zelevels = np.linspace(zevmin*(1. + 1.e-7),zevmax*(1. - 1.e-7)) #,num=20) 330 333 zelevels = np.linspace(zevmin,zevmax,num=ticks) 334 print np.array(x).shape 335 print np.array(y).shape 336 print np.array(what_I_plot).shape 337 331 338 if mapmode == 1: m.contourf( x, y, what_I_plot, zelevels, cmap = palette) 332 339 elif mapmode == 0: contourf( x, y, what_I_plot, zelevels, cmap = palette)
Note: See TracChangeset
for help on using the changeset viewer.