请选择 进入手机版 | 继续访问电脑版
爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 2978|回复: 3

[图形美化] grads画图

[复制链接]

新浪微博达人勋

发表于 2017-5-9 21:17:39 | 显示全部楼层 |阅读模式

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

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

x
想用grads画图,实现大于零的部分为红色,小于零的部分为蓝色。该如何做啊?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2017-5-9 21:24:36 | 显示全部楼层
'reinit'
'open d:\sx1\sx1.ctl'
'set gxout shaded'
'set cmax 0'
'set rbcols 5 5 5 5 5 5 5'
'd hla'
'set gxout contour'
'set ccolor 1'
'set lon 0 360'
'set lat -90 90'
'set grads off'
'd hla'
'draw title HLA'
'printim d:\sx1\hla.png white'
;
我目前这样做只能出小于零是蓝色。但是再弄一个类似的set shaded就又会把原来的蓝色消除,只有大于零的红色。。。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-5-10 12:14:28 | 显示全部楼层
'define_colors'
'set t 'i
'set clevs  -48 -44 -40  -36  -32 -28  -24 -20 -16 -12 -8 -4 0 4 8 12'
'set ccols 49 48 47 46 45 44 43 42 41 0 21 22 23 24 25 26 27 28 29'
'set gxout shaded'
'set cthick 6'
'set cstyle 2'
'set cint 4'
'define t=TMPprs-273.15'
'set clab forced'
'd t'
'cbarn'
'set gxout contour'
'set ccolor 2'
'set cstyle 2'
'set cthick 6'
'set cint 4'
'd t'
'set gxout barb'
'set cthick 6'
'set cstyle 2'
'set cint 5'
'set cmin 20'
'set ccolor 1'
'd skip(UGRDprs,5);skip(VGRDprs,5)'
'set gxout contour'
'set cthick 6'
'set cint 40'
'set ccolor 1'
'd HGTprs'
'q time'
t=subwrd(result,3)
'draw title 500hPa_HGT_TEMP_WIND`b(barb)`n_'i'_'t''
'printim E:\nc\500hPa_HGT_WIND_TEMP_'i'_'t'.png white x1000 y800'
i=i+1
'c'
endwhile
'reinit'

密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-5-10 12:29:35 | 显示全部楼层
这是画500hPa温度用的脚本,大于0℃用红色
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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