Changeset 1043 in lmdz_wrf
- Timestamp:
- Aug 22, 2016, 2:14:28 PM (9 years ago)
- Location:
- trunk/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/model_graphics.py
r1041 r1043 682 682 tstd: temporal standard deviation values 683 683 turb: Taylor's turbulence decomposition value 684 tvar: temporal variance values (Taylor's turbulence) 684 685 xmean: x-axis mean values 685 686 ymean: y-axis mean values … … 956 957 # vals='turbulence|'${CFvarn} 957 958 # dims='time@time,'${dnz}'@'${vdnz}',lat@lat,lon@lon,pres@pres' 958 # pyout=`python ${pyHOME}/diagnostics.py -d ${dims} -v ${vals} -f ${cfiles}` 959 # pyins = pyH + "/diagnostics.py -d " + dims + " -v '" +vals + \ 960 # "' -f " prevfiles 961 # if dofile: 962 # try: 963 # with gen.Capturing() as output: 964 # sout = sub.call('python ' + pyins, shell=True) 965 # except: 966 # print errmsg 967 # print pyins 968 # for sout in output: print sout 969 # quit(-1) 970 971 # if db: 972 # for sout in output: print sout 973 974 # sout = sub.call('mv diagnostics.nc '+fileon, shell=True) 959 975 960 976 # # Keeping the operations … … 966 982 967 983 # varkeep=':'${CFvarn}'turb' 984 985 elif op == 'tvar': 986 # temporal variance values (Taylor's turbulence) 987 vals='time|-1,time,var,' + ':'.join(varnCFs) + ':' + vdnz 988 dims = gen.dictvar_listS(varnCFs,CFdimvardict,',','@') + dnz+'@'+vdnz 989 if dofile: 990 try: 991 with gen.Capturing() as output: 992 ncvar.file_oper_alongdims(vals,prevfile,CFvarnp) 993 except: 994 print errmsg 995 print 'file_oper_alongdims('+vals+',', prevfile, ','+CFvarnp+')' 996 for sout in output: print sout 997 quit(-1) 998 999 if db: 1000 for sout in output: print sout 1001 1002 sout = sub.call('mv file_oper_alongdims_var.nc '+fileon, shell=True) 1003 1004 # Keeping the operations 1005 pyins=pyH + "/nc_var.py -o file_oper_alongdims -S '" + vals + \ 1006 "' -f " + prevfile + " -v " + CFvarnp 1007 otrackf.write("\n") 1008 otrackf.write("# " + CFvarn + " " + Fopers + "\n") 1009 otrackf.write(pyins + "\n") 1010 1011 # removing dimension variable-dimension 'time' 1012 varnCFs.remove('time') 1013 1014 varkeep.append('timestats') 968 1015 969 1016 elif op == 'xmean': … … 2046 2093 tstd: temporal standard deviation values 2047 2094 turb: Taylor's turbulence decomposition value 2095 tvar: temporal variance values (Taylor's turbulence) 2048 2096 xmean: x-axis mean values 2049 2097 ymean: y-axis mean values … … 2251 2299 # varkeep=':'${CFvarn}'turb' 2252 2300 2301 elif op == 'tvar': 2302 # temporal variance values (Taylor's turbulence) 2303 vals='time|-1,time,var,' + ':'.join(varnCFs) + ':' + vdnz 2304 dims = gen.dictvar_listS(varnCFs,CFdimvardict,',','@') + dnz+'@'+vdnz 2305 if dofile: 2306 try: 2307 with gen.Capturing() as output: 2308 ncvar.file_oper_alongdims(vals,prevfile,CFvarnp) 2309 except: 2310 print errmsg 2311 print 'file_oper_alongdims('+vals+',', prevfile, ','+CFvarnp+')' 2312 for sout in output: print sout 2313 quit(-1) 2314 2315 if db: 2316 for sout in output: print sout 2317 2318 sout = sub.call('mv file_oper_alongdims_var.nc '+fileon, shell=True) 2319 2320 # Keeping the operations 2321 pyins=pyH + "/nc_var.py -o file_oper_alongdims -S '" + vals + \ 2322 "' -f " + prevfile + " -v " + CFvarnp 2323 otrackf.write("\n") 2324 otrackf.write("# " + varn + " " + Fopers + "\n") 2325 otrackf.write(pyins + "\n") 2326 2327 # removing dimension variable-dimension 'time' 2328 varnCFs.remove('time') 2329 2330 varkeep.append('timestats') 2331 2253 2332 elif op == 'xmean': 2254 2333 # x-axis mean values -
trunk/tools/model_graphics_template.dat
r1041 r1043 93 93 # tstd: temporal standard deviation values 94 94 # turb: Taylor's turbulence decomposition value 95 # tvar: temporal variance values (Taylor's turbulence) 95 96 # xmean: x-axis mean values 96 97 # ymean: y-axis mean values … … 106 107 VAR_tmean = uas:vas:hfss:hfls 107 108 VAR_tstd = tas:wss 109 VAR_tvar = tas:wss 108 110 VAR_xmean = uas:vas:hfss:hfls 109 111 #VAR_last+pinterp+xmean = ua:va:hur:hus:turb … … 128 130 DIFFOP_tmean = hfss:hfls 129 131 DIFFOP_tstd = tas:wss 132 DIFFOP_tvar = tas:wss 130 133 DIFFOP_pinterp+tmean+xmean = ua:va 131 134 … … 134 137 DIFFVAR_tmean = hfss:hfls 135 138 DIFFVAR_tstd = tas:wss 139 DIFFVAR_tvar = tas:wss 136 140 DIFFVAR_pinterp+tmean+xmean = ua:va 137 141 … … 142 146 opsur_mean = Lmean:lmean:tmean:xmean:ymean 143 147 opsur_std = tstd 148 opsur_var = tvar 144 149 145 150 # Text as title for each operation 146 151 # as ':' separated list of [op]|[explanation '!' as spaces] 147 titleoperations = acc|tacc:diff|diff:direct|!:last|last:Lmean|latmean:Lsec|latsec:lmean|lonmean:lsec|lonsec:pinterp|pinterp:tmean|tmean:tstd|tstd:turb|turbulence: xmean|xmean:ymean|ymean:zsum|zsum152 titleoperations = acc|tacc:diff|diff:direct|!:last|last:Lmean|latmean:Lsec|latsec:lmean|lonmean:lsec|lonsec:pinterp|pinterp:tmean|tmean:tstd|tstd:turb|turbulence:tvar|tvar:xmean|xmean:ymean|ymean:zsum|zsum 148 153 149 154 # Pressure levels … … 170 175 # DIRPLT_: Figures which can be made directly without another model/experiment output 171 176 172 DIRPLT_shadcont2Dsfc = uas|last#vas|last:hfls|last#hfss|last:tas|tstd#wss|tstd 177 DIRPLT_shadcont2Dsfc = uas|last#vas|last:hfls|last#hfss|last:tas|tstd#wss|tstd:wss|tvar#tas|tvar 173 178 DIRPLT_shadconthovmsfc = hfls|xmean#hfss|xmean 174 179 DIRPLT_shadcont2Dzsec = ua|pinterp+tmean+xmean#va|pinterp+tmean+xmean … … 178 183 #pltshadcont2Dzsec = ua|pinterp@last@xmean#va|pinterp@last@xmean:hur|pinterp@last@xmean#ta|pinterp@last@xmean:ws|pinterp@turb@xmean#hus|pinterp@turb@xmean 179 184 180 PLOTDIFFOP_shadcont2Dsfc = hfls|last#hfss|last:hfss|tmean#hfls|tmean:tas|tstd#wss|tstd 185 PLOTDIFFOP_shadcont2Dsfc = hfls|last#hfss|last:hfss|tmean#hfls|tmean:tas|tstd#wss|tstd:wss|tvar#tas|tvar 181 186 PLOTDIFFOP_shadconthovmsfc = uas|xmean#vas|xmean 182 187 PLOTDIFFOP_shadcont2Dzsec = ua|pinterp+tmean+xmean#va|pinterp+tmean+xmean 183 188 184 PLOTDIFFVAR_shadcont2Dsfc = hfls|last#hfss|last:hfss|tmean#hfls|tmean:tas|tstd#wss|tstd 189 PLOTDIFFVAR_shadcont2Dsfc = hfls|last#hfss|last:hfss|tmean#hfls|tmean:tas|tstd#wss|tstd:wss|tvar#tas|tvar 185 190 PLOTDIFFVAR_shadconthovmsfc = uas|xmean#vas|xmean 186 191 PLOTDIFFVAR_shadcont2Dzsec = ua|pinterp+tmean+xmean#va|pinterp+tmean+xmean … … 197 202 # [cntformat]: format of the contour labels 198 203 # [colorcnt]: color for the countor lines 199 specificvarplot = cll|last|shadcont2Dsfc|0.|1.|gist_gray|%g|black:clh|last|shadcont2Dsfc|0.|1.|gist_gray|%g|black:husturbmean|pinterp@turb@xmean|shadcont2Dzsec|0.|1.e-6|Blues|%g|black:tas|tstd|shadcont2Dsfc|0.|10.|Reds|%g|black:wss|tstd|shadcont2Dsfc|0.|10.|Blues|%g|black 200 specificdiffopplot = hfls|tmean|shadcont2Dsfc|-20.|20.|seismic|%g|black:hfss|tmean|shadcont2Dsfc|-30.|30.|seismic|%g|black:hfls|last|shadcont2Dsfc|-800.|0.|seismic|%g|black:hfss|last|shadcont2Dsfc|-400.|10.|seismic|%g|black:uas|xmean|shadcont2Dsfc|-20.|20.|seismic|%g|black:vas|xmean|shadcont2Dsfc|-30.|30.|seismic|%g|black:ua|pinterp+tmean+xmean|shadcont2Dsfc|-20.|20.|seismic|%g|black:va|pinterp+tmean+xmean|shadcont2Dsfc|-20.|20.|seismic|%g|black:tas|tstd|shadcont2Dsfc|0.|10.|Reds|%g|black:wss|tstd|shadcont2Dsfc|0.|10.|Blues|%g|black 201 specificdiffvarplot = hfls|tmean|shadcont2Dsfc|-20.|20.|seismic|%g|black:hfss|tmean|shadcont2Dsfc|-30.|30.|seismic|%g|black:hfls|last|shadcont2Dsfc|-800.|0.|seismic|%g|black:hfss|last|shadcont2Dsfc|-400.|10.|seismic|%g|black:uas|xmean|shadcont2Dsfc|-20.|20.|seismic|%g|black:vas|xmean|shadcont2Dsfc|-30.|30.|seismic|%g|black:ua|pinterp+tmean+xmean|shadcont2Dsfc|-20.|20.|seismic|%g|black:va|pinterp+tmean+xmean|shadcont2Dsfc|-20.|20.|seismic|%g|black:tas|tstd|shadcont2Dsfc|0.|10.|Reds|%g|black:wss|tstd|shadcont2Dsfc|0.|10.|Blues|%g|black 204 specificvarplot = cll|last|shadcont2Dsfc|0.|1.|gist_gray|%g|black:clh|last|shadcont2Dsfc|0.|1.|gist_gray|%g|black:husturbmean|pinterp@turb@xmean|shadcont2Dzsec|0.|1.e-6|Blues|%g|black:tas|tstd|shadcont2Dsfc|0.|10.|Reds|%g|black:wss|tstd|shadcont2Dsfc|0.|10.|Blues|%g|black:tas|tstd|shadcont2Dsfc|0.|100.|Reds|%g|black:wss|tstd|shadcont2Dsfc|0.|100.|Blues|%g|black 205 specificdiffopplot = hfls|tmean|shadcont2Dsfc|-20.|20.|seismic|%g|black:hfss|tmean|shadcont2Dsfc|-30.|30.|seismic|%g|black:hfls|last|shadcont2Dsfc|-800.|0.|seismic|%g|black:hfss|last|shadcont2Dsfc|-400.|10.|seismic|%g|black:uas|xmean|shadcont2Dsfc|-20.|20.|seismic|%g|black:vas|xmean|shadcont2Dsfc|-30.|30.|seismic|%g|black:ua|pinterp+tmean+xmean|shadcont2Dsfc|-20.|20.|seismic|%g|black:va|pinterp+tmean+xmean|shadcont2Dsfc|-20.|20.|seismic|%g|black:tas|tstd|shadcont2Dsfc|0.|10.|Reds|%g|black:wss|tstd|shadcont2Dsfc|0.|10.|Blues|%g|black:tas|tstd|shadcont2Dsfc|0.|100.|Reds|%g|black:wss|tstd|shadcont2Dsfc|0.|100.|Blues|%g|black 206 specificdiffvarplot = hfls|tmean|shadcont2Dsfc|-20.|20.|seismic|%g|black:hfss|tmean|shadcont2Dsfc|-30.|30.|seismic|%g|black:hfls|last|shadcont2Dsfc|-800.|0.|seismic|%g|black:hfss|last|shadcont2Dsfc|-400.|10.|seismic|%g|black:uas|xmean|shadcont2Dsfc|-20.|20.|seismic|%g|black:vas|xmean|shadcont2Dsfc|-30.|30.|seismic|%g|black:ua|pinterp+tmean+xmean|shadcont2Dsfc|-20.|20.|seismic|%g|black:va|pinterp+tmean+xmean|shadcont2Dsfc|-20.|20.|seismic|%g|black:tas|tstd|shadcont2Dsfc|0.|10.|Reds|%g|black:wss|tstd|shadcont2Dsfc|0.|10.|Blues|%g|black:tas|tstd|shadcont2Dsfc|0.|100.|Reds|%g|black:wss|tstd|shadcont2Dsfc|0.|100.|Blues|%g|black 202 207 203 208 # Figures output kind
Note: See TracChangeset
for help on using the changeset viewer.