最近学习了一下泰勒图的做法,对2001年泰勒的文章进行了简单学习,说一点自己的理解:
泰勒图一般是用来评估多个模式对观测数据的模拟能力,包括标准差、中心型均方根误差、相关系数这三部分,这三部分可以构建一个三角关系。相关系数是用来量化模式之间的相似性,但是它有缺点,无法量化变化幅度。比如,当两个空间场变化极其相似,但是变化程度有量级差异,如果不看均方根误差而只看相关系数,那么很容易出现问题。标准差可以看出来模式相对于观测的离散程度。
在ncl的脚本中,官网提供了现成的代码给我们绘制泰勒图,只需要提供模式和观测之间的相关系数,以及模式与观测之间的标准差的比率,就可以画出。因为代码中用到的是标准差比率,根据文章中提到的三角关系,我们图中最终得到的是标准化后的样本标准差和标准化后的中心型均方根误差,这样得到的图更加清晰明了。
如果要对模式进行优选,就可以根据自己的需求,设定标准化后的标准差的范围(标准化后的中心型均方根误差类似),还可以对相关系数进行显著性检验等等。
下面是官网提供的泰勒图代码:
function taylor_diagram (wks:graphic ,RATIO[*][*]:numeric, CC[*][*]:numeric \
,rOpts:logical)
;--------------------------------------------------------------------
; This version of taylor_diagram supports "paneling"
; It requires NCL version 4.2.0.a034 because it uses "gsn_create_legend"
;--------------------------------------------------------------------
;
; Generate a Taylor Diagram:
; Generate Multiple Aspects of Model Performance in a Single Diagram
; Taylor, K. E., J. Geophys. Res., 106, D7, 7183-7192, 2001
;
; An example:
; http://www.grida.no/climate/ipcc_tar/wg1/fig8-4.htm
;
; This expects one or more datasets. The left dimension
; is the number of datasets. The rightmost is the number of pts.
;
; Markers are at:
; http://www.ncl.ucar.edu/Document/Graphics/Resources/gs.shtml
;
; By default, the function can handle up to 10 variable comparisons..
; To expand ... modify the 'Colors' and 'Markers' attributes.
; The user can change / add some default settings.
;
; The defaults that the user can modify:
;
; rOpts = True
; ; 'made-up' resources
; rOpts@Colors = (/ "blue" , "red", "green", "cyan", "black" \
; , "turquoise", "brown", "yellow"/)
; rOpts@Markers = (/ 2, 3, 6, 14, 9, 12, 7, 4/) ; Marker Indices
; rOpts@markerTxOffset = 0.0175 ; offset for text above marker
; rOpts@stnRad = (/ 1. /) ; (/ 0.50, 0.75, 1.5 /)
; rOpts@centerDiffRMS = False ; True mean draw additional radii from REF
; rOpts@caseLabelsFontHeightF = 0.05
; rOpts@varLabelsFontHeightF = 0.013
; rOpts@varLabelsYloc = 0.65
; rOpts@legendWidth = 0.015
; rOpts@legendHeight = 0.030*nCase
; rOpts@taylorDraw = True
; rOpts@taylorFrame = True
;
; ; standard NCL resources
; rOpts@tiMainString = "Taylor" ; not using title makes plot bigger
; rOpts@gsMarkerSizeF = 0.0085 ; marker size
; rOpts@gsMarkerThicknessF = 1.0
; rOpts@txFontHeightF = 0.0125 ; text size
; rOpts@tiMainFontHeightF = 0.0225 ; tiMainString size
;
; It returns to the user a graphic object containing the
; Taylor background and plotted x/y pts.
; This graphic object contains a simple Taylor background appropriate
; for standardized data and the markers for the datasets.
; ==================================================================
; This version allows paneling:
; The 'cumbersome' "dum" variables were added by
; Adam Phillips to allow paneling via "gsn_add_?".
; ==================================================================
begin
dimR = dimsizes(RATIO)
nCase = dimR(0) ; # of cases [models]
nVar = dimR(1) ; # of variables
; x/y coordinates for plotting
X = new ( (/nCase,nVar/) , typeof(RATIO) )
Y = new ( (/nCase,nVar/) , typeof(RATIO) )
do nc=0,nCase-1
angle = acos( CC(nc,:) ) ; array operation
X(nc,:) = RATIO(nc,:)*cos( angle )
Y(nc,:) = RATIO(nc,:)*sin( angle )
end do
xyMin = 0.
xyOne = 1.00
xyMax = 1.65
xyMax_Panel = xyMax+ 0.10 ; paneling purposes
if (rOpts .and. isa
253



被折叠的 条评论
为什么被折叠?



