爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 6678|回复: 0

[图形美化] grads 画一页多图 等值线以及数值的设置问题

[复制链接]

新浪微博达人勋

发表于 2020-6-12 18:58:50 | 显示全部楼层 |阅读模式

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

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

x
grads 画一页多图 panels(args)  参考的这个办法 http://bbs.06climate.com/forum.php?mod=viewthread&tid=4586为什么设置的等值线以及数值的大小出图都像是默认设置,改也没用?'REINIT'

rc = gsfallow("on")
nrows=3
ncols=2
args=nrows%' '%ncols

*'enable print H:/ncep1.0/2020/fnl_20200131_00_00.gmf'
'set grads off'
'set grid off'

'set mproj scaled'
panels(args)


'set map 15 1 2'
'set mpdset cnworld'

'set lat 30 70'
'set lon 40 120'

*-----pic-a------

    _vpg.1

    'set parea 1 9.8 1 7.5'

'open H:/ncep1.0/2020/2020.02/fnl_20200208_00_00.ctl'
'open H:/ncep1.0/2020/2020.02/fnl_20200208_06_00.ctl'
'open H:/ncep1.0/2020/2020.02/fnl_20200208_12_00.ctl'
'open H:/ncep1.0/2020/2020.02/fnl_20200208_18_00.ctl'

'set lev 500'
'set lat 30 70'
'set lon 40 120'
'set ccolor 1'
'set gxout contour'
'set cthick 1'
'set cint 4'
'set clopts 1 0.25 0.09'
'set xlpos -10'
'set ylpos -10'
'd (HGTprs.1+HGTprs.2+HGTprs.3+HGTprs.4)/40'
'run D:\OpenGrADS\Classic\scripts\axis.gs -type L -lable on -position o -interval 20 -suffix `3.  -lsize 0.1 -lthick 3'
'run D:\OpenGrADS\Classic\scripts\axis.gs -type B -lable off -position o -interval 20 -suffix `3.  -lsize 0.1 -lthick 3'
'set vpage off'
*标站点
'q w2xy 87.65 43.78'
x=subwrd(result,3)
y=subwrd(result,6)
'set line 1'
'draw mark 3  'x' 'y' 0.05'

'close 4'
'close 3'
'close 2'
'close 1'

*-----pic-c------

    _vpg.3

    'set parea 1 9.8 1 7.5'

'open H:/ncep1.0/2020/2020.02/fnl_20200209_00_00.ctl'
'open H:/ncep1.0/2020/2020.02/fnl_20200209_06_00.ctl'
'open H:/ncep1.0/2020/2020.02/fnl_20200209_12_00.ctl'
'open H:/ncep1.0/2020/2020.02/fnl_20200209_18_00.ctl'

'set lev 500'
'set lat 30 70'
'set lon 40 120'
'set ccolor 1'
'set gxout contour'
'set cthick 1'
'set cint 4'
'set clopts 1 0.25 0.09'
'set xlpos -10'
'set ylpos -10'
'd (HGTprs.1+HGTprs.2+HGTprs.3+HGTprs.4)/40'
'run D:\OpenGrADS\Classic\scripts\axis.gs -type L -lable on -position o -interval 20 -suffix `3.  -lsize 0.1 -lthick 3'
'run D:\OpenGrADS\Classic\scripts\axis.gs -type B -lable off -position o -interval 20 -suffix `3.  -lsize 0.1 -lthick 3'

'set vpage off'
*标站点
'q w2xy 87.65 43.78'
x=subwrd(result,3)
y=subwrd(result,6)
'set line 1'
'draw mark 3  'x' 'y' 0.05'
'close 4'
'close 3'
'close 2'
'close 1'

*-----pic-e------

    _vpg.5

    'set parea 1 9.8 1 7.5'

'open H:/ncep1.0/2020/2020.02/fnl_20200212_00_00.ctl'
'open H:/ncep1.0/2020/2020.02/fnl_20200212_06_00.ctl'
'open H:/ncep1.0/2020/2020.02/fnl_20200212_12_00.ctl'
'open H:/ncep1.0/2020/2020.02/fnl_20200212_18_00.ctl'

'set lev 500'
'set lat 30 70'
'set lon 40 120'
'set ccolor 1'
'set gxout contour'
'set cthick 1'
'set cint 4'
'set clopts 1 0.25 0.09'
'set xlpos -10'
'set ylpos -10'
'd (HGTprs.1+HGTprs.2+HGTprs.3+HGTprs.4)/40'
'run D:\OpenGrADS\Classic\scripts\axis.gs -type L -lable on -position o -interval 20 -suffix `3.  -lsize 0.1 -lthick 3'
'run D:\OpenGrADS\Classic\scripts\axis.gs -type B -lable off -position o -interval 20 -suffix `3.  -lsize 0.1 -lthick 3'

'set vpage off'
*标站点
'q w2xy 87.65 43.78'
x=subwrd(result,3)
y=subwrd(result,6)
'set line 1'
'draw mark 3  'x' 'y' 0.05'
'close 4'
'close 3'
'close 2'
'close 1'

