爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 21392|回复: 0

[脚本编辑] 未识别变量名sst

[复制链接]

新浪微博达人勋

发表于 2021-6-3 10:43:45 | 显示全部楼层 |阅读模式

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

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

x
本帖最后由 求学的双鱼 于 2021-6-3 10:45 编辑

   根据所提供的数据资料,计算1-12月多年平均(1971-2000年)海温场,并绘出1月海温多年平均图注意原始nc数据自18501月开始

  定义变量tem时,无法识别sst。
  但sst在sst2.ctl声明过了呀?grd文件也生成了

dset  c:/data/sst2.grd
title created 12/2013 from data provided by JRA
undef 1e+20
xdef 360 linear 0 1
ydef 180 linear -89.5 1
zdef 1 linear 0 1
tdef 360 linear 00Z01JAN1971 1mo
vars 1
sst   0 -999 Monthly Means of Sea Surface Temperature
endvars

'reinit'
'open c:\data\sst2.ctl'
'set t 1 12'
'define tem=ave(sst,t+0,t=360,12)'
'set t 1'
'd tem'
'draw title average'
'printim d:\1yuepingjun.gif gif white'
;

'reinit'
'sdfopen c:/data/sst.mon.mean.nc'
'set gxout fwrite'
'set fwrite c:/data/sst2.grd'
it=1409
while(it<=1768)
'set lon 0 360'
'set lat -89.5 -89.5'
'set t 'it''
'd sst'
it=it+1
endwhile
'disable fwrite'
;



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

本版积分规则

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

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

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