爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 4610|回复: 5

请问哪里错了!!!

[复制链接]

新浪微博达人勋

发表于 2015-12-18 14:22:12 | 显示全部楼层 |阅读模式

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

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

x
ncl初学者
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
begin
in = addfile("DATA/sst.mon.ltm.1981-2010.nc","r")
t = in->sst
wks = gsn_open_wks("ps","sst")
gsn_define_colormap(wks,"BlAqGrYeOrRe")
res = True
res@tiMainString = "sst"
res@cnLevelSpacingF = 5
res@gsnFrame = True
res@gsnDraw = True
res@cnFillOn = True
res@gsnSpreadColors = True
res@pmLableBarDisplayMode = Always
res@pmLableBarSide = Bottom
res@pmLabelBarWidthF = 0.4
res@pmLabelBarHeightF = 0.1
do n=1,30
plot = gsn_csm_contour_map_ce(wks,t(n,:,:),res)
end
运行后说:
Copyright (C) 1995-2015 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.3.0
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
fatal:syntax error: line 23 in file test before or near \n
end
---^

fatal:error in statement
fatal:syntax error: line -1 before or near  

^

fatal:error in statement
请问哪里错了啊

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

新浪微博达人勋

 楼主| 发表于 2015-12-18 14:22:42 | 显示全部楼层
新手中的新手
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-12-18 15:10:01 | 显示全部楼层
缺少一个end do,以end结尾是对的。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-12-21 19:34:43 | 显示全部楼层
andrewsoong 发表于 2015-12-18 15:10
缺少一个end do,以end结尾是对的。

谢谢  解决了
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-12-21 19:34:59 | 显示全部楼层
pangzi_xu 发表于 2015-12-18 14:33
在end前面加一行end do

谢谢  解决了
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-12-21 19:35:21 | 显示全部楼层
pangzi_xu 发表于 2015-12-18 14:33
do循环的结尾是end do 不是end

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

本版积分规则

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

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

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