爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 5572|回复: 2

求教高手!!!~NCL画taylor泰勒图运行不灵

[复制链接]

新浪微博达人勋

发表于 2019-10-14 18:34:56 | 显示全部楼层 |阅读模式

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

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

x
NCL官网有直接的例子,http://www.ncl.ucar.edu/Applications/taylor.shtml除了taylor_8.ncl 其他的都能画出图,而这个taylor_8.ncl在执行任务后,一直没有动静,也不提示出错,也不会运行结束。向高手求教!

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

新浪微博达人勋

 楼主| 发表于 2019-10-15 07:47:34 | 显示全部楼层
;**********************************
; taylor_8.ncl
;**********************************
;
; These files are loaded by default in NCL V6.2.0 and newer
; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"   
; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"  
;
; This file still has to be loaded manually
load "./taylor_diagram_cam.ncl"
;**********************************
begin
;**********************************
; Assume the following have already been computed:
;   _ratio are the ratio:  Case_Variance/Reference_Variance
;   _cc    are the cross correlation coef of Case to Reference
;   _bias  are the bias estimates
;**********************************

; Cases [Model]
  case      = (/ "Data A", "Data B" /)
  nCase     = dimsizes(case )                 ; # of Cases [Cases]

; variables compared
  var       = (/ "Globe","20S-20N","Land", "Ocean", "N. America", "Africa" /)
  nVar      = dimsizes(var)                   ; # of Variables

; "Case A"                        
  CA_ratio   = (/1.230, 0.988, 1.092, 1.172, 1.064, 0.990 /)
  CA_cc      = (/0.958, 0.973,-0.740, 0.743, 0.922, 0.950 /)
  BA         = (/2.7  ,-1.5  , 17.31,-20.11, 12.5 , 8.341 /)

; "Case B"
  CB_ratio   = (/1.129, 0.996, 1.016, 1.134, 1.023, 0.962 /)
  CB_cc      = (/0.963, 0.975, 0.801, 0.814,-0.946, 0.984 /)
  BB         = (/1.7  , 2.5  ,-17.31, 20.11, 19.5 , 7.341 /)

; arrays to be passed to taylor plot
  ratio      = new ((/nCase, nVar/),typeof(CA_cc) )  
  cc         = new ((/nCase, nVar/),typeof(CA_cc) )
  bias       = new ((/nCase, nVar/),typeof(CA_cc) )

  ratio(0,:) = CA_ratio
  ratio(1,:) = CB_ratio

  cc(0,:)    = CA_cc
  cc(1,:)    = CB_cc

  bias(0,:)  = BA
  bias(1,:)  = BB

;**********************************
; create plot
;**********************************

  res   = True                           ; default taylor diagram
        
  res@Markers      = (/16, 16/)               ; make all solid fill
  res@Colors       = (/"red", "blue" /)         
  res@varLabels    = var
  res@caseLabels   = case

  wks   = gsn_open_wks("png","taylor")        ; send graphics to PNG file
  plot  = taylor_diagram_cam(wks,ratio,cc,bias,res)
end
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 5 天前 | 显示全部楼层
请问楼主现在知道原因了吗我跟你是一样的问题
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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