source: trunk/src/paper01/fig10/fig10_swr_correction.pro @ 50

Last change on this file since 50 was 50, checked in by pinsard, 13 years ago

replace TROPFLUX by PROJECT

File size: 2.7 KB
Line 
1;+
2; .. _fig10_swr_correction.pro:
3;
4; ========================
5; fig10_swr_correction.pro
6; ========================
7;
8; DESCRIPTION
9; ===========
10;
11; .. graphviz::
12;
13;    digraph fig10_swr_correction {
14;       graph [
15;       rankdir="LR",
16;       ]
17;       swr_isccp [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/swr_isccp_correction.txt"];
18;
19;       figure [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/fig10_swr_correction.ps"];
20;
21;       fig10_swr_correction [shape=box,
22;       fontname=Courier,
23;       color=blue,
24;       URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig10/fig10_swr_correction.pro",
25;       label="${TROPFLUX}/src/paper01/fig10/fig10_swr_correction.pro"];
26;
27;       {swr_isccp} -> {fig10_swr_correction} -> {figure}
28;    }
29;
30; SEE ALSO
31; ========
32;
33; :ref:`project_profile.sh`
34; :ref:`project_init.pro`
35; :ref:`cm_project.pro`
36;
37; :ref:`significance_test_99.pro`
38;
39; EXAMPLES
40; ========
41;
42; ::
43;
44;  IDL> @project_init
45;  IDL> fig10_swr_correction
46;
47; TODO
48; ====
49;
50; check results
51;
52; improve plot
53;
54; coding rules
55;
56; get rid of spwan
57;
58; complete description
59;
60; handle IO error
61;
62; EVOLUTIONS
63; ==========
64;
65; $Id$
66;
67; - fplod 20110420T140853Z aedon.locean-ipsl.upmc.fr (Darwin)
68;
69;   * make it work on cratos
70;   * replace significance_test by significance_test_99
71;
72; - fplod 20110420T105744Z aedon.locean-ipsl.upmc.fr (Darwin)
73;
74;   * remove hard coding path
75;   * add graphviz
76;
77; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin)
78;
79;   * minimal header
80;
81;-
82pro fig10_swr_correction
83@cm_general
84@cm_project
85reinitplt, /z,/invert
86key_portrait = 1
87
88openps, FILENAME = 'idl.ps'
89close,/all
90
91fi=project_id_env+'swr_isccp_correction.txt'
92res=read_ascii(fi,data_start=0)
93ff=res.field1
94cor=reform(ff(0,*))
95bias=reform(ff(1,*))
96std=reform(ff(2,*))
97mean=reform(ff(4,*))
98
99
100splot, mean, bias, small=[2,3,1], xtitle='Mean ERA-I SWR', ytitle='ERA-I SWR bias', $
101       title='', psym=2, charsize=1.2,  $
102       xrange=[170,290], yrange=[-10,35], xmin=1, ymin=1
103
104ab=linfit(mean, bias,yfit=yfit)
105a=float(ab(0)) & b=float(ab(1))
106oplot, mean, yfit, thick=3
107print, a,b
108;; significant test
109significance_test_99,mean,bias
110
111fi=project_id_env+'swr_isccp_correction.txt'
112res=read_ascii(fi,data_start=0)
113ff=res.field1
114cor=reform(ff(0,*))
115bias=reform(ff(1,*))
116std=reform(ff(2,*))
117mean=reform(ff(4,*))
118
119splot, mean, std, small=[2,3,3],/noer, xtitle='Mean ERA-I SWR', ytitle='ERA-I std ratio', $
120       title='', psym=2, charsize=1.2,  $
121       xrange=[170,290], yrange=[0.4,1.4], xmin=1, ymin=1
122
123ab=linfit(mean, std,yfit=yfit)
124a=float(ab(0)) & b=float(ab(1))
125oplot, mean, yfit, thick=3
126
127;; significant test
128significance_test_99,mean,std
129
130closeps
131
132fig=project_od_env+'fig10_swr_correction.ps'
133spawn, 'mv '+psdir+'idl.ps '+fig
134spawn, 'gv '+fig
135
136end
Note: See TracBrowser for help on using the repository browser.