爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 3844|回复: 2

[脚本编辑] grads取整取余函数

[复制链接]

新浪微博达人勋

发表于 2017-12-29 14:13:56 | 显示全部楼层 |阅读模式

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

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

x
gs文件如下,里面涉及到取整取余函数,运行时候出现错误提醒,说math_int not a valid numeric,正确的形式该如何写?求指点
'reinit'
'open d:\sst.mnmean.v3.ctl'
'set t 1 12'
'define climate=ave(sst,t+0,t=636,12)'
'modify climate seasonal'
'set t 1 636'
'define anom=sst-climate'
'set lon 160 360'
'set lat -30 30'
i=1
while(i<=636)
a='i'/12.0
'set t 'i''
'set cint 0.5'
'set gxout shaded'
'd anom'
'set cint 0.5'
'set gxout contour'
'd anom'
'cbarn 1 0 4.5 0.35'
b=math_int('a')
c=math_fmod('a')
'draw title 1960+'b'year'c'mon daxiyangSSTA'
'printim d:\1picture\sst.mnmeanv3.daxiyang1960+'i'.gif gif white'
'c'
i=i+1
endwhile
;
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2019-10-16 13:06:25 | 显示全部楼层
请问博主 解决了吗?我也遇到这种情况了
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2019-10-16 13:44:16 | 显示全部楼层
onenuister 发表于 2019-10-16 13:06
请问博主 解决了吗?我也遇到这种情况了

最后用ncl了。没有再用grads
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

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