爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 2636|回复: 1

[脚本编辑] 想把四个时次的图放在一张上 但是这个循环不对。。。。

[复制链接]

新浪微博达人勋

发表于 2017-3-29 10:16:20 | 显示全部楼层 |阅读模式

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

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

x

                               
登录/注册后可看大图

'reinit'
rc = gsfallow("on")
nrows=2
ncols=2
args=nrows%' '%ncols
panels(args)
p=1
ptot=nrows*ncols
while (p<=ptot)
   
'sdfopen E:\ncep-data\data\2016\uwnd.2016.nc'
'sdfopen E:\ncep-data\data\2016\vwnd.2016.nc'
'sdfopen E:\ncep-data\data\2016\hgt.2016.nc'
'sdfopen E:\ncep-data\data\2016\air.2016.nc'

'E:/ncep-data/red_blue3.gs'
*''disk'/color/colornum.gs'
'enable print E:\pic\300hpa.gmf'
'set mproj scaled '
*------------
_vpg.p
'set parea 1 9.8 1 7.5'
year='2016'
mon='Apr'
lev=300
t=1
while (t<=2)
hr=0
while (hr<=23)
*'c'
'set time 'hr'z't''mon''year''
'set z 3'
'set lon 80 150'
'set lat 30 70'
'define div=hdivg(uwnd.1*100000,vwnd.2*100000)'
*'set mproj nps'
*-------draw-----
'set lon 80 150'
'set lat 30 70'
*'set vpage 0 11 0 8.5'
*'set parea 1 10.5 1 7.5'
'set grads off'
'set grid off'
'set mpdset cn lowres'
*'set mpdset cn cnriver lowres'
'set map 1 1 3'
'set xlint 10'
'set ylint 10'
'set xlopts 1 4 0.16'
'set ylopts 1 4 0.15'

'set gxout shaded'
'set clevs -2.5 -2 -1.5 -1 -0.5 0.5 1 1.5 2'
'd div'
cbarn.gs

'set gxout contour'
'set cint 4'
'set ccolor 2'
'set cstyle 2'
'set cthick 5'
'set clskip 2'
*'d air.4-273'

'set gxout contour'
'set cint 4'
'set ccolor 1'
'set cstyle 1'
'set cthick 5'
'set clskip 2'
'd hgt.3/10'

'draw title t ,h , 'lev'hPa,  'hr'z't''mon''year''
*****************************

hr=hr+12
'print'
endwhile
t=t+1
endwhile
p=p+1
endwhile
'set vpage off '
'disable print'
*-----------------------------

捕获2.PNG
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-3-29 11:08:30 | 显示全部楼层
{:eb513:}{:eb513:}
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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