Changeset 1104 in lmdz_wrf
- Timestamp:
- Sep 13, 2016, 9:30:39 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/model_graphics.py
r1095 r1104 962 962 tmean: temporal mean values 963 963 tstd: temporal standard deviation values 964 t urb: Taylor's turbulence decomposition value965 tvar: temporal variance values (Taylor's turbulence)964 tturb: Taylor's turbulence decomposition value (x - <x>) for time 965 tvar: temporal variance values 966 966 xmean: x-axis mean values 967 967 xvar: x-axis variance values … … 1235 1235 varkeep.append('timestats') 1236 1236 1237 # elif op == 'turb': 1238 # # turbulence values 1239 # vals='turbulence|'${CFvarn} 1240 # dims='time@time,'${dnz}'@'${vdnz}',lat@lat,lon@lon,pres@pres' 1241 # pyins = pyH + "/diagnostics.py -d " + dims + " -v '" +vals + \ 1242 # "' -f " prevfiles 1243 # if dofile: 1244 # try: 1245 # with gen.Capturing() as output: 1246 # sout = sub.call('python ' + pyins, shell=True) 1247 # except: 1248 # print errmsg 1249 # print pyins 1250 # for s1out in output: print s1out 1251 # quit(-1) 1252 1253 # if db: 1254 # for s1out in output: print s1out 1255 1256 # sout = sub.call('mv diagnostics.nc '+fileon, shell=True) 1257 1258 # # Keeping the operations 1259 # pyins="python "${pyHOME}"/diagnostics.py -d "${dims}" -v '"${vals} 1260 # pyins=${pyins}"' -f ${cfiles}" 1261 # echo " " >> ${odir}/all_statsvars.inf 1262 # echo "# ${CFvarn}" "${vark}" >> ${odir}/all_statsvars.inf 1263 # echo ${pyins} >> ${odir}/all_statsvars.inf 1264 1265 # varkeep=':'${CFvarn}'turb' 1237 elif op == 'tturb': 1238 # temporal turbulent values 1239 vals='time|-1,time,turb,' + ':'.join(varnCFs) + ':' + vdnz 1240 dims = gen.dictvar_listS(varnCFs,CFdimvardict,',','@') + dnz+'@'+vdnz 1241 if dofile: 1242 try: 1243 with gen.Capturing() as output: 1244 ncvar.file_oper_alongdims(vals,prevfile,CFvarnp) 1245 except: 1246 print errmsg 1247 print 'file_oper_alongdims('+vals+',', prevfile, ','+CFvarnp+')' 1248 for s1out in output: print s1out 1249 quit(-1) 1250 1251 if db: 1252 for s1out in output: print s1out 1253 1254 sout = sub.call('mv file_oper_alongdims_turb.nc '+fileon, shell=True) 1255 1256 # Keeping the operations 1257 pyins=pyH + "/nc_var.py -o file_oper_alongdims -S '" + vals + \ 1258 "' -f " + prevfile + " -v " + CFvarnp 1259 otrackf.write("\n") 1260 otrackf.write("# " + CFvarn + " " + Fopers + "\n") 1261 otrackf.write(pyins + "\n") 1262 1263 # removing dimension variable-dimension 'time' 1264 varkeep.append('timestats') 1266 1265 1267 1266 elif op == 'tvar': … … 2882 2881 tmean: temporal mean values 2883 2882 tstd: temporal standard deviation values 2884 t urb: Taylor's turbulence decomposition value2885 tvar: temporal variance values (Taylor's turbulence)2883 tturb: Taylor's turbulence decomposition value (x - <x>) for time 2884 tvar: temporal variance values 2886 2885 xmean: x-axis mean values 2887 2886 xvar: x-axis variance values … … 3075 3074 varkeep.append('timestats') 3076 3075 3077 # elif op == 'turb': 3078 # # turbulence values 3079 # vals='turbulence|'${CFvarn} 3080 # dims='time@time,'${dnz}'@'${vdnz}',lat@lat,lon@lon,pres@pres' 3081 # pyout=`python ${pyHOME}/diagnostics.py -d ${dims} -v ${vals} -f ${cfiles}` 3082 3083 # # Keeping the operations 3084 # pyins="python "${pyHOME}"/diagnostics.py -d "${dims}" -v '"${vals} 3085 # pyins=${pyins}"' -f ${cfiles}" 3086 # echo " " >> ${odir}/all_statsvars.inf 3087 # echo "# ${CFvarn}" "${vark}" >> ${odir}/all_statsvars.inf 3088 # echo ${pyins} >> ${odir}/all_statsvars.inf 3089 3090 # varkeep=':'${CFvarn}'turb' 3076 elif op == 'tturb': 3077 # temporal turbulent values 3078 vals='time|-1,time,turb,' + ':'.join(varnCFs) 3079 dims = gen.dictvar_listS(varnCFs,CFdimvardict,',','@') 3080 if dofile: 3081 try: 3082 with gen.Capturing() as output: 3083 ncvar.file_oper_alongdims(vals,prevfile,CFvarnp) 3084 except: 3085 print errmsg 3086 print 'file_oper_alongdims('+vals+',', prevfile, ','+CFvarnp+')' 3087 for s1out in output: print s1out 3088 quit(-1) 3089 3090 if db: 3091 for s1out in output: print s1out 3092 3093 sout = sub.call('mv file_oper_alongdims_turb.nc '+fileon, shell=True) 3094 3095 # Keeping the operations 3096 pyins=pyH + "/nc_var.py -o file_oper_alongdims -S '" + vals + \ 3097 "' -f " + prevfile + " -v " + CFvarnp 3098 otrackf.write("\n") 3099 otrackf.write("# " + varn + " " + Fopers + "\n") 3100 otrackf.write(pyins + "\n") 3101 3102 varkeep.append('timestats') 3091 3103 3092 3104 elif op == 'tvar':
Note: See TracChangeset
for help on using the changeset viewer.