- 积分
- 506
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-10-15
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 ml11178 于 2017-2-21 14:24 编辑
版上各位大大好:
最近正處理WRF3.8的資料,想看某兩點的垂直剖面,參考版上大神的腳本後,自己改了一下,但是一直報錯
找不到原因...希望有大神能幫幫忙...小弟將感謝萬分ORZ
附上GRADS的gs
PS:以補充第2張圖,是我將d maskout(coll2gr(1,-u),-coll2gr(3,-u));maskout(coll2gr(2,-u),-coll2gr(3,-u)),-u都去掉之後,就可以產出第2張圖,
但還是很奇怪,不太理解那些黑洞是怎麼產生的...求大神ORZ
再次補充:第三張圖為我使用v2.0.a9版的grads畫出來的,看起來是很OK的,但是使用2.1.a3畫就會變成第二張圖那樣...我想使用2.1版...出圖比較漂亮阿...
- 'set grads off'
- 'set grid off'
- 'set zlog on'
- 'set csmooth on'
- *lon1 = 121.465597
- *lon2 = 121.524955
- *lat1 = 25.109584
- *lat2 = 24.959727
- lon1 = 121.410183
- lon2 = 121.524967
- lat1 = 25.200059
- lat2 = 24.959107
- 'define alfa=atan2('lat2-lat1','lon2-lon1')'
- 'set x 1'
- 'set y 1'
- 'set lev 1000 800'
- lon = lon1
- 'collect 1 free'
- 'collect 2 free'
- 'collect 3 free'
- 'collect 4 free'
- while (lon <= lon2)
- lat = lat1+(lat2-lat1)*(lon-lon1)/(lon2-lon1)
- 'collect 1 gr2stn(u*cos(alfa)+v*sin(alfa),'lon','lat')'
- 'collect 2 gr2stn(w*4,'lon','lat')'
- 'collect 3 gr2stn(hgt,'lon','lat')'
- 'collect 4 gr2stn(qvapor*1000,'lon','lat')'
- lon = lon + 0.1
- endwhile
- 'set lon 121.465597 121.524955'
- 'set clab on'
- 'set gxout shaded'
- 'set bargap 1'
- 'set clab off'
- 'set clevs 20'
- 'set ccols 0 3 0'
- ****'d coll2gr(3,-u)'
- 'set gxout shaded'
- *****'d coll2gr(4)'
- 'set rgb 16 255 0 0'
- 'set rgb 17 255 42 42'
- 'set rgb 18 255 85 85'
- 'set rgb 19 255 128 128'
- 'set rgb 20 255 170 170'
- 'set rgb 21 255 212 212'
- 'set rgb 22 234 212 255'
- 'set rgb 23 213 170 255'
- 'set rgb 24 191 128 255'
- 'set rgb 25 170 85 255'
- 'set rgb 26 149 42 255'
- 'set rgb 27 128 0 255'
- 'set ccols 16 17 18 19 20 21 22 23 24 25 26 27'
- 'set clevs 10 11 12 13 14 15 16 17 18 19 20'
- 'd maskout(coll2gr(4,-u),-coll2gr(3,-u))'
- 'cbarn.gs 0.6 1 10.65 5.75'
- 'set gxout stream'
- 'set strmden 5'
- 'set cthick 5'
- 'set ccolor 1'
- 'set arrscl 0.15 5'
- 'set clab on'
- *'d coll2gr(1);coll2gr(3);coll2gr(2);coll2gr(3)'
- 'd maskout(coll2gr(1,-u),-coll2gr(3,-u));maskout(coll2gr(2,-u),-coll2gr(3,-u))'
- *'d maskout(coll2gr(1,-u),-coll2gr(3,-u));maskout(coll2gr(2,-u),-coll2gr(3,-u));coll2gr(1,-u);coll2gr(2,-u)'
- *'d maskout(coll2gr(1,-u),-coll2gr(3,-u))'
- 'set font 0'
- 'draw ylab Pressure(hPa)'
- 'draw xlab SZ->HT Shaded:Qvapor(g/kg) (m/s)'
复制代码
|
|