*-----pic-b-------

    _vpg.2
    'set parea 1 9.8 1 7.5'

'open H:/ncep1.0/2020/2020.02/fnl_20200208_00_00.ctl'
'open H:/ncep1.0/2020/2020.02/fnl_20200208_06_00.ctl'
'open H:/ncep1.0/2020/2020.02/fnl_20200208_12_00.ctl'
'open H:/ncep1.0/2020/2020.02/fnl_20200208_18_00.ctl'

'set lat 30 60'
'set lon 60 110'
'set ccolor 1'
'set gxout contour'
'set cthick 1'
'set cint 4'
'set clopts 1 0.25 0.09'
'set xlpos -10'
'set ylpos -10'
'd (PRMSLmsl.1+PRMSLmsl.2+PRMSLmsl.3+PRMSLmsl.4)/400'
'run D:\OpenGrADS\Classic\scripts\axis.gs -type L -lable on -position o -interval 10 -suffix `3.  -lsize 0.1 -lthick 3'
'run D:\OpenGrADS\Classic\scripts\axis.gs -type B -lable off -position o -interval 20 -suffix `3.  -lsize 0.1 -lthick 3'

'set vpage off'
*标站点
'q w2xy 87.65 43.78'
x=subwrd(result,3)
y=subwrd(result,6)
'set line 1'
'draw mark 3  'x' 'y' 0.05'
'close 4'
'close 3'
'close 2'
'close 1'

*-----pic-d-------

    _vpg.4

    'set parea 1 9.8 1 7.5'

'open H:/ncep1.0/2020/2020.02/fnl_20200209_00_00.ctl'
'open H:/ncep1.0/2020/2020.02/fnl_20200209_06_00.ctl'
'open H:/ncep1.0/2020/2020.02/fnl_20200209_12_00.ctl'
'open H:/ncep1.0/2020/2020.02/fnl_20200209_18_00.ctl'

'set lat 30 60'
'set lon 60 110'
'set ccolor 1'
'set gxout contour'
'set cthick 1'
'set cint 4'
'set clopts 1 0.25 0.09'
'set xlpos -10'
'set ylpos -10'
'd (PRMSLmsl.1+PRMSLmsl.2+PRMSLmsl.3+PRMSLmsl.4)/400'
'run D:\OpenGrADS\Classic\scripts\axis.gs -type L -lable on -position o -interval 10 -suffix `3.  -lsize 0.1 -lthick 3'
'run D:\OpenGrADS\Classic\scripts\axis.gs -type B -lable off -position o -interval 20 -suffix `3.  -lsize 0.1 -lthick 3'

'set vpage off'
*标站点
'q w2xy 87.65 43.78'
x=subwrd(result,3)
y=subwrd(result,6)
'set line 1'
'draw mark 3  'x' 'y' 0.05'
'close 4'
'close 3'
'close 2'
'close 1'

*-----pic-f-------

    _vpg.6

    'set parea 1 9.8 1 7.5'

'open H:/ncep1.0/2020/2020.02/fnl_20200212_00_00.ctl'
'open H:/ncep1.0/2020/2020.02/fnl_20200212_06_00.ctl'
'open H:/ncep1.0/2020/2020.02/fnl_20200212_12_00.ctl'
'open H:/ncep1.0/2020/2020.02/fnl_20200212_18_00.ctl'

'set lat 30 60'
'set lon 60 110'
'set ccolor 1'
'set gxout contour'
'set cthick 1'
'set cint 4'
'set clopts 1 0.25 0.09'
'set xlpos -10'
'set ylpos -10'
'd (PRMSLmsl.1+PRMSLmsl.2+PRMSLmsl.3+PRMSLmsl.4)/400'
'run D:\OpenGrADS\Classic\scripts\axis.gs -type L -lable on -position o -interval 10 -suffix `3.  -lsize 0.1 -lthick 3'
'run D:\OpenGrADS\Classic\scripts\axis.gs -type B -lable off -position o -interval 20 -suffix `3.  -lsize 0.1 -lthick 3'

'set vpage off'
*标站点
'q w2xy 87.65 43.78'
x=subwrd(result,3)
y=subwrd(result,6)
'set line 1'
'draw mark 3  'x' 'y' 0.05'
'close 4'
'close 3'
'close 2'
'close 1'

*标题
*'set string 1 c 8'
*'set strsiz 0.25 0.25'
*'draw string 2.5 10.8 500hPa'
*'set strsiz 0.25 0.25'
*'draw string 8.5 10.8 sea level'


'set grads off'
'set grid off'

'print'
'printim H:/ncep1.0/2020/KKK2yue8912hecheng1.png  white'

'disable print'
*'print H:/ncep1.0/2020/2yue8912hecheng1.eps'
'reinit'
;



KKK2yue8912hecheng1.png

2.gs

6.06 KB, 下载次数: 6, 下载积分: 金钱 -5

密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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