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 | ;- |
---|
82 | pro fig10_swr_correction |
---|
83 | @cm_general |
---|
84 | @cm_project |
---|
85 | reinitplt, /z,/invert |
---|
86 | key_portrait = 1 |
---|
87 | |
---|
88 | openps, FILENAME = 'idl.ps' |
---|
89 | close,/all |
---|
90 | |
---|
91 | fi=project_id_env+'swr_isccp_correction.txt' |
---|
92 | res=read_ascii(fi,data_start=0) |
---|
93 | ff=res.field1 |
---|
94 | cor=reform(ff(0,*)) |
---|
95 | bias=reform(ff(1,*)) |
---|
96 | std=reform(ff(2,*)) |
---|
97 | mean=reform(ff(4,*)) |
---|
98 | |
---|
99 | |
---|
100 | splot, 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 | |
---|
104 | ab=linfit(mean, bias,yfit=yfit) |
---|
105 | a=float(ab(0)) & b=float(ab(1)) |
---|
106 | oplot, mean, yfit, thick=3 |
---|
107 | print, a,b |
---|
108 | ;; significant test |
---|
109 | significance_test_99,mean,bias |
---|
110 | |
---|
111 | fi=project_id_env+'swr_isccp_correction.txt' |
---|
112 | res=read_ascii(fi,data_start=0) |
---|
113 | ff=res.field1 |
---|
114 | cor=reform(ff(0,*)) |
---|
115 | bias=reform(ff(1,*)) |
---|
116 | std=reform(ff(2,*)) |
---|
117 | mean=reform(ff(4,*)) |
---|
118 | |
---|
119 | splot, 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 | |
---|
123 | ab=linfit(mean, std,yfit=yfit) |
---|
124 | a=float(ab(0)) & b=float(ab(1)) |
---|
125 | oplot, mean, yfit, thick=3 |
---|
126 | |
---|
127 | ;; significant test |
---|
128 | significance_test_99,mean,std |
---|
129 | |
---|
130 | closeps |
---|
131 | |
---|
132 | fig=project_od_env+'fig10_swr_correction.ps' |
---|
133 | spawn, 'mv '+psdir+'idl.ps '+fig |
---|
134 | spawn, 'gv '+fig |
---|
135 | |
---|
136 | end |
---|