爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 225|回复: 3

[分享资料] run gs出现syntax error,求助!!

[复制链接]

新浪微博达人勋

发表于 2024-3-19 16:03:45 | 显示全部楼层 |阅读模式

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

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

x
本帖最后由 pyt007 于 2024-3-19 16:05 编辑

run gs 文件时出现

                               
登录/注册后可看大图
,gs文件如下:'reinit''open f:\grads\gs\a1.ctl'
'enable print f:\grads\20240120-26\tu\20240120_500huv.gmf'
'set mpdset cnworld yunnan'
'set map 0  1  2'
'draw map'

'set grads off'
'set grid off'
'set vpage 0 11 0 8.5'
'set parea 0.8 10.2 0.5 7.8'

tt=1
while(tt<=1)
'set lat 15 45'
'set lon 75 135'
'set lev 500'
'set t 'tt   
'define h=HGTprs'
'define u=UGRDprs'
'define v=VGRDprs'
'define T=TMPprs'

'set xlopts 1 6 0.2'
'set ylopts 1 6 0.2'
'set clopts 1 10 0.16'
*ziti shezhi
'set xlint 5'
'set ylint 5'
'set grads off'
'set gxout shaded'
'set csmooth on''set mpdset cnworld yunnan'
'set map 0  1  2'
'draw map'

'set clab masked'
'set gxout contour'
'set cint 4'
'set ccolor 1'
'set cthick 8'
'd smth9(hgtprs*0.1)'

'set gxout barb'
'set cint 5'
'set cthick 5.5'
'set digsize 0.06'
'd skip(u*2.5,3);skip(v*2.5,3)'


*'set cint 4'
*'set ccolor 2'
*'set cthick 8'
*'set clopts 2'
*'set cstyle 2'
*'d smth9(T-273.15)'

'q time'
x=subwrd(result,3)
'draw title 500hPa Hight & UV\'x''
'print'
'printim f:\grads\20240120-26\tu\20240120_500huv_'x'.png white x800 y600'
'c'

tt=tt+1
endwhile
'disable print'
请问各位大侠这个gs有什么问题,拜托拜托!!

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

新浪微博达人勋

 楼主| 发表于 2024-3-19 16:08:37 | 显示全部楼层
出现错误为syntax error:error occured on line 1
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2024-3-19 16:13:13 | 显示全部楼层
不知道错误出在哪里,求助各位大侠
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2024-3-20 12:52:39 | 显示全部楼层
'reinit''open f:\grads\gs\a1.ctl'  这句命令脚本里就在同一行,还是你发帖格式没排好?
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

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