1 | ;+ |
---|
2 | ; .. _subdctn_cs_validation_net_1991_93_all_v10.pro: |
---|
3 | ; |
---|
4 | ; ============================================= |
---|
5 | ; subdctn_cs_validation_net_1991_93_all_v10.pro |
---|
6 | ; ============================================= |
---|
7 | ; |
---|
8 | ; DESCRIPTION |
---|
9 | ; =========== |
---|
10 | ; |
---|
11 | ; .. graphviz:: |
---|
12 | ; |
---|
13 | ; digraph subdctn_cs_validation_net_1991_93_all_v10 { |
---|
14 | ; |
---|
15 | ; met_data [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/met_data_subduct_cs_9*.txt"]; |
---|
16 | ; swr_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_swr_19910101_20091231_oafluxgrid.nc"]; |
---|
17 | ; lwr_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_lwr_19910101_20091231_oafluxgrid.nc"]; |
---|
18 | ; lhf_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_lhf_19910101_20091231_oafluxgrid.nc"]; |
---|
19 | ; shf_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_shf_19910101_20091231_oafluxgrid.nc"]; |
---|
20 | ; tropflux_general [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/TropFlux_19890101_20091231.nc"]; |
---|
21 | ; swr_tropflux_nrt [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/TropFlux_swr_19890101_20091231_NRT_v50.nc"]; |
---|
22 | ; swr_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/swr_oafluxgrid_1985_2007.nc"]; |
---|
23 | ; lwr_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lwr_oafluxgrid_1985_2007.nc"]; |
---|
24 | ; lhf_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lhf_oafluxgrid_1985_2007.nc"]; |
---|
25 | ; shf_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/shf_oafluxgrid_1985_2007.nc"]; |
---|
26 | ; swr_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/swr_ncep2_oaflxgrid_19890101_20091231.nc"]; |
---|
27 | ; lwr_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/NCEP2_flux_19890101_20090729.nc"]; |
---|
28 | ; lhf_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lhf_ncep2_oafluxgrid_19890101_20091231.nc"]; |
---|
29 | ; shf_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/shf_ncep2_oafluxgrid_19890101_20091231.nc"]; |
---|
30 | ; |
---|
31 | ; ncep1 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/ncep1_flux_19890101_20091231.nc"]; |
---|
32 | ; |
---|
33 | ; figure [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/subdctn_cs_validation_net_1991_93_all_v10.ps"]; |
---|
34 | ; |
---|
35 | ; subdctn_cs_validation_net_1991_93_all_v10 [shape=box, |
---|
36 | ; fontname=Courier, |
---|
37 | ; color=blue, |
---|
38 | ; URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig14/subdctn_cs_validation_net_1991_93_all_v10.pro", |
---|
39 | ; label="${TROPFLUX}/src/paper01/fig14/subdctn_cs_validation_net_1991_93_all_v10.pro"]; |
---|
40 | ; |
---|
41 | ; {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} -> {subdctn_cs_validation_net_1991_93_all_v10} -> {figure} |
---|
42 | ; } |
---|
43 | ; |
---|
44 | ; SEE ALSO |
---|
45 | ; ======== |
---|
46 | ; |
---|
47 | ; :ref:`project_profile.sh` |
---|
48 | ; :ref:`project_init.pro` |
---|
49 | ; :ref:`cm_project.pro` |
---|
50 | ; |
---|
51 | ; :ref:`statistics.pro` |
---|
52 | ; |
---|
53 | ; EXAMPLES |
---|
54 | ; ======== |
---|
55 | ; |
---|
56 | ; :: |
---|
57 | ; |
---|
58 | ; subdctn_cs_validation_net_1991_93_all_v10 |
---|
59 | ; |
---|
60 | ; TODO |
---|
61 | ; ==== |
---|
62 | ; |
---|
63 | ; make it work on cratos : missing data |
---|
64 | ; |
---|
65 | ; coding rules |
---|
66 | ; |
---|
67 | ; complete description |
---|
68 | ; |
---|
69 | ; handle IO error |
---|
70 | ; |
---|
71 | ; EVOLUTIONS |
---|
72 | ; ========== |
---|
73 | ; |
---|
74 | ; $Id$ |
---|
75 | ; |
---|
76 | ; $URL$ |
---|
77 | ; |
---|
78 | ; - fplod 20110420T121121Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
79 | ; |
---|
80 | ; * remove hard coding path |
---|
81 | ; * add graphviz |
---|
82 | ; |
---|
83 | ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
84 | ; |
---|
85 | ; * minimal header |
---|
86 | ; |
---|
87 | ;- |
---|
88 | pro subdctn_cs_validation_net_1991_93_all_v10 |
---|
89 | @cm_general |
---|
90 | @cm_project |
---|
91 | reinitplt, /z,/invert |
---|
92 | key_portrait = 1 |
---|
93 | coefpalit=.9 |
---|
94 | ; |
---|
95 | openps, FILENAME = project_od_env+"subdctn_cs_validation_net_1991_93_all_v10.ps" |
---|
96 | ; partie a changer |
---|
97 | ; |
---|
98 | ; subduction experiment in the atlantic in 1991-93 |
---|
99 | box=[330.5, 331.5, 25., 26.] |
---|
100 | ; |
---|
101 | ; first leg |
---|
102 | ; |
---|
103 | fi=project_id_env+"met_data_subduct_cs_91.txt" |
---|
104 | res=read_ascii(fi,data_start=1) |
---|
105 | ff=res.field1 |
---|
106 | swr_91=reform(ff(7,*))/0.94 |
---|
107 | lhf_91=reform(ff(5,*)) |
---|
108 | shf_91=reform(ff(6,*)) |
---|
109 | lwr_91=reform(ff(8,*)) |
---|
110 | net_91=[swr_91+lwr_91+shf_91+lhf_91] |
---|
111 | ; |
---|
112 | ; start data - 06/02/92 and end date 02/06/92 then from 11/10/92 to 31/12/92 |
---|
113 | ; total no of daily records - |
---|
114 | ; second leg |
---|
115 | ; |
---|
116 | fi=project_id_env+"met_data_subduct_cs_92.txt" |
---|
117 | res=read_ascii(fi,data_start=1) |
---|
118 | ff=res.field1 |
---|
119 | swr_92=reform(ff(7,*))/0.94 |
---|
120 | lhf_92=reform(ff(5,*)) |
---|
121 | shf_92=reform(ff(6,*)) |
---|
122 | lwr_92=reform(ff(8,*)) |
---|
123 | net_92=[swr_92+lwr_92+shf_92+lhf_92] |
---|
124 | ; |
---|
125 | ; second leg |
---|
126 | ; |
---|
127 | fi=project_id_env+"met_data_subduct_cs_93.txt" |
---|
128 | res=read_ascii(fi,data_start=1) |
---|
129 | ff=res.field1 |
---|
130 | swr_93=reform(ff(7,*))/0.94 |
---|
131 | lhf_93=reform(ff(5,*)) |
---|
132 | shf_93=reform(ff(6,*)) |
---|
133 | lwr_93=reform(ff(8,*)) |
---|
134 | net_93=[swr_93+lwr_93+shf_93+lhf_93] |
---|
135 | ; |
---|
136 | net=[net_91, net_92, net_93] |
---|
137 | help, net |
---|
138 | ; |
---|
139 | ; reading other data sets |
---|
140 | ; |
---|
141 | st1=19910623 |
---|
142 | en1=19930616 |
---|
143 | ; |
---|
144 | file=project_id_env+"erai_swr_19910101_20091231_oafluxgrid.nc" |
---|
145 | initncdf, file |
---|
146 | swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) |
---|
147 | swr1=grossemoyenne(swr1, "xy", box=box,/nan) |
---|
148 | swr1=reform(swr1) |
---|
149 | file=project_id_env+'erai_lhf_19890101_20091231_oafluxgrid.nc' |
---|
150 | initncdf, file |
---|
151 | lhf1=-1*read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) |
---|
152 | lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) |
---|
153 | lhf1=reform(lhf1) |
---|
154 | file=project_id_env+'erai_shf_19890101_20091231_oafluxgrid.nc' |
---|
155 | initncdf, file |
---|
156 | shf1=-1*read_ncdf('shf',st1,en1,file=file,/nostr, box=box) |
---|
157 | shf1=grossemoyenne(shf1, "xy", box=box,/nan) |
---|
158 | shf1=reform(shf1) |
---|
159 | file=project_id_env+'erai_lwr_19890101_20091231_oafluxgrid.nc' |
---|
160 | initncdf, file |
---|
161 | lwr1=read_ncdf('lwr',st1-1,en1,file=file,/nostr, box=box) |
---|
162 | lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) |
---|
163 | lwr1=reform(lwr1) |
---|
164 | ; |
---|
165 | era=swr1+lwr1+lhf1+shf1 |
---|
166 | swr1=0 |
---|
167 | lwr1=0 |
---|
168 | shf1=0 |
---|
169 | lhf1=0 |
---|
170 | help, era |
---|
171 | ; |
---|
172 | file=project_id_env+"TropFlux_19890101_20091231.nc" |
---|
173 | initncdf, file |
---|
174 | lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) |
---|
175 | lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) |
---|
176 | lhf1=reform(lhf1) |
---|
177 | shf1=read_ncdf('shf',st1,en1,file=file,/nostr, box=box) |
---|
178 | shf1=grossemoyenne(shf1, "xy", box=box,/nan) |
---|
179 | shf1=reform(shf1) |
---|
180 | lwr1=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box) |
---|
181 | lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) |
---|
182 | lwr1=reform(lwr1) |
---|
183 | swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) |
---|
184 | swr1=grossemoyenne(swr1, "xy", box=box,/nan) |
---|
185 | swr1=reform(swr1) |
---|
186 | trop=swr1+lwr1+lhf1+shf1 |
---|
187 | ; |
---|
188 | file=project_id_env+"TropFlux_swr_19890101_20091231_NRT_v50.nc" |
---|
189 | initncdf, file |
---|
190 | olr1=read_ncdf("sw", st1-1, en1, file=file,/nostr, box=box) |
---|
191 | olr1=grossemoyenne(olr1, "xy",/nan, box=box) |
---|
192 | olr1=reform(olr1) |
---|
193 | ; |
---|
194 | olr=olr1+lwr1+shf1+lhf1 |
---|
195 | help, trop, olr |
---|
196 | swr1=0 |
---|
197 | lwr1=0 |
---|
198 | shf1=0 |
---|
199 | lhf1=0 |
---|
200 | olr1=0 |
---|
201 | ; |
---|
202 | file=project_id_env+'swr_oafluxgrid_1985_2007.nc' |
---|
203 | initncdf, file |
---|
204 | swr1=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) |
---|
205 | swr1=grossemoyenne(swr1, "xy",/nan, box=box) |
---|
206 | swr1=reform(swr1) |
---|
207 | file=project_id_env+'lwr_oafluxgrid_1985_2007.nc' |
---|
208 | initncdf, file |
---|
209 | lwr1=-1*read_ncdf("lwr", st1, en1, file=file,/nostr, box=box) |
---|
210 | lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) |
---|
211 | lwr1=reform(lwr1) |
---|
212 | file=project_id_env+'lhf_oafluxgrid_1985_2009.nc' |
---|
213 | initncdf, file |
---|
214 | lhf1=-1*read_ncdf("lhf", st1, en1, file=file,/nostr, box=box) |
---|
215 | lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) |
---|
216 | lhf1=reform(lhf1) |
---|
217 | file=project_id_env+'shf_oafluxgrid_1985_2009.nc' |
---|
218 | initncdf, file |
---|
219 | shf1=-1*read_ncdf("shf", st1, en1, file=file,/nostr, box=box) |
---|
220 | shf1=grossemoyenne(shf1, "xy",/nan, box=box) |
---|
221 | shf1=reform(shf1) |
---|
222 | ; |
---|
223 | oaf=swr1+lwr1+lhf1+shf1 |
---|
224 | help, oaf |
---|
225 | swr1=0 |
---|
226 | lwr1=0 |
---|
227 | shf1=0 |
---|
228 | lhf1=0 |
---|
229 | olr1=0 |
---|
230 | ; |
---|
231 | fi=project_id_env+'swr_ncep2_oaflxgrid_19890101_20091231.nc' |
---|
232 | initncdf, fi |
---|
233 | swr1=read_ncdf("swr", st1, en1, file=fi,/nostr, box=box) |
---|
234 | swr1=grossemoyenne(swr1, "xy",/nan, box=box) |
---|
235 | swr1=reform(swr1) |
---|
236 | fi=project_id_env+"NCEP2_flux_19890101_20090729.nc" |
---|
237 | initncdf, fi |
---|
238 | lwr1=-1*read_ncdf("lwr", st1, en1, file=fi,/nostr, box=box) |
---|
239 | lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) |
---|
240 | lwr1=reform(lwr1) |
---|
241 | fi=project_id_env+'lhf_ncep2_oafluxgrid_19890101_20091231.nc' |
---|
242 | initncdf, fi |
---|
243 | lhf1=-1*read_ncdf("lhf", st1, en1, file=fi,/nostr, box=box) |
---|
244 | lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) |
---|
245 | lhf1=reform(lhf1) |
---|
246 | fi=project_id_env+'shf_ncep2_oafluxgrid_19890101_20091231.nc' |
---|
247 | initncdf, fi |
---|
248 | shf1=-1*read_ncdf("shf", st1, en1, file=fi,/nostr, box=box) |
---|
249 | shf1=grossemoyenne(shf1, "xy",/nan, box=box) |
---|
250 | shf1=reform(shf1) |
---|
251 | ; |
---|
252 | nce2=swr1+lwr1+lhf1+shf1 |
---|
253 | help, nce2 |
---|
254 | swr1=0 |
---|
255 | lwr1=0 |
---|
256 | shf1=0 |
---|
257 | lhf1=0 |
---|
258 | olr1=0 |
---|
259 | ; |
---|
260 | file=project_id_env+"ncep1_flux_19890101_20091231.nc" |
---|
261 | initncdf, file |
---|
262 | ; |
---|
263 | lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) |
---|
264 | lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) |
---|
265 | lhf1=reform(lhf1) |
---|
266 | shf1=read_ncdf('shf',st1,en1,file=file,/nostr, box=box) |
---|
267 | shf1=grossemoyenne(shf1, "xy", box=box,/nan) |
---|
268 | shf1=reform(shf1) |
---|
269 | lwr1=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box) |
---|
270 | lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) |
---|
271 | lwr1=reform(lwr1) |
---|
272 | swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) |
---|
273 | swr1=grossemoyenne(swr1, "xy", box=box,/nan) |
---|
274 | swr1=reform(swr1) |
---|
275 | nce1=swr1+(lwr1+shf1+lhf1) |
---|
276 | help, nce1 |
---|
277 | ; |
---|
278 | ind=where(finite(net)) |
---|
279 | net=net(ind) |
---|
280 | era=era(ind) |
---|
281 | trop=trop(ind) |
---|
282 | oaf=oaf(ind) |
---|
283 | nce2=nce2(ind) |
---|
284 | nce1=nce1(ind) |
---|
285 | olr=olr(ind) |
---|
286 | ; |
---|
287 | statistics, net, era, $ |
---|
288 | cor, bias, std, rmsd |
---|
289 | print, cor, bias, std, rmsd |
---|
290 | cstat_era=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
291 | ; |
---|
292 | statistics, net, trop, $ |
---|
293 | cor, bias, std, rmsd |
---|
294 | print, cor, bias, std, rmsd |
---|
295 | cstat_trop=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
296 | ; |
---|
297 | statistics, net, oaf, $ |
---|
298 | cor, bias, std, rmsd |
---|
299 | print, cor, bias, std, rmsd |
---|
300 | cstat_oaf=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
301 | ; |
---|
302 | statistics, net, nce1, $ |
---|
303 | cor, bias, std, rmsd |
---|
304 | print, cor, bias, std, rmsd |
---|
305 | cstat_nce1=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
306 | ; |
---|
307 | statistics, net, nce2, $ |
---|
308 | cor, bias, std, rmsd |
---|
309 | print, cor, bias, std, rmsd |
---|
310 | cstat_nce2=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
311 | ; |
---|
312 | statistics, net, olr, $ |
---|
313 | cor, bias, std, rmsd |
---|
314 | print, cor, bias, std, rmsd |
---|
315 | cstat_olr=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
316 | ; |
---|
317 | splot, net, era, charsize=1.1, title='Net Flux - Subdn. cs Vs ERAI', $ |
---|
318 | xrange=[-200,200], yrange=[-200,200], small=[2,3,1], psym=2, xmin=1, ymin=1 |
---|
319 | oplot, [-200,200], [-200,200] |
---|
320 | xyouts, 0,-175, cstat_era, charsize=1. |
---|
321 | ; |
---|
322 | splot, net, trop, charsize=1.1, title='Net Flux - Subdn. cs Vs TropFlux',/noer, $ |
---|
323 | xrange=[-200,200], yrange=[-200,200], small=[2,3,2], psym=2, xmin=1, ymin=1 |
---|
324 | oplot, [-200,200], [-200,200] |
---|
325 | xyouts, 0,-175, cstat_trop, charsize=1. |
---|
326 | ; |
---|
327 | splot, net, oaf, charsize=1.1, title='Net Flux - Subdn. cs Vs OAFlux',/noer, $ |
---|
328 | xrange=[-200,200], yrange=[-200,200], small=[2,3,3], psym=2, xmin=1, ymin=1 |
---|
329 | oplot, [-200,200], [-200,200] |
---|
330 | xyouts, 0,-175, cstat_oaf, charsize=1. |
---|
331 | ; |
---|
332 | splot, net, nce1, charsize=1.1, title='Net Flux - Subdn. cs Vs NCEP1',/noer, $ |
---|
333 | xrange=[-200,200], yrange=[-200,200], small=[2,3,4], psym=2, xmin=1, ymin=1 |
---|
334 | oplot, [-200,200], [-200,200] |
---|
335 | xyouts, 0,-175, cstat_nce1, charsize=1. |
---|
336 | ; |
---|
337 | splot, net, nce2, charsize=1.1, title='Net Flux - Subdn. cs Vs NCEP2',/noer, $ |
---|
338 | xrange=[-200,200], yrange=[-200,200], small=[2,3,5], psym=2, xmin=1, ymin=1 |
---|
339 | oplot, [-200,200], [-200,200] |
---|
340 | xyouts, 0,-175, cstat_nce2, charsize=1. |
---|
341 | ; |
---|
342 | splot, net, olr, charsize=1.1, title='Net Flux - Subdn. cs Vs TropFlux_NRT',/noer, $ |
---|
343 | xrange=[-200,200], yrange=[-200,200], small=[2,3,6], psym=2, xmin=1, ymin=1 |
---|
344 | oplot, [-200,200], [-200,200] |
---|
345 | xyouts, 0,-175, cstat_olr, charsize=1. |
---|
346 | ; |
---|
347 | closeps |
---|
348 | ; |
---|
349 | end |
---|