爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 4317|回复: 8

[图形美化] 地形图上叠加填色图

[复制链接]
发表于 2018-1-3 15:06:21 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
程序目的是想在显示地形情况下,再将风速填色显示。单独画可以实现。合在一块,地形就看不到了。请问这个要怎么做。 yuxiangtu.png rukounbei.png

'reinit'
'open d:/dz.ctl'
'sdfopen d:/vwnd.mon.mean.nc'
'sdfopen d:/omega.mon.mean.nc'
'set grads off'
'set grid off'
'set lon 100'
'set lat 15 55'
'set lev 1000 100'
'set csmooth on'
'set xlopts 1 4 0.14'
'set ylopts 1 4 0.14'
'set dfile 1'
'define zz=dz'
'set gxout shaded'
'set cint 8000'
'set rgb 18 125 125 125'
'set csmooth on'
'set rbcols 1'
'set cmax 0'
'set xlpos -10'
'set ylpos -10'
'd smth9(zz)'
'set dfile 2'
'set dfile 3'
'set lat 35 55'
'set lon 80'
'set lev 1000 100'
'set gxout shaded'
'define uu=ave((ave(vwnd.2,t=51,t=708,12)+ave(vwnd.2,t=52,t=708,12)+ave(vwnd.2,t=53,t=708,12))/3,lon=80,lon=120)'
'define ww=-100*(ave((ave(omega.3,t=51,t=710,12)+ave(omega.3,t=52,t=710,12)+ave(omega.3,t=53,t=710,12))/3,lon=80,lon=120))'
'd mag(uu,ww)'
'set gxout stream'
'set ccolor 1'
'set cthick 6'
'set xlpos -10'
'set ylpos -10'
'd uu;ww'
'run e:/axis.gs -type L  -position o -start 1000 -end 10 -interval 100'
'run e:/axis.gs -type b  -position o -start 80 -end 120 -interval 20 -suffix `3.'


密码修改失败请联系微信:mofangbao
发表于 2018-1-3 18:21:55 | 显示全部楼层
调整一下绘图顺序呢?最先给出风速填色
密码修改失败请联系微信:mofangbao
发表于 2018-1-3 21:21:59 | 显示全部楼层
先画填色,最后绘制地形
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2018-1-4 15:41:04 | 显示全部楼层
小其其格 发表于 2018-1-3 21:21
先画填色,最后绘制地形

改了下顺序,还是不行
'reinit'
'sdfopen d:/vwnd.mon.mean.nc'
'sdfopen d:/omega.mon.mean.nc'
'open d:/dz.ctl'
'set lat 35 55'
'set lon 80'
'set lev 1000 100'
'set gxout shaded'
'd mag(ave((ave(vwnd.1,t=51,t=708,12)+ave(vwnd.1,t=52,t=708,12)+ave(vwnd.1,t=53,t=708,12))/3,lon=80,lon=120),-100*(ave((ave(omega.2,t=51,t=710,12)+ave(omega.2,t=52,t=710,12)+ave(omega.2,t=53,t=710,12))/3,lon=80,lon=120)))'
'set grads off'
'set grid off'
'set lon 100'
'set lat 15 55'
'set lev 1000 100'
'set csmooth on'
'set xlopts 1 4 0.14'
'set ylopts 1 4 0.14'
'set dfile 3'
'define zz=dz.3'
'set gxout shaded'
'set cint 8000'
'set rgb 18 125 125 125'
'set csmooth on'
'set rbcols 1'
'set cmax 0'
'set xlpos -10'
'set ylpos -10'
'd smth9(zz)' cuowu.png

密码修改失败请联系微信:mofangbao
发表于 2018-1-4 15:54:17 | 显示全部楼层
set rgb

This command allows the user to define a new color within GrADS. Beginning with GrADS version 2.1, controls were added for color transparency and for pattern filling.
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2018-1-4 17:18:18 | 显示全部楼层
lqouc 发表于 2018-1-4 15:54
set rgb

This command allows the user to define a new color within GrADS. Beginning with GrADS ver ...

QQ截图20180104171400.png 我用的版本就是2.1 的
密码修改失败请联系微信:mofangbao
发表于 2018-1-4 17:24:48 | 显示全部楼层
酒国 发表于 2018-1-4 17:18
我用的版本就是2.1 的

仔细看看那个命令。里面有关于透明度的设置。
把画地形的时候地形以上的颜色设置成完全透明的就不会和原来的填色冲突了。
密码修改失败请联系微信:mofangbao
发表于 2018-1-11 21:58:51 | 显示全部楼层
没有仔细看过我的帖子······去看吧【完美】解决FNL资料任意直线剖面叠加地形的问题
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2018-1-12 10:34:08 | 显示全部楼层
river 发表于 2018-1-11 21:58
没有仔细看过我的帖子······去看吧【完美】解决FNL资料任意直线剖面叠加地形的问题

谢谢您!我试试
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表