- 积分
- 92
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-3-1
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
gs如下,u(z+1)与u(z-1)的值相同,没法控制表示不同层次的变量值,求帮助,万分感谢!
'reinit'
'open d:/data/0506/fnl_20050609_00_00.ctl'
'enable print d:/data/vel_pv_1.gmf'
*'set mpdset cnworld'
'set grads off'
'set ylevs 1000 975 950 925 900 850 800 750 700 650 600 550 500 450 400 350 300 250 200 150 100'
'set lev 995 300'
'set z 1 21'
'set zlog on'
'set lat 15 55'
'set lon 105 135'
*'set lev 1000 100'
'set t 1'
'set clab forced'
'define u=ugrdprs'
'define v=vgrdprs'
'define t0=TMPprs'
'define vor=hcurl(UGRDprs,VGRDprs)*100000'
'define f=2*7.292*sin(lat*3.14159/180.0)'
'define g=9.8'
*'define prs=1.333*760*pow((1-hgtprs/44300),5.256)'
'define prs=lev'
'define es=(6.112*exp((17.67*(t0-273.16))/(t0-29.65)))'
'define qs=0.62197*es/(prs-0.378*es)'
'define q=qs*RHprs/100'
'define e=hgtprs*q/(0.62197+q)+1e-10'
'define tlcl=55.0+2840.0/(3.5*log(t0)-log(e)-4.805)'
'define theta=t0*pow((1000./prs),(0.2854*(1.0-0.28*q)))'
'define eqt=theta*exp(((3376./tlcl)-2.54)*q*(1.0+0.81*q))'
'define dp=100*(lev(z-1)-lev(z+1))'
'define deqt=eqt(z-1)-eqt(z+1)'
'define du=u(z-1)-u(z+1)'
'define dv=v(z-1)-v(z+1)'
'define dx=2.0*6370949.0*cos(lat*3.14159/180.0)*3.14159/180.0'
'define dy=2.0*6370949.0*3.14159/180.0'
'define dtx=cdiff(t0,x)'
'define dty=cdiff(t0,y)'
'define pv1=-g*(vor+f)*deqt/dp'
'define pv2=g*((dv/dp)*(dtx/dx)-(du/dp)*(dty/dy))'
'define pv=pv1+pv2'
'set lat 34'
'set gxout shaded'
'set cmax 0'
'd smth9(pv)'
'set gxout contour'
'd smth9(pv)'
'set cint 1'
'd smth9(pv)'
'run cbarn.gs'
'print'
'disable print'
; |
|