1 | ;+ |
---|
2 | ; .. _stratus_validation_net_2001_2002_all_v10.pro: |
---|
3 | ; |
---|
4 | ; ============================================ |
---|
5 | ; stratus_validation_net_2001_2002_all_v10.pro |
---|
6 | ; ============================================ |
---|
7 | ; |
---|
8 | ; DESCRIPTION |
---|
9 | ; =========== |
---|
10 | ; |
---|
11 | ; .. graphviz:: |
---|
12 | ; |
---|
13 | ; digraph stratus_validation_net_2001_2002_all_v10 { |
---|
14 | ; graph [ |
---|
15 | ; rankdir="LR", |
---|
16 | ; ] |
---|
17 | ; met_data [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/met_data_stratus_2001_2002.txt"]; |
---|
18 | ; swr_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_swr_19910101_20091231_oafluxgrid.nc"]; |
---|
19 | ; lwr_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_lwr_19910101_20091231_oafluxgrid.nc"]; |
---|
20 | ; lhf_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_lhf_19910101_20091231_oafluxgrid.nc"]; |
---|
21 | ; shf_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_shf_19910101_20091231_oafluxgrid.nc"]; |
---|
22 | ; tropflux_general [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/TropFlux_19890101_20091231.nc"]; |
---|
23 | ; swr_tropflux_nrt [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/TropFlux_swr_19890101_20091231_NRT_v50.nc"]; |
---|
24 | ; swr_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/swr_oafluxgrid_1985_2007.nc"]; |
---|
25 | ; lwr_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lwr_oafluxgrid_1985_2007.nc"]; |
---|
26 | ; lhf_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lhf_oafluxgrid_1985_2007.nc"]; |
---|
27 | ; shf_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/shf_oafluxgrid_1985_2007.nc"]; |
---|
28 | ; swr_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/swr_ncep2_oaflxgrid_19890101_20091231.nc"]; |
---|
29 | ; lwr_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/NCEP2_flux_19890101_20090729.nc"]; |
---|
30 | ; lhf_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lhf_ncep2_oafluxgrid_19890101_20091231.nc"]; |
---|
31 | ; shf_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/shf_ncep2_oafluxgrid_19890101_20091231.nc"]; |
---|
32 | ; |
---|
33 | ; ncep1 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/ncep1_flux_19890101_20091231.nc"]; |
---|
34 | ; |
---|
35 | ; figure [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/stratus_validation_net_2001_2002_all_v11.ps"]; |
---|
36 | ; |
---|
37 | ; stratus_validation_net_2001_2002_all_v10 [shape=box, |
---|
38 | ; fontname=Courier, |
---|
39 | ; color=blue, |
---|
40 | ; URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig14/stratus_validation_net_2001_2002_all_v10.pro", |
---|
41 | ; label="${TROPFLUX}/src/paper01/fig14/stratus_validation_net_2001_2002_all_v10.pro"]; |
---|
42 | ; |
---|
43 | ; {met_data swr_erai lwr_erai lhf_erai shf_erai tropflux_general swr_tropflux_nrt swr_oafluxgrid lwr_oafluxgrid lhf_oafluxgrid shf_oafluxgrid swr_ncep2 lwr_ncep2 lhf_ncep2 shf_ncep2 ncep1} -> {stratus_validation_net_2001_2002_all_v10} -> {figure} |
---|
44 | ; } |
---|
45 | ; |
---|
46 | ; SEE ALSO |
---|
47 | ; ======== |
---|
48 | ; |
---|
49 | ; :ref:`project_profile.sh` |
---|
50 | ; :ref:`project_init.pro` |
---|
51 | ; :ref:`cm_project.pro` |
---|
52 | ; |
---|
53 | ; :ref:`statistics.pro` |
---|
54 | ; |
---|
55 | ; EXAMPLES |
---|
56 | ; ======== |
---|
57 | ; |
---|
58 | ; :: |
---|
59 | ; |
---|
60 | ; IDL> stratus_validation_net_2001_2002_all_v10 |
---|
61 | ; |
---|
62 | ; TODO |
---|
63 | ; ==== |
---|
64 | ; |
---|
65 | ; make it work on cratos : missing data |
---|
66 | ; |
---|
67 | ; ++ mooring data in graphviz |
---|
68 | ; |
---|
69 | ; coding rules |
---|
70 | ; |
---|
71 | ; get rid of spwan |
---|
72 | ; |
---|
73 | ; complete description |
---|
74 | ; |
---|
75 | ; handle IO error |
---|
76 | ; |
---|
77 | ; EVOLUTIONS |
---|
78 | ; ========== |
---|
79 | ; |
---|
80 | ; $Id$ |
---|
81 | ; |
---|
82 | ; - fplod 20110420T120826Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
83 | ; |
---|
84 | ; * remove hard coding path |
---|
85 | ; * add graphviz |
---|
86 | ; |
---|
87 | ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
88 | ; |
---|
89 | ; * minimal header |
---|
90 | ; |
---|
91 | ;- |
---|
92 | pro stratus_validation_net_2001_2002_all_v10 |
---|
93 | @cm_general |
---|
94 | @cm_project |
---|
95 | reinitplt, /z,/invert |
---|
96 | key_portrait = 1 |
---|
97 | coefpalit=.9 |
---|
98 | |
---|
99 | openps, FILENAME = 'idl.ps' |
---|
100 | ; partie a changer |
---|
101 | |
---|
102 | ;; stratus in the south pacific cold tongue 2000-01 |
---|
103 | ;20.9S, 80.8W (274.2E) |
---|
104 | box=[274, 275, -21., -20.] |
---|
105 | |
---|
106 | ;; first leg |
---|
107 | |
---|
108 | fi=project_id_env+"met_data_stratus_2001_2002.txt" |
---|
109 | res=read_ascii(fi,data_start=1) |
---|
110 | ff=res.field1 |
---|
111 | swr=reform(ff(7,*))/0.94 |
---|
112 | lwr=reform(ff(8,*)) |
---|
113 | lhf=reform(ff(5,*)) |
---|
114 | shf=reform(ff(6,*)) |
---|
115 | |
---|
116 | net=swr+lwr+shf+lhf |
---|
117 | help, net |
---|
118 | |
---|
119 | ;; reading other data sets |
---|
120 | |
---|
121 | st1=20011019 & en1=20021022 |
---|
122 | |
---|
123 | file=project_id_env+"erai_swr_19910101_20091231_oafluxgrid.nc" |
---|
124 | initncdf, file |
---|
125 | swr=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr=grossemoyenne(swr, "xy", box=box,/nan) & swr=reform(swr) |
---|
126 | file=project_id_env+'erai_lwr_19890101_20091231_oafluxgrid.nc' |
---|
127 | initncdf, file |
---|
128 | lwr=read_ncdf('lwr',st1-1,en1,file=file,/nostr, box=box) & lwr=reform(lwr) |
---|
129 | file=project_id_env+'erai_shf_19890101_20091231_oafluxgrid.nc' |
---|
130 | initncdf, file |
---|
131 | shf=-1*read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf=reform(shf) |
---|
132 | file=project_id_env+'erai_lhf_19890101_20091231_oafluxgrid.nc' |
---|
133 | initncdf, file |
---|
134 | lhf=-1*read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf=reform(lhf) |
---|
135 | |
---|
136 | era=swr+lwr+lhf+shf |
---|
137 | help, era |
---|
138 | |
---|
139 | swr=0 & lwr=0 & lhf=0 & shf=0 |
---|
140 | |
---|
141 | file=project_id_env+"TropFlux_19890101_20091231.nc" |
---|
142 | initncdf, file |
---|
143 | swr=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr=grossemoyenne(swr, "xy",/nan, box=box) & swr=reform(swr) |
---|
144 | lwr=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box) & lwr=grossemoyenne(lwr, "xy",/nan, box=box) & lwr=reform(lwr) |
---|
145 | shf=read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf=grossemoyenne(shf, "xy",/nan, box=box) & shf=reform(shf) |
---|
146 | lhf=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf=grossemoyenne(lhf, "xy",/nan, box=box) & lhf=reform(lhf) |
---|
147 | |
---|
148 | file=project_id_env+"TropFlux_swr_19890101_20091231_NRT_v50.nc" |
---|
149 | initncdf, file |
---|
150 | olr1=read_ncdf("sw", st1-1, en1, file=file,/nostr, box=box) & olr1=grossemoyenne(olr1, "xy",/nan, box=box) & olr1=reform(olr1) |
---|
151 | |
---|
152 | trop=swr+lwr+shf+lhf |
---|
153 | olr=olr1+lwr+shf+lhf |
---|
154 | help, trop, olr |
---|
155 | swr=0 & lwr=0 & lhf=0 & shf=0 & olr1=0 |
---|
156 | |
---|
157 | file=project_id_env+'swr_oafluxgrid_1985_2007.nc' |
---|
158 | initncdf, file |
---|
159 | swr=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) & swr=grossemoyenne(swr, "xy",/nan, box=box) & swr=reform(swr) |
---|
160 | |
---|
161 | file=project_id_env+'lwr_oafluxgrid_1985_2007.nc' |
---|
162 | initncdf, file |
---|
163 | lwr=read_ncdf("lwr", st1, en1, file=file,/nostr, box=box) & lwr=-1*reform(lwr) |
---|
164 | |
---|
165 | file=project_id_env+'lhf_oafluxgrid_1985_2009.nc' |
---|
166 | initncdf, file |
---|
167 | lhf=read_ncdf("lhf", st1, en1, file=file,/nostr, box=box) & lhf=-1*reform(lhf) |
---|
168 | |
---|
169 | file=project_id_env+'shf_oafluxgrid_1985_2009.nc' |
---|
170 | initncdf, file |
---|
171 | shf=read_ncdf("shf", st1, en1, file=file,/nostr, box=box) & shf=-1*reform(shf) |
---|
172 | |
---|
173 | oaf=swr+lwr+shf+lhf |
---|
174 | help, oaf |
---|
175 | swr=0 & lwr=0 & lhf=0 & shf=0 |
---|
176 | |
---|
177 | fi=project_id_env+'swr_ncep2_oaflxgrid_19890101_20091231.nc' |
---|
178 | initncdf, fi |
---|
179 | swr=read_ncdf("swr", st1, en1, file=fi,/nostr, box=box) & swr=grossemoyenne(swr, "xy",/nan, box=box) & swr=reform(swr) |
---|
180 | |
---|
181 | fi=project_id_env+"NCEP2_flux_19890101_20090729.nc" |
---|
182 | initncdf, fi |
---|
183 | lwr=read_ncdf("lwr", st1, en1, file=fi,/nostr, box=box) & lwr=grossemoyenne(lwr, "xy",/nan, box=box) & lwr=reform(lwr) |
---|
184 | lwr=-1*lwr |
---|
185 | |
---|
186 | fi=project_id_env+'lhf_ncep2_oafluxgrid_19890101_20091231.nc' |
---|
187 | initncdf, fi |
---|
188 | lhf=read_ncdf("lhf", st1, en1, file=fi,/nostr, box=box) & lhf=-1*reform(lhf) |
---|
189 | |
---|
190 | fi=project_id_env+'shf_ncep2_oafluxgrid_19890101_20091231.nc' |
---|
191 | initncdf, fi |
---|
192 | shf=read_ncdf("shf", st1, en1, file=fi,/nostr, box=box) & shf=-1*reform(shf) |
---|
193 | |
---|
194 | nce2=swr+lwr+shf+lhf |
---|
195 | help, nce2 |
---|
196 | |
---|
197 | swr=0 & lwr=0 & lhf=0 & shf=0 |
---|
198 | |
---|
199 | file=project_id_env+"ncep1_flux_19890101_20091231.nc" |
---|
200 | initncdf, file |
---|
201 | swr=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) & swr=grossemoyenne(swr, "xy",/nan, box=box) & swr=reform(swr) |
---|
202 | lwr=read_ncdf("lwr", st1, en1, file=file,/nostr, box=box) & lwr=grossemoyenne(lwr, "xy",/nan, box=box) & lwr=reform(lwr) |
---|
203 | shf=read_ncdf("shf", st1, en1, file=file,/nostr, box=box) & shf=grossemoyenne(shf, "xy",/nan, box=box) & shf=reform(shf) |
---|
204 | lhf=read_ncdf("lhf", st1, en1, file=file,/nostr, box=box) & lhf=grossemoyenne(lhf, "xy",/nan, box=box) & lhf=reform(lhf) |
---|
205 | |
---|
206 | nce1=swr+lwr+shf+lhf |
---|
207 | help, nce1 |
---|
208 | |
---|
209 | ind=where(finite(net)) |
---|
210 | net=net(ind) & era=era(ind) & trop=trop(ind) & oaf=oaf(ind) & nce2=nce2(ind) & nce1=nce1(ind) |
---|
211 | olr=olr(ind) |
---|
212 | |
---|
213 | statistics, net, era, $ |
---|
214 | cor, bias, std, rmsd |
---|
215 | print, cor, bias, std, rmsd |
---|
216 | cstat_era=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
217 | |
---|
218 | statistics, net, trop, $ |
---|
219 | cor, bias, std, rmsd |
---|
220 | print, cor, bias, std, rmsd |
---|
221 | cstat_trop=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
222 | |
---|
223 | statistics, net, oaf, $ |
---|
224 | cor, bias, std, rmsd |
---|
225 | print, cor, bias, std, rmsd |
---|
226 | cstat_oaf=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
227 | |
---|
228 | statistics, net, nce1, $ |
---|
229 | cor, bias, std, rmsd |
---|
230 | print, cor, bias, std, rmsd |
---|
231 | cstat_nce1=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
232 | |
---|
233 | statistics, net, nce2, $ |
---|
234 | cor, bias, std, rmsd |
---|
235 | print, cor, bias, std, rmsd |
---|
236 | cstat_nce2=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
237 | |
---|
238 | statistics, net, olr, $ |
---|
239 | cor, bias, std, rmsd |
---|
240 | print, cor, bias, std, rmsd |
---|
241 | cstat_olr=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
242 | |
---|
243 | |
---|
244 | splot, net, era, charsize=1.1, title='SWR - Stratus Vs ERAI', $ |
---|
245 | xrange=[-200,200], yrange=[-200,200], small=[2,3,1], psym=2, xmin=1, ymin=1 |
---|
246 | oplot, [-200,200], [-200,200] |
---|
247 | xyouts, -150,-175, cstat_era, charsize=1. |
---|
248 | |
---|
249 | splot, net, trop, charsize=1.1, title='SWR - Stratus Vs TropFlux',/noer, $ |
---|
250 | xrange=[-200,200], yrange=[-200,200], small=[2,3,2], psym=2, xmin=1, ymin=1 |
---|
251 | oplot, [-200,200], [-200,200] |
---|
252 | xyouts, -150,-175, cstat_trop, charsize=1. |
---|
253 | |
---|
254 | splot, net, oaf, charsize=1.1, title='SWR - Stratus Vs OAFlux',/noer, $ |
---|
255 | xrange=[-200,200], yrange=[-200,200], small=[2,3,3], psym=2, xmin=1, ymin=1 |
---|
256 | oplot, [-200,200], [-200,200] |
---|
257 | xyouts, -150,-175, cstat_oaf, charsize=1. |
---|
258 | |
---|
259 | splot, net, nce1, charsize=1.1, title='SWR - Stratus Vs NCEP1',/noer, $ |
---|
260 | xrange=[-200,200], yrange=[-200,200], small=[2,3,4], psym=2, xmin=1, ymin=1 |
---|
261 | oplot, [-200,200], [-200,200] |
---|
262 | xyouts, -150,-175, cstat_nce1, charsize=1. |
---|
263 | |
---|
264 | splot, net, nce2, charsize=1.1, title='SWR - Stratus Vs NCEP2',/noer, $ |
---|
265 | xrange=[-200,200], yrange=[-200,200], small=[2,3,5], psym=2, xmin=1, ymin=1 |
---|
266 | oplot, [-200,200], [-200,200] |
---|
267 | xyouts, -150,-175, cstat_nce2, charsize=1. |
---|
268 | |
---|
269 | splot, net, olr, charsize=1.1, title='SWR - Stratus Vs TropFlux_NRT',/noer, $ |
---|
270 | xrange=[-200,200], yrange=[-200,200], small=[2,3,6], psym=2, xmin=1, ymin=1 |
---|
271 | oplot, [-200,200], [-200,200] |
---|
272 | xyouts, -150,-175, cstat_olr, charsize=1. |
---|
273 | |
---|
274 | closeps |
---|
275 | fig=project_od_env+"stratus_validation_net_2001_2002_all_v11.ps" |
---|
276 | spawn, 'mv '+psdir+'idl.ps '+fig |
---|
277 | spawn, 'gv '+fig |
---|
278 | end |
---|