积分 259
贡献
精华
在线时间 小时
注册时间 2012-6-9
最后登录 1970-1-1
10 金钱
*画相当位温相关图
'reinit'
********************************************* data ***
'open E:\taifeng\ctl\fnl_20200903_06_00.ctl'
'set grads off'
'set grid off'
'set timelab off'
'set lat 10 70'
'set lon 50 160'
'set lev 1000'
'define prs=lev'
'define e1=17.67*(TMPprs-273.15)/(TMPprs-29.65)'
'define es=6.112*exp(e1)'
'define qs=(0.62197*es/(prs-0.378*es))/100'
'define shum=rhprs*qs'
'define e=prs*shum/(0.62197+shum)'
'define tk=55.0+2840.0/(3.5*log(TMPprs)-log(e)-4.805)'
'define th=TMPprs*pow((1000./prs),(0.2854*(1.0-0.28*shum)))'
'define the=th*exp(((3376/tk)-2.54)*shum*((1.0+0.81*shum)))'
'set grads off'
'set grid off'
'set gxout contour'
'set ccolor 1'
'set csmooth on'
'set cthick 7'
'd the'
'printim E:\taifeng\pic\thse1000.png white'
;
下面这个是论坛绘制湿位涡的一部分
'reinit'
'set gxout fwrite'
********************************************* data ***
'open E:\taifeng\ctl\fnl_20200903_06_00.ctl'
'set fwrite E:\taifeng\thse.dat'
*i=925
*while(i<=977)
'set lon 50 160'
'set lat 10 70'
*'set t 'i''
'set lev 1000'
'define prs=lev'
'define e1=17.67*(TMPprs-273.15)/(TMPprs-29.65)'
'define es=6.112*exp(e1)'
'define qs=(0.62197*es/(prs-0.378*es))/100'
'define shum=rhprs*qs'
'define e=prs*shum/(0.62197+shum)'
'define tk=55.0+2840.0/(3.5*log(TMPprs)-log(e)-4.805)'
'undefine e'
'define theta=TMPprs*pow((1000./prs),(0.2854*(1.0-0.28*shum)))'
'define thse=theta*exp(((3376/tk)-2.54)*shum*((1.0+0.81*shum)))'
'd thse'
'set lev 925'
'define prs=lev'
'define e1=17.67*(TMPprs-273.15)/(TMPprs-29.65)'
'define es=6.112*exp(e1)'
'define qs=(0.62197*es/(prs-0.378*es))/100'
'define shum=rhprs*qs'
'define e=prs*shum/(0.62197+shum)'
'define tk=55.0+2840.0/(3.5*log(TMPprs)-log(e)-4.805)'
'undefine e'
'define theta=TMPprs*pow((1000./prs),(0.2854*(1.0-0.28*shum)))'
'define thse=theta*exp(((3376/tk)-2.54)*shum*((1.0+0.81*shum)))'
'd thse'
'set lev 850'
'define prs=lev'
'define e1=17.67*(TMPprs-273.15)/(TMPprs-29.65)'
'define es=6.112*exp(e1)'
'define qs=(0.62197*es/(prs-0.378*es))/100'
'define shum=rhprs*qs'
'define e=prs*shum/(0.62197+shum)'
'define tk=55.0+2840.0/(3.5*log(TMPprs)-log(e)-4.805)'
'undefine e'
'define theta=TMPprs*pow((1000./prs),(0.2854*(1.0-0.28*shum)))'
'define thse=theta*exp(((3376/tk)-2.54)*shum*((1.0+0.81*shum)))'
'd thse'
'set lev 700'
'define prs=lev'
'define e1=17.67*(TMPprs-273.15)/(TMPprs-29.65)'
'define es=6.112*exp(e1)'
'define qs=(0.62197*es/(prs-0.378*es))/100'
'define shum=rhprs*qs'
'define e=prs*shum/(0.62197+shum)'
'define tk=55.0+2840.0/(3.5*log(TMPprs)-log(e)-4.805)'
'undefine e'
'define theta=TMPprs*pow((1000./prs),(0.2854*(1.0-0.28*shum)))'
'define thse=theta*exp(((3376/tk)-2.54)*shum*((1.0+0.81*shum)))'
'd thse'
'set lev 600'
'define prs=lev'
'define e1=17.67*(TMPprs-273.15)/(TMPprs-29.65)'
'define es=6.112*exp(e1)'
'define qs=(0.62197*es/(prs-0.378*es))/100'
'define shum=rhprs*qs'
'define e=prs*shum/(0.62197+shum)'
'define tk=55.0+2840.0/(3.5*log(TMPprs)-log(e)-4.805)'
'undefine e'
'define theta=TMPprs*pow((1000./prs),(0.2854*(1.0-0.28*shum)))'
'define thse=theta*exp(((3376/tk)-2.54)*shum*((1.0+0.81*shum)))'
'd thse'
'set lev 500'
'define prs=lev'
'define e1=17.67*(TMPprs-273.15)/(TMPprs-29.65)'
'define es=6.112*exp(e1)'
'define qs=(0.62197*es/(prs-0.378*es))/100'
'define shum=rhprs*qs'
'define e=prs*shum/(0.62197+shum)'
'define tk=55.0+2840.0/(3.5*log(TMPprs)-log(e)-4.805)'
'undefine e'
'define theta=TMPprs*pow((1000./prs),(0.2854*(1.0-0.28*shum)))'
'define thse=theta*exp(((3376/tk)-2.54)*shum*((1.0+0.81*shum)))'
'd thse'
'set lev 400'
'define prs=lev'
'define e1=17.67*(TMPprs-273.15)/(TMPprs-29.65)'
'define es=6.112*exp(e1)'
'define qs=(0.62197*es/(prs-0.378*es))/100'
'define shum=rhprs*qs'
'define e=prs*shum/(0.62197+shum)'
'define tk=55.0+2840.0/(3.5*log(TMPprs)-log(e)-4.805)'
'undefine e'
'define theta=TMPprs*pow((1000./prs),(0.2854*(1.0-0.28*shum)))'
'define thse=theta*exp(((3376/tk)-2.54)*shum*((1.0+0.81*shum)))'
'd thse'
'set lev 300'
'define prs=lev'
'define e1=17.67*(TMPprs-273.15)/(TMPprs-29.65)'
'define es=6.112*exp(e1)'
'define qs=(0.62197*es/(prs-0.378*es))/100'
'define shum=rhprs*qs'
'define e=prs*shum/(0.62197+shum)'
'define tk=55.0+2840.0/(3.5*log(TMPprs)-log(e)-4.805)'
'undefine e'
'define theta=TMPprs*pow((1000./prs),(0.2854*(1.0-0.28*shum)))'
'define thse=theta*exp(((3376/tk)-2.54)*shum*((1.0+0.81*shum)))'
'd thse'
j=1
while(j<=8)
'set lon 50 160'
'set lat 10 70'
* 'set t 'i''
'set z 'j''
'd ugrdprs'
j=j+1
endwhile
j=1
while(j<=8)
'set lon 50 160'
'set lat 10 70'
* 'set t 'i''
'set z 'j''
'd vgrdprs'
j=j+1
endwhile
*i=i+1
*endwhile
'disable fwrite'
'reinit'
之后写的ctl绘制
DSET E:\taifeng\thse.dat
TITLE Upper Data
undef -9.99E33
xdef 45 linear 50 2.5
ydef 25 linear 10 2.5
zdef 8 levels 1000 925 850 700 600 500 400 300
tdef 1 linear 0z20Aug2020 6hr
vars 3
thse 8 99 temps
ugrdprs 8 99 u-wind
vgrdprs 8 99 v-wind
Endvars
绘制图
'reinit'
'open E:\taifeng\gs\tfgs\shiweiwo\thse.ctl'
'set lat 10 70'
'set lon 50 160'
'set lev 1000'
'set gxout contour'
'set csmooth on'
'set cthick 7'
'd thse'
'printim E:\taifeng\pic\thse100.png white'
我来回答