爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 17965|回复: 12

[其他] ncl安装问题

[复制链接]

新浪微博达人勋

发表于 2017-10-8 12:26:32 | 显示全部楼层 |阅读模式

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

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

x
试了几次 还是不行 不知道是哪里出了问题 大家有遇到类似情况的请答疑一下 感激!

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

新浪微博达人勋

 楼主| 发表于 2017-10-8 12:27:06 | 显示全部楼层

                               
登录/注册后可看大图
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2017-10-8 12:27:43 | 显示全部楼层
为什么发不了图片呢?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2017-10-8 12:30:54 | 显示全部楼层
promote:usr mmmjjj$ ls
X11                bin                libexec                sbin                standalone
X11R6                lib                local                share
promote:usr mmmjjj$ cd /local
-bash: cd: /local: No such file or directory
promote:usr mmmjjj$ cd /local/
-bash: cd: /local/: No such file or directory
promote:usr mmmjjj$ pwd
/usr
还有就是总出现找不到该目录的情况 可能local 这个目录本来就在/usr下的呀
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2017-10-8 12:35:29 | 显示全部楼层
promote:ncl-6.4.0 mmmjjj$ source bash_profile
promote:ncl-6.4.0 mmmjjj$ ng4ex gsun01n -clean

NCAR Graphics NCL Example <gsun01n>


This example was set up to display the output to an
X11 window.

  Copying gsun01n.ncl

Running NCL...
Copyright (C) 1995-2017 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.4.0
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
GKS ERROR NUMBER -208 ISSUED FROM SUBROUTINE GOPWK :
--X driver error: DISPLAY environment variable not 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:_NhlCreate:Invalid Parent id #-4
fatal:NhlGetValues:PID #-4 is invalid
fatal:["Execute.c":8640]:Execute: Error occurred at or near line 11772 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl

fatal:["Execute.c":8638]:Execute: Error occurred at or near line 12


Finished running 'ncl < gsun01n.ncl'...

具体问题
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-10-8 19:15:21 | 显示全部楼层
mmmjjj527 发表于 2017-10-8 12:35
promote:ncl-6.4.0 mmmjjj$ source bash_profile
promote:ncl-6.4.0 mmmjjj$ ng4ex gsun01n -clean

你问的问题有点多。最后这个 ng4ex gsun01n的事情,是跟DISPLAY环境变量有关的。
所以你是本地电脑,还是远程连上服务器?
你的本地电脑是什么系统?windows还是别的?
你用什么软件出命令行的?

还有,你的ncl 其他功能可以用吗?
你跑的这个脚本用到了一个叫X11的图形功能,开始的时候比较难调通。不能调通也可以用pdf/png出图,也是可以生存,而且能活得好好儿的。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-10-9 01:35:19 | 显示全部楼层
linux下的话用conda安装吧,基本无痛
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2017-10-9 07:43:23 | 显示全部楼层
packard 发表于 2017-10-8 19:15
你问的问题有点多。最后这个 ng4ex gsun01n的事情,是跟DISPLAY环境变量有关的。
所以你是本地电脑,还 ...

是用的本地电脑 Mac的系统 问题已经解决了 谢谢回复!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2017-10-9 07:43:48 | 显示全部楼层
又是那隻貓 发表于 2017-10-9 01:35
linux下的话用conda安装吧,基本无痛

问题解决了 谢谢回复~
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2017-10-9 07:43:51 | 显示全部楼层
又是那隻貓 发表于 2017-10-9 01:35
linux下的话用conda安装吧,基本无痛

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

本版积分规则

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

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

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