source: trunk/src/paper01/fig4/fig4_met_var_correction_scatter.pro @ 182

Last change on this file since 182 was 182, checked in by pinsard, 12 years ago

fix some svn propset

  • Property svn:keywords set to Id URL
File size: 4.7 KB
Line 
1;+
2; .. _fig4_met_var_correction_scatter.pro:
3;
4; ===================================
5; fig4_met_var_correction_scatter.pro
6; ===================================
7;
8; DESCRIPTION
9; ===========
10;
11; .. graphviz::
12;
13;    digraph fig4_met_var_correction_scatter {
14;
15;       sst [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/sst_correction_final.txt"];
16;       t2m [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/t2m_correction_final.txt"];
17;       q2m [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/q2m_correction_final.txt"];
18;       ws  [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/ws_correction_final.txt"];
19;
20;       figure [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/fig4_met_var_correction_scatter.ps"];
21;
22;       fig4_met_var_correction_scatter [shape=box,
23;       fontname=Courier,
24;       color=blue,
25;       URL="http://forge.ipsl.jussieu.fr/tropflux/browser/trunk/src/paper01/fig4/fig4_met_var_correction_scatter.pro",
26;       label="${TROPFLUX}/src/paper01/fig4/fig4_met_var_correction_scatter.pro"];
27;
28;       {sst t2m q2m ws} -> {fig4_met_var_correction_scatter} -> {figure}
29;    }
30;
31; SEE ALSO
32; ========
33;
34; :ref:`project_profile.sh`
35; :ref:`project_init.pro`
36;
37; :ref:`significance_test_99.pro`
38;
39; EXAMPLES
40; ========
41;
42; ::
43;
44;  fig4_met_var_correction_scatter
45;
46; TODO
47; ====
48;
49; check results
50;
51; improve plot
52;
53; coding rules
54;
55; complete description
56;
57; handle IO error
58;
59; EVOLUTIONS
60; ==========
61;
62; $Id$
63;
64; $URL$
65;
66; - pinsard 2011-04-20T15:27:24Z loholt1.ipsl.polytechnique.fr (Linux)
67;
68;   * work on loholt1
69;
70; - fplod 20110420T085113Z aedon.locean-ipsl.upmc.fr (Darwin)
71;
72;   * make it work on cratos
73;   * remove hard coding path
74;   * add graphviz
75;
76; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin)
77;
78;   * minimal header
79;
80;-
81pro fig4_met_var_correction_scatter
82@cm_general
83@cm_project
84reinitplt, /z,/invert
85key_portrait = 1
86;
87openps, FILENAME = project_od_env+'fig4_met_var_correction_scatter.ps'
88fi=project_id_env+'sst_correction_final.txt'
89res=read_ascii(fi,data_start=0)
90ff=res.field1
91cor=reform(ff(0,*))
92bias=reform(ff(1,*))
93std=reform(ff(2,*))
94mean=reform(ff(4,*))
95;
96splot, mean, bias, small=[2,3,1],/noer, xtitle='Mean ERAI SST', ytitle='ERAI SST bias', $
97       psym=2, charsize=1.,  $
98       xrange=[20,33], yrange=[-0.7,0.7], xmin=1, ymin=1
99oplot, [20,32], [0,0]
100xx=total(std)/n_elements(std)
101yy=total(bias)/n_elements(bias)
102;
103xyouts, 22, 0.6, 'bias=-0.05', charsize=1.1
104xyouts, 22, 0.5, 'std ratio=0.989', charsize=1.1
105;
106print, xx, yy
107ab=linfit(mean, bias,yfit=yfit)
108a=float(ab(0))
109b=float(ab(1))
110oplot, mean, yfit, thick=3, color=50
111print, a,b
112;
113; significant test
114significance_test_99,mean,bias
115;
116fi=project_id_env+'t2m_correction_final.txt'
117res=read_ascii(fi,data_start=0)
118ff=res.field1
119cor=reform(ff(0,*))
120bias=reform(ff(1,*))
121std=reform(ff(2,*))
122mean=reform(ff(4,*))
123;
124xx=total(std)/n_elements(std)
125yy=total(bias)/n_elements(bias)
126print, xx, yy
127;
128splot, mean, bias, small=[2,3,2],/noer, xtitle='Mean ERAI T2m', ytitle='ERAI T2m bias', $
129       psym=2, charsize=1.,  $
130       xrange=[20,31], yrange=[-1,0.6], xmin=1, ymin=1
131oplot, [20,32], [0,0]
132;
133xyouts, 22, 0.5, 'bias=-0.296', charsize=1.1
134xyouts, 22, 0.4, 'std ratio=0.92', charsize=1.1
135;
136ab=linfit(mean, bias,yfit=yfit)
137a=float(ab(0))
138b=float(ab(1))
139oplot, mean, yfit, thick=3, color=50
140print, a,b
141;
142; significant test
143significance_test_99,mean,bias
144;
145fi=project_id_env+'q2m_correction_final.txt'
146res=read_ascii(fi,data_start=0)
147ff=res.field1
148cor=reform(ff(0,*))
149bias=reform(ff(1,*))
150std=reform(ff(2,*))
151mean=reform(ff(4,*))
152;
153xx=total(std)/n_elements(std)
154yy=total(bias)/n_elements(bias)
155print, xx, yy
156;
157splot, mean, bias, small=[2,3,3],/noer, xtitle='Mean ERAI Q2m', ytitle='ERAI Q2m bias', $
158       psym=2, charsize=1.,  $
159       xrange=[12,21], yrange=[-1.5,0.8], xmin=1,ymin=1
160oplot, [12,32], [0,0]
161xyouts, 14, 0.6, 'bias=-0.79', charsize=1.1
162xyouts, 14, 0.5, 'std ratio=0.92', charsize=1.1
163;
164ab=linfit(mean, bias,yfit=yfit)
165a=float(ab(0))
166b=float(ab(1))
167oplot, mean, yfit, thick=3, color=50
168print, a,b
169;
170; significant test
171significance_test_99,mean,bias
172fi=project_id_env+'ws_correction_final.txt'
173res=read_ascii(fi,data_start=0)
174ff=res.field1
175cor=reform(ff(0,*))
176bias=reform(ff(1,*))
177std=reform(ff(2,*))
178mean=reform(ff(4,*))
179;
180xx=total(std)/n_elements(std)
181yy=total(bias)/n_elements(bias)
182print, xx, yy
183;
184splot, mean, bias, small=[2,3,4],/noer, xtitle='Mean ERAI WS', ytitle='ERAI WS bias', $
185        psym=2, charsize=1.,  $
186       xrange=[2,9], yrange=[-1,0.8], xmin=1, ymin=1
187oplot, [0,10], [0,0]
188xyouts, 3, 0.7, 'bias=-0.28', charsize=1.1
189xyouts, 3, 0.6, 'std ratio=0.90', charsize=1.1
190;
191ab=linfit(mean, bias,yfit=yfit)
192a=float(ab(0))
193b=float(ab(1))
194oplot, mean, yfit, thick=3, color=50
195;
196print, a,b
197; significant test
198significance_test_99,mean,bias
199;
200closeps
201;
202end
Note: See TracBrowser for help on using the repository browser.