爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 10935|回复: 10

[作图] linux下的ncl无法出图

[复制链接]

新浪微博达人勋

发表于 2016-12-18 21:01:51 | 显示全部楼层 |阅读模式

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

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

x
本帖最后由 小猪爱睡觉 于 2016-12-18 21:03 编辑

ncl初学者,菜鸟一枚,转wrf模式前想用NCL看一下模拟的区域是否正确,报了如下错误,求大神解答,感激不尽


GKS ERROR NUMBER -208 ISSUED FROM SUBROUTINE GOPWK :
--X driver error: DISPLAY environment variablenot set
GKS ERROR NUMBER   25 ISSUED FROM SUBROUTINE GESC  :
--SPECIFIED WORKSTATION IS NOT OPEN
fatal:Workstation with PID#8 is not open
fatal:Unable to open Workstation-Can't Create
fatal:Unable to access object with id:-4
fatal:PID #-4 can't be found in NhlSetValues
fatal:_NhlCreate:Invalid Parent id #-4
fatal:PID #-4 can't be found in NhlSetValues
fatal:Invalid plot ID=-4 passed to NhlGetBB
fatal:NhlGetValues:PID #-4 is invalid
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 2235 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 3388 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 10360 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 4128 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 4247 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 120 in file util/plotgrids.ncl

看英文好像是环境变量出错,不知道该怎么改,求大神解答,拜托拜托~~~
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2016-12-18 21:05:01 | 显示全部楼层
拜托大神解答,初学模式,各种不会
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-12-18 22:37:10 | 显示全部楼层
是不是可以先把代码贴上去给大家看看
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-12-18 22:51:47 | 显示全部楼层
画成pdf形式的?没有x11吗
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 成长值: 32430
发表于 2016-12-19 07:57:52 | 显示全部楼层
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2016-12-19 19:01:16 | 显示全部楼层
本帖最后由 小猪爱睡觉 于 2016-12-19 19:03 编辑
pandasp1213 发表于 2016-12-18 22:37
是不是可以先把代码贴上去给大家看看


代码是wrf的wps里自带的,查看模拟区域的脚本
1.png
2.png
3.png
4.png
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-12-19 20:47:26 | 显示全部楼层
本帖最后由 pandasp1213 于 2016-12-19 20:51 编辑
小猪爱睡觉 发表于 2016-12-19 19:01
代码是wrf的wps里自带的,查看模拟区域的脚本

附件是我从WPS里头拖下来的,运行了一下,可以画出区域,你对比对比,看看能不能有点儿发现

plotgrids.ncl

5.03 KB, 下载次数: 11, 下载积分: 金钱 -5

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

新浪微博达人勋

 楼主| 发表于 2016-12-19 21:09:26 | 显示全部楼层
pandasp1213 发表于 2016-12-19 20:47
附件是我从WPS里头拖下来的,运行了一下,可以画出区域,你对比对比,看看能不能有点儿发现

好滴,感谢
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-12-20 16:55:23 | 显示全部楼层
yu fa cuo wu
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2016-12-20 18:35:22 | 显示全部楼层

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

本版积分规则

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

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

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