爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 8478|回复: 7

[作图] NCL运行实例失败

[复制链接]

新浪微博达人勋

发表于 2015-3-27 23:48:19 | 显示全部楼层 |阅读模式

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

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

x
我是根据J先生要努力的帖子装的NCL,而且终端输入 ng4ex gsun01n -clean也有效果

但现在的问题是,运行官网上下的例子,一个都成功不了,并报错如下:

root@cqw-virtual-machine:/opt/my_ncl# ncl test01.ncl
Copyright (C) 1995-2013 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.1.2
The use of this software is governed by a License Agreement.
See [img]file:///C:\Users\Terry\AppData\Local\Temp\[5UQ[BL(6~BS2JV6W}N6[%S.png[/img]http://www.ncl.ucar.edu/ for more details.
fatal:["FileSupport.c":2761]:_NclFindFileExt: Requested file <DEU_adm/DEU_adm2.shp> or <DEU_adm/DEU_adm2> does not exist

fatal:["FileSupport.c":3106]:(DEU_adm/DEU_adm2.shp) has no file extension, can't determine type of file to open
fatal:file (a) isn't defined
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 34 in file test01.ncl


QQ截图20150327234708.png


有没有遇到相同情况的人啊!!啊啊啊
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-3-27 23:49:52 | 显示全部楼层
就按上面报错提示 应该是缺少文件 但具体是什么文件 从哪里下 放到哪里完全不清楚啊
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-3-28 09:38:07 | 显示全部楼层
贴一下你的ncl code吧
看起来是缺少shape文件
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-3-28 20:42:18 | 显示全部楼层
本帖最后由 shasidaran 于 2015-3-28 20:45 编辑

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

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2015-3-28 20:43:31 | 显示全部楼层
本帖最后由 shasidaran 于 2015-3-28 20:45 编辑
deneb1979 发表于 2015-3-28 09:38
贴一下你的ncl code吧
看起来是缺少shape文件

QQ图片20150328204227.png

首先感谢回复!
这个是官网下的脚本文件,不知道shape文件应该从哪里下?下好放哪里?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-3-28 21:49:43 | 显示全部楼层
我也是这个问题~
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-3-30 22:30:05 | 显示全部楼层
如果一定要运行这个脚本,你需要德国地图的shape文件
这里可以下载
选择国家-Germany
http://gadm.org/country

其实这个官方脚本里是有说明的

; This particular template attaches Germany shapefile polylines that
; were downloaded from gadm.org/country.  This is a great website
; for downloading many levels of outlines for countries.
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-3-31 09:32:38 | 显示全部楼层
虽然我不会,但是顶一下~
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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