- 积分
- 2519
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-6-11
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 youngman 于 2020-5-21 09:17 编辑
泰勒图多用于评估模式结果相对于参考值(控制实验,OBS,再分析资料)的区别(相关性,方差,bias),当然,这个评估指标也可自己定义,可以评估多个不同case和不同变量。
NCL绘制最基本的泰勒图需要计算两个量:ratio 和 cc
ratio是方差之比:Case_Variance/Reference_Variance
cc是相关系数:cross correlation coef of Case to Reference
由这两个值定义泰勒图坐标系一个点的位置,然后绘图。
NCL绘制泰勒图另外需要load一个图像框架函数:taylor_diagram.ncl(见官网),参考官网一个简单绘图示例:
- load "./source_taylor/taylor_diagram.ncl"
- ; 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
- ; All ratio values must be between 0 and 1.65 (change in taylor_diagram.ncl)
- ; All cross correlation values are 0.0 to 1.0 [inclusive]
- ;-------------------------------------------------------------
- ; Cases [Model]
- case = (/"Case A", "Case B"/)
- nCase = dimsizes(case) ; # of Cases [Cases]
- ; variables compared
- var = (/"SLP","Tsfc","Prc","Prc 30S-30N","LW","SW", "U300", "Guess"/)
- nVar = dimsizes(var) ; # of Variables
- ; "Case A"
- CA_ratio = (/1.230, 0.988, 1.092, 1.172, 1.064, 0.966, 1.079, 0.781/)
- CA_cc = (/0.958, 0.973, 0.740, 0.743, 0.922, 0.982, 0.952, 0.433/)
- ; "Case B"
- CB_ratio = (/1.129, 0.996, 1.016, 1.134, 1.023, 0.962, 1.048, 0.852 /)
- CB_cc = (/0.963, 0.975, 0.801, 0.814, 0.946, 0.984, 0.968, 0.647 /)
- ; Put ratios and pattern correlations into arrays for plotting
- ratio = new((/nCase, nVar/),typeof(CA_cc))
- cc = new((/nCase, nVar/),typeof(CA_cc))
- ratio(0,:) = CA_ratio
- ratio(1,:) = CB_ratio
- cc(0,:) = CA_cc
- cc(1,:) = CB_cc
- wks = gsn_open_wks("png","taylor1")
- res = True
- res@tiMainString = "Example"
- res@caseLabels = case
- res@varLabels = var
- res@varLabelsYloc = 1.5 ; Move location of variable labels [default 0.45]
- res@Colors = (/"red","blue"/)
- res@Markers = (/16, 16/) ; make all solid fill
- res@markerTxYOffset = 0.04 ; offset btwn marker & label
- res@gsMarkerSizeF = 0.01 ; marker size
- res@txFontHeightF = 0.015 ; text size
- res@stnRad = (/0.5, 1.5/) ; additional standard radii
- res@ccRays = (/0.6, 0.9/) ; correlation rays
- res@centerDiffRMS = True ; RMS 'circles'
- plot = taylor_diagram(wks, ratio, cc, res)
复制代码
taylor_diagram.ncl
(18.52 KB, 下载次数: 88)
|
|