Changeset 406
- Timestamp:
- Nov 22, 2011, 10:50:50 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/planetoplot.py
r405 r406 96 96 print "********** FILES, SLICES, VARS, TOTAL PLOTS: ", len(namefiles), nslices, len(var), numplot 97 97 print "********** MAPMODE: ", mapmode 98 if fileref is not None: all_var = [[]]*(zelen+2) ; all_varname = [[]]*(zelen+2) ; all_namefile = [[]]*(zelen+2) 99 else: all_var = [[]]*zelen ; all_var2 = [[]]*zelen ; all_title = [[]]*zelen ; all_varname = [[]]*zelen ; all_namefile = [[]]*zelen 98 if fileref is not None: all_var = [[]]*(zelen+2) ; all_varname = [[]]*(zelen+2) ; all_namefile = [[]]*(zelen+2) ; all_time = [[]]*(zelen+2) 99 else: all_var = [[]]*zelen ; all_var2 = [[]]*zelen ; all_title = [[]]*zelen ; all_varname = [[]]*zelen ; all_namefile = [[]]*zelen ; all_time = [[]]*zelen 100 100 101 101 ################################################################################################# … … 175 175 all_varname[k] = varname 176 176 all_namefile[k] = namefile 177 all_time[k] = time 177 178 if var2: all_var2[k] = getfield(nc,var2) 178 179 ##### SPECIFIC … … 224 225 print "********** nplot", nplot, "itime",itime,"error",error 225 226 227 time = all_time[index_f] 228 226 229 ### Which local time ? 227 230 ltst = localtime ( interv[0]+itime*interv[1], 0.5*(wlon[0]+wlon[1]) ) … … 259 262 else: 260 263 indextime = getsindex(stime,((nplot-1)//(nlon*nlat*nvert))%ntime,time) 261 if indextime is not None:ltst = localtime ( interv[0]+indextime*interv[1], 0.5*(wlon[0]+wlon[1]) )264 if typefile in ['mesoapi','meso'] and indextime is not None: ltst = localtime ( interv[0]+indextime*interv[1], 0.5*(wlon[0]+wlon[1]) ) 262 265 263 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 beginning
Note: See TracChangeset
for help on using the changeset viewer.