Changeset 407
- Timestamp:
- Nov 22, 2011, 11:17:24 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/planetoplot.py
r406 r407 225 225 print "********** nplot", nplot, "itime",itime,"error",error 226 226 227 time = all_time[index_f]227 # time = all_time[index_f] 228 228 229 229 ### Which local time ? … … 250 250 m = define_proj(proj,wlon,wlat,back=back,blat=blat) 251 251 x, y = m(lon2d, lat2d) 252 253 252 #################################################################### 254 253 ## get all indexes to be taken into account for this subplot and then reduce field … … 257 256 indexlat = getsindex(slat,((nplot-1)//nlon)%nlat,lat) 258 257 indexvert = getsindex(svert,((nplot-1)//(nlon*nlat))%nvert,vert) 258 259 if fileref is not None: index_f = ((nplot-1)//(nlon*nlat*nvert*ntime))%(len(namefiles)+2) ## OK only 1 var, see test in the beginning 260 else: yeah = len(namefiles)*len(var) ; index_f = ((nplot-1)//(nlon*nlat*nvert*ntime))%yeah 261 time = all_time[index_f] 262 259 263 if mapmode == 1 and stime is None: 260 264 indextime = itime … … 264 268 if typefile in ['mesoapi','meso'] and indextime is not None: ltst = localtime ( interv[0]+indextime*interv[1], 0.5*(wlon[0]+wlon[1]) ) 265 269 266 if fileref is not None: index_f = ((nplot-1)//(nlon*nlat*nvert*ntime))%(len(namefiles)+2) ## OK only 1 var, see test in the beginning267 else: yeah = len(namefiles)*len(var) ; index_f = ((nplot-1)//(nlon*nlat*nvert*ntime))%yeah268 270 #################################################################### 269 271
Note: See TracChangeset
for help on using the changeset viewer.