- 积分
- 91
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-5-3
- 最后登录
- 1970-1-1
|
发表于 2014-10-21 20:59:39
|
显示全部楼层
lz能帮我看看么 。。我用的fnl1*1的资料,想做假相当位温
gs如下
'reinit'
'open d:\ffnnll\1.ctl'
'open d:\ffnnll\orog.ctl'
'set grads off'
'set zlog on'
'set csmooth on'
'set x 1'
'set y 1'
'set lev 1000 100'
'set t 31'
#'define xxx=hdivg(UGRDprs,VGRDprs)*100000'
lon1=102.0
lon2=106.0
lat1=32.0
lat2=28.0
lon=lon1
'collect 1 free'
'collect 2 free'
while(lon<=lon2)
lat=lat1+(lat2-lat1)*(lon-lon1)/(lon2-lon1)
#计算假相当位温的计算
'define t0=tmpprs'
'define rh=rhprs'
'define prs=lev'
'define es=(6.1078*exp(17.2693882*(t0-273.16)/(t0-35.86)))'
'define qq=rh*(0.62197*es/(prs-0.378*es))/100.'
'define e=prs*qq/(0.62197+qq)+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*qq)))'
'define eqt=theta*exp(((3376./tlcl)-2.54)*qq*(1.0+0.81*qq))'
'collect 1 gr2stn(eqt,'lon','lat')'
'collect 2 gr2stn(orog.2(t=1),'lon','lat')'
lon=lon+1
endwhile
'set map 15 1 9'
*'set parea 1 10.2 1.5 8'
'set xlopts 1 4 0.18'
'set ylopts 1 4 0.18'
'set font 0'
'set x 14 16'
'set xaxis 'lon1' 'lon2
'set clab on'
'set gxout shaded'
'set csmooth on'
'set clab off'
'set clevs 0'
'set ccols 0 1 0'
'd coll2gr(2,-u)'
'set gxout contour'
*'set cint 5'
'set clab forced'
'set cthick 11'
'd coll2gr(1,-u)'
'print'
'draw title omega along (55N,95W) to (15N,90W)'
'printim d:\ffnnll\section.gmf'
做出来的图问题有点大啊 就是要做运算的话这个改如何编gs
|
|