爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 10987|回复: 10

[作图] 大型机运行ncl遇到这个问题咋解决啊

[复制链接]
发表于 2014-11-3 06:59:59 | 显示全部楼层 |阅读模式

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

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

x
在自己电脑上就不会出现问题,画出的色标也是正常的,但是在服务器上就出现了一下提示错误,并且画出的色标也不正常,
感觉没用用到NCL自带的colorbar啊,大神们,你们咋解决的啊?

fatal: CvtStringToCmap:Unable to convert string "BlueWhiteOrangeRed" to ColorMap
warning: Error retrieving resource wkColorMap from DB- Using default value
密码修改失败请联系微信:mofangbao
发表于 2014-11-3 08:28:07 | 显示全部楼层
把脚本贴出来吧。
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2014-11-3 08:38:31 | 显示全部楼层


;   Example script - plot terrain (using only basic NCL functions)
;   Note no map background info is available
;   November 2008

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"

begin

  a = addfile("./geo_em.d01.nc","r")   ; Open a file


;  type = "x11"
; type = "pdf"
type = "ps"
; type = "ncgm"
  wks = gsn_open_wks(type,"plt_geo_1")       ; Create a plot workstation

  opts = True
  opts@MainTitle = "GEOGRID FIELDS"
  opts@InitTime   =  False
  opts@Footer     =  False
  
;  ter = a->HGT_M(0,:,:)                      ; Read the variable to memory
  ter = wrf_user_getvar(a,"HGT_M",0)
  
  res = opts
  res@cnFillOn    =  False
  res@gsnSpreadColors   = True
;  res@cnLevelSelectionMode  = "ManualLevels"
;  res@cnMinLevelValF  = 0.0
;  res@cnMaxLevelValF  = 6000.
;  res@cnLevelSpacingF = 100.
;;
  res@ContourParameters = (/0.,500.,100./)
  contour = wrf_contour(a,wks,ter,res)           ; Create plot
  
  pltres = True
  mpres = True
  mpres@mpGeophysicalLineColor   = "Black"
  mpres@mpGeophysicalLineThicknessF = 1.0
  mpres@mpGridLineColor          = "Red"
  mpres@mpLimbLineColor          = "Orange"
  mpres@mpNationalLineColor      = "Blue"
  mpres@mpNationalLineThicknessF  = 1.0
  mpres@mpPerimLineColor         = "Purle"
  mpres@mpDataSetName            = "Earth..4"
  mpres@mpDataBaseVersion        = "Ncarg4_1"
  mpres@mpOutlineSpecifiers      = (/"China:states"/)
  
  plot = wrf_map_overlays(a,wks,(/contour/),pltres,mpres)  ;  Plot field over map background

end

请指教
密码修改失败请联系微信:mofangbao
发表于 2014-11-3 13:04:05 | 显示全部楼层
缺 .hlurxxxx 啥的那个文件,去ncl主页上下载放在~ 下
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2014-11-3 19:48:06 | 显示全部楼层
freekiller 发表于 2014-11-3 13:04
缺 .hlurxxxx 啥的那个文件,去ncl主页上下载放在~ 下

放上了也不行啊 真是奇怪的问题
密码修改失败请联系微信:mofangbao
发表于 2014-11-3 20:44:29 | 显示全部楼层
空谷幽竹 发表于 2014-11-3 19:48
放上了也不行啊 真是奇怪的问题

看看$NCARG_ROOT   放颜色文件夹 BlueWhiteOrangeRed 文件在不
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2014-11-3 21:09:05 | 显示全部楼层
freekiller 发表于 2014-11-3 20:44
看看$NCARG_ROOT   放颜色文件夹 BlueWhiteOrangeRed 文件在不

en 谢谢 好像是NCL软件安装的问题 版本有点低了
密码修改失败请联系微信:mofangbao
发表于 2015-12-7 11:25:28 | 显示全部楼层
楼主请问你的问题解决了吗?在大型机也能修改colormap吗?{:eb303:}我也想问
密码修改失败请联系微信:mofangbao
发表于 2015-12-7 11:26:54 | 显示全部楼层
空谷幽竹 发表于 2014-11-3 21:09
en 谢谢 好像是NCL软件安装的问题 版本有点低了

楼主你的问题是咋解决的嘞?我想把自己的colormap放到大型机下运行,不知道怎么搞呢
密码修改失败请联系微信:mofangbao
发表于 2015-12-8 09:04:21 | 显示全部楼层
值得学习,很是给力的帖子
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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