source: tags/ORCHIDEE_2_0/ORCHIDEE_OL/ENSEMBLE/taylor_arrow_fluxnet_final_2.jnl @ 5112

Last change on this file since 5112 was 1481, checked in by nicolas.vuichard, 11 years ago

Merge of the FLUXNET and ENSEMBLE configurations - Both are done in the ENSEMBLE directory now

  • Property svn:executable set to *
File size: 2.8 KB
Line 
1
2go page_new -i 1 1 0 100 0 100
3
4let count=($01)
5let flag_ref=($03)
6
7let norm_max=1.7
8
9
10set window 1
11
12DEFINE VIEWPORT/XLIM=0,1/YLIM=0.25,0.95 V1
13DEFINE VIEWPORT/XLIM=0,1/YLIM=0,1 V2
14DEFINE VIEWPORT/XLIM=0,1/YLIM=0.07,0.27 V3
15
16SET VIEWPORT V1
17go taylor_frame.jnl norm_max `norm_max/6,p=1` " " "Normalized Standard Deviation" 2
18
19
20file/TYPE="TEXT,NUMERIC,NUMERIC,NUMERIC,NUMERIC,NUMERIC,NUMERIC"/variables="vec_id_site,vec_norm_eval,vec_correl_eval,vec_bias_eval,vec_norm_ref,vec_correl_ref,vec_bias_ref"/FORMAT=DELIMITERS/DELIM="\b" stat_($05)_($06)_($07)_($04)_($02).csv
21
22repeat/i=1:`count` ( \
23let norm_ref=vec_norm_ref[i=`i`]; \
24let norm_eval=vec_norm_eval[i=`i`]; \
25let correl_ref=vec_correl_ref[i=`i`]; \
26let correl_eval=vec_correl_eval[i=`i`]; \
27let num_site=`i` ; \
28go poly_vectors.jnl `norm_ref`*cos(acos(`correl_ref`)) `norm_ref`*sin(acos(`correl_ref`)) `norm_eval`*cos(acos(`correl_eval`))-`norm_ref`*cos(acos(`correl_ref`)) `norm_eval`*sin(acos(`correl_eval`))-`norm_ref`*sin(acos(`correl_ref`)) 0.2760 "arrow" ; \
29polygon/over/nolabel/noaxis/nokey/pal="white"/line plt_x_arrow, plt_y_arrow, 1 ; \
30go taylor_polymark `norm_ref` `correl_ref` /line/fill/nokey/pal="white"/over 1 circle 0.5 ; \
31let mon_lab_x = `norm_ref`*cos(acos(`correl_ref`))+`norm_max/50` ; \
32let mon_lab_y = `norm_ref`*sin(acos(`correl_ref`))+`norm_max/50` ; \
33let mon_lab_x_corr =if(mon_lab_x gt norm_max*1.3) then (-1) else mon_lab_x ; \
34label `mon_lab_x_corr`,`mon_lab_y`,0,0,0.1 "`num_site`"  ; )
35
36set VIEWPORT V2
37repeat/i=1:`count` ( \
38let id_site=vec_id_site[i=`i`] ; \
39let num_site=`i` ; \
40let xpos=10*(0.7+INT((`num_site`-1)/10)*1.5) ; let ypos=90-mod(`num_site`-1,10)*3 ; \
41go text_put xpos ypos "`num_site` `id_site`" -1 0.2 )
42
43go text_put 50 95 "($07) sites: ($02)-to-($02) ($04) variability" 0 0.5
44
45set VIEWPORT V1
46label 0, `norm_max/3*-1,p=1`,1,0,0.2 "@ASVersion ($06)"
47repeat/range=1:`flag_ref`/name=ref ( \
48go world_arrow_put 0 `norm_max/3*-1,p=1` `norm_max/3,p=1` `norm_max/3*-1,p=1`;\
49label `norm_max/3,p=1`, `norm_max/3*-1,p=1`,-1,0,0.2 "@AS($05)")
50
51
52set VIEWPORT V3
53go margins_set 20 20 20 5
54
55define axis/x=1:`count+1`:1/edges my_x
56
57let var_pft=if(j[j=1:2] le 1) then vec_bias_eval[gx=my_x@asn] else vec_bias_ref[gx=my_x@asn]
58shade/set_up/pal=inverse_greyscale/VGRAT=(line,col=black,THICK=3)/hlimits=1:`count+1`:1/AXES=1,1,0,0/nolabels/nokey var_pft
59
60
61PPL AXLABP 0,0 !turn off numeric labels
62PPL AXLSZE 0.95,0.25
63PPL LABSET 0.3 0.3 0.3 0.3
64ppl shakey 1, 0, 0.15, 5, 3, 6, ($PPL$XORG),  `($PPL$XORG)+($PPL$XLEN)`,`($PPL$YORG)-1.3`,`($PPL$YORG)-0.9`
65ppl shade
66
67
68repeat/i=1:2 (\
69let xlegend="@AS$`4+i`" ;\
70let my_y=`i-0.5`*($PPL$YLEN)/2; \
71let my_x=-0.5 ; \
72label/nouser `my_x`,`my_y`,1,0,.15 `xlegend` )
73
74repeat/i=1:`count` (\
75let xlegend="@AS`i`" ;\
76let my_x=`i-0.5`*($PPL$XLEN)/`count`; \
77let my_y=-0.5 ; \
78label/nouser `my_x`,`my_y`,0,0,.15 `xlegend` )
79
Note: See TracBrowser for help on using the repository browser.