[ncl-talk] Var labels on Taylor diagram
Dennis Shea
shea at ucar.edu
Tue Nov 4 12:59:21 MST 2014
;The variables take the order of the input Consider Example 8 at
http://www.ncl.ucar.edu/Applications/taylor.shtml
Example 8
===========
; 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
===
If you want the id order to be reversed
ratio(0,:) = CB_ratio
ratio(1,:) = CA_ratio
cc(0,:) = CB_cc
cc(1,:) = CA_cc
bias(0,:) = BB
bias(1,:) = BA
On Tue, Nov 4, 2014 at 8:11 AM, dream916 <dream916 at gmail.com> wrote:
> Hi,
>
> I would like to change the variable labels on the following diagram. For
> instance, I would like to change "9" to "1". I am not sure which part of
> the taylor code needs to be revised. I attached my ncl code and the
> associated taylor code. Thank you!
>
> Lei
>
> [image: Inline image 1]
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141104/844f2461/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 76180 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141104/844f2461/attachment.png
More information about the ncl-talk
mailing list