source: trunk/src/paper01/fig12/swr_statistics_map_2000_2009_v50.pro @ 70

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

replace TROPFLUX by PROJECT

File size: 13.6 KB
Line 
1;+
2; .. _swr_statistics_map_2000_2009_v50.pro:
3;
4; ====================================
5; swr_statistics_map_2000_2009_v50.pro
6; ====================================
7;
8; DESCRIPTION
9; ===========
10;
11; .. graphviz::
12;
13;    digraph swr_statistics_map_2000_2009_v50 {
14;       graph [
15;       rankdir="LR",
16;       ]
17;       swr_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/swr_2000_2009_erai_v50.txt"];
18;       swr_trop [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/swr_2000_2009_trop_v50.txt"];
19;       swr_oaflx [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/swr_2000_2009_oaflx_v50.txt"];
20;       swr_olr [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/swr_2000_2009_olr_v50.txt"];
21;       mask [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/longwave_IO_mask.nc"];
22;
23;       figure [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/swr_statistics_map_2000_2009_v50.ps"];
24;
25;       swr_statistics_map_2000_2009_v50 [shape=box,
26;       fontname=Courier,
27;       color=blue,
28;       URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig12/swr_statistics_map_2000_2009_v50.pro",
29;       label="${TROPFLUX}/src/paper01/fig12/swr_statistics_map_2000_2009_v50.pro"];
30;
31;       {swr_erai swr_trop swr_oaflx swr_olr mask} -> {swr_statistics_map_2000_2009_v50} -> {figure}
32;    }
33;
34; SEE ALSO
35; ========
36;
37; :ref:`project_profile.sh`
38; :ref:`project_init.pro`
39; :ref:`cm_project.pro`
40;
41; EXAMPLES
42; ========
43;
44; ::
45;
46;  IDL> swr_statistics_map_2000_2009_v50
47;
48; TODO
49; ====
50;
51; make it work on cratos : missing data
52;
53; coding rules
54;
55; get rid of spwan
56;
57; complete description
58;
59; handle IO error
60;
61; EVOLUTIONS
62; ==========
63;
64; $Id$
65;
66; - fplod 20110420T113846Z aedon.locean-ipsl.upmc.fr (Darwin)
67;
68;   * remove stop
69;   * remove hard coding path
70;   * add graphviz
71;
72; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin)
73;
74;   * minimal header
75;
76;-
77pro swr_statistics_map_2000_2009_v50
78@cm_general
79@cm_project
80reinitplt, /z,/invert
81key_portrait = 1
82coefpalit=.9
83
84openps, FILENAME = 'idl.ps'
85; partie a changer
86bias_mi=-20 & bias_ma=20 & bias_int=2
87std_mi=0.7   & std_ma=1.31  & std_int=0.05
88rmsd_mi=10  & rmsd_ma=30 & rmsd_int=1.25
89cor_mi=0.5   & cor_ma=1.  & cor_int=0.02
90fi_swr_erai=project_id_env+'swr_2000_2009_erai_v50.txt'
91fi_swr_trop=project_id_env+'swr_2000_2009_trop_v50.txt'
92fi_swr_oaflx=project_id_env+'swr_2000_2009_oaflx_v50.txt'
93fi_swr_olr=project_id_env+'swr_2000_2009_olr_v50.txt'
94
95res=read_ascii(fi_swr_erai,data_start=1)
96ff=res.field1
97lat=reform(ff(0,*))
98lon=reform(ff(1,*))
99cor_era=reform(ff(2,*))
100bias_era=reform(ff(3,*))
101std_era=reform(ff(4,*))
102rmsd_era=reform(ff(5,*))
103
104ind=where(bias_era ge bias_ma) & bias_era(ind)=bias_ma-0.5
105ind=where(rmsd_era ge rmsd_ma) & rmsd_era(ind)=rmsd_ma-0.5
106
107res=read_ascii(fi_swr_trop,data_start=1)
108ff=res.field1
109lat=reform(ff(0,*))
110lon=reform(ff(1,*))
111cor_trop=reform(ff(2,*))
112bias_trop=reform(ff(3,*))
113std_trop=reform(ff(4,*))
114rmsd_trop=reform(ff(5,*))
115ind=where(rmsd_trop ge rmsd_ma) & rmsd_trop(ind)=rmsd_ma-0.5
116
117res=read_ascii(fi_swr_oaflx,data_start=1)
118ff=res.field1
119lat=reform(ff(0,*))
120lon=reform(ff(1,*))
121cor_oaflx=reform(ff(2,*))
122bias_oaflx=reform(ff(3,*))
123std_oaflx=reform(ff(4,*))
124rmsd_oaflx=reform(ff(5,*))
125ind=where(rmsd_oaflx ge rmsd_ma) & rmsd_oaflx(ind)=rmsd_ma-0.5
126
127res=read_ascii(fi_swr_olr,data_start=1)
128ff=res.field1
129lat=reform(ff(0,*))
130lon=reform(ff(1,*))
131cor_olr=reform(ff(2,*))
132bias_olr=reform(ff(3,*))
133std_olr=reform(ff(4,*))
134rmsd_olr=reform(ff(5,*))
135ind=where(rmsd_olr ge rmsd_ma) & rmsd_olr(ind)=rmsd_ma-0.5
136
137;ind=where(std_olr ge std_ma) & std_olr(ind)=std_ma-0.01
138file=project_id_env+'longwave_IO_mask.nc'
139initncdf, file
140domdef, 30,390,-30,30
141msk=ncdf_lec(file,var='msk')
142;box=[0,290,-30,30]
143marge=[0,0,-0.8,0]
144marge1=[0,0,-5,0]
145plt, .4+msk*1.e-5,realcont=2,/nocont,/nofill,xminor=1,yminor=1,box=box,lct=64,cor_mi, cor_ma,int=cor_int, $
146   title='1) SWR Correlation - TropFlux', subtitle='', small=[1,4,1],/rempl,/nocolorb, marge=marge
147
148NN=n_elements(lat)
149
150usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5],/fill
151
152for n=0,NN-1 do begin
153  x=lon(n)
154  y=lat(n)
155  c=cor_trop(n)
156  cmi=cor_mi & cma=cor_ma & dc=cma-cmi
157  col=((10+244*(c-cmi)/dc) > 10) < 254
158  plots, x,y,psym=8,symsize=1.5,color=col
159endfor
160
161usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5]
162
163for n=0,NN-1 do begin
164  x=lon(n)
165  y=lat(n)
166  c=cor_trop(n)
167
168  plots, x,y,psym=8,symsize=1.5,color=0
169endfor
170plt, 12+msk,realcont=2,/nocont,/nofill,xminor=1,yminor=1,lct=64,cor_mi, cor_ma,int=cor_int,/nocolorb, $
171   title='2) SWR Correlation -  ERAI', subtitle='', small=[1,4,2],/noer,/rempl, marge=marge
172
173NN=n_elements(lat)
174
175usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5],/fill
176
177for n=0,NN-1 do begin
178  x=lon(n)
179  y=lat(n)
180  c=cor_era(n)
181  cmi=cor_mi & cma=cor_ma & dc=cma-cmi
182  col=((10+244*(c-cmi)/dc) > 10) < 254
183  plots, x,y,psym=8,symsize=1.5,color=col
184endfor
185
186usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5]
187
188for n=0,NN-1 do begin
189  x=lon(n)
190  y=lat(n)
191  c=cor_era(n)
192
193  plots, x,y,psym=8,symsize=1.5,color=0
194endfor
195plt, 12+msk,realcont=2,/nocont,/nofill,xminor=1,yminor=1,lct=64,cor_mi, cor_ma,int=cor_int,/nocolorb, $
196   title='3) SWR Correlation - OAFlux', subtitle='', small=[1,4,3],/noer,/rempl, marge=marge
197
198NN=n_elements(lat)
199
200usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5],/fill
201
202for n=0,NN-1 do begin
203  x=lon(n)
204  y=lat(n)
205  c=cor_oaflx(n)
206  cmi=cor_mi & cma=cor_ma & dc=cma-cmi
207  col=((10+244*(c-cmi)/dc) > 10) < 254
208  plots, x,y,psym=8,symsize=1.5,color=col
209endfor
210
211usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5]
212
213for n=0,NN-1 do begin
214  x=lon(n)
215  y=lat(n)
216  c=cor_oaflx(n)
217
218  plots, x,y,psym=8,symsize=1.5,color=0
219endfor
220plt, 12+msk,realcont=2,/nocont,/nofill,xminor=1,yminor=1,lct=64,cor_mi, cor_ma,int=cor_int, $
221   title='4) SWR Correlation - SWR_olr', subtitle='', small=[1,4,4],/noer,/rempl, marge=marge1
222
223NN=n_elements(lat)
224
225usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5],/fill
226
227for n=0,NN-1 do begin
228  x=lon(n)
229  y=lat(n)
230  c=cor_olr(n)
231  cmi=cor_mi & cma=cor_ma & dc=cma-cmi
232  col=((10+244*(c-cmi)/dc) > 10) < 254
233  plots, x,y,psym=8,symsize=1.5,color=col
234endfor
235
236usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5]
237
238for n=0,NN-1 do begin
239  x=lon(n)
240  y=lat(n)
241  c=cor_olr(n)
242
243  plots, x,y,psym=8,symsize=1.5,color=0
244endfor
245
246erase
247
248plt, -5+msk*1.e-5,realcont=2,/nocont,/nofill,xminor=1,yminor=1,lct=64,bias_mi, bias_ma, int=bias_int, marge=marge,/nocolorb, $
249   title='1) SWR Mean bias - TropFlux', subtitle='', small=[1,4,1],/rempl,format='(i3)'
250
251NN=n_elements(lat)
252
253usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5],/fill
254
255for n=0,NN-1 do begin
256  x=lon(n)
257  y=lat(n)
258  c=bias_trop(n)
259  cmi=bias_mi & cma=bias_ma & dc=cma-cmi
260  col=((10+244*(c-cmi)/dc) > 10) < 254
261  plots, x,y,psym=8,symsize=1.5,color=col
262endfor
263
264usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5]
265
266for n=0,NN-1 do begin
267  x=lon(n)
268  y=lat(n)
269  c=bias_trop(n)
270
271  plots, x,y,psym=8,symsize=1.5,color=0
272endfor
273plt,0.8+msk*1.e-5,realcont=2,/nocont,/nofill,xminor=1,yminor=1,lct=64,bias_mi, bias_ma, int=bias_int,/noer, marge=marge, $
274   title='2) SWR Mean bias - ERAI', subtitle='', small=[1,4,2],/rempl,format='(i3)',/nocolorb
275
276NN=n_elements(lat)
277
278usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5],/fill
279
280for n=0,NN-1 do begin
281  x=lon(n)
282  y=lat(n)
283  c=bias_era(n)
284  cmi=bias_mi & cma=bias_ma & dc=cma-cmi
285  col=((10+244*(c-cmi)/dc) > 10) < 254
286  plots, x,y,psym=8,symsize=1.5,color=col
287endfor
288
289usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5]
290
291for n=0,NN-1 do begin
292  x=lon(n)
293  y=lat(n)
294  c=bias_era(n)
295
296  plots, x,y,psym=8,symsize=1.5,color=0
297endfor
298
299
300plt,0.8+msk*1.e-5,realcont=2,/nocont,/nofill,xminor=1,yminor=1,lct=64,bias_mi, bias_ma, int=bias_int,/noer, marge=marge, $
301   title='3) SWR Mean bias - OAFlux', subtitle='', small=[1,4,3],/rempl,format='(i3)',/nocolorb
302
303NN=n_elements(lat)
304
305usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5],/fill
306
307for n=0,NN-1 do begin
308  x=lon(n)
309  y=lat(n)
310  c=bias_oaflx(n)
311  cmi=bias_mi & cma=bias_ma & dc=cma-cmi
312  col=((10+244*(c-cmi)/dc) > 10) < 254
313  plots, x,y,psym=8,symsize=1.5,color=col
314endfor
315
316usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5]
317
318for n=0,NN-1 do begin
319  x=lon(n)
320  y=lat(n)
321  c=bias_oaflx(n)
322
323  plots, x,y,psym=8,symsize=1.5,color=0
324endfor
325
326
327plt,0.8+msk*1.e-5,realcont=2,/nocont,/nofill,xminor=1,yminor=1,lct=64,bias_mi, bias_ma, int=bias_int,/noer, marge=marge1, $
328   title='4) SWR Mean bias - SWR_olr', subtitle='', small=[1,4,4],/rempl ;;,format='(i4)'
329
330NN=n_elements(lat)
331
332usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5],/fill
333
334for n=0,NN-1 do begin
335  x=lon(n)
336  y=lat(n)
337  c=bias_olr(n)
338  cmi=bias_mi & cma=bias_ma & dc=cma-cmi
339  col=((10+244*(c-cmi)/dc) > 10) < 254
340  plots, x,y,psym=8,symsize=1.5,color=col
341endfor
342
343usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5]
344
345for n=0,NN-1 do begin
346  x=lon(n)
347  y=lat(n)
348  c=bias_olr(n)
349
350  plots, x,y,psym=8,symsize=1.5,color=0
351endfor
352
353erase
354
355
356plt,0.8+msk*1.e-5,realcont=2,/nocont,/nofill,xminor=1,yminor=1,lct=64,rmsd_mi, rmsd_ma, int=rmsd_int,/noer, $
357   title='1) RMSD - TropFlux', subtitle='', small=[1,4,1],/rempl,/nocolorb, marge=marge
358
359NN=n_elements(lat)
360
361usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5],/fill
362
363for n=0,NN-1 do begin
364  x=lon(n)
365  y=lat(n)
366  c=rmsd_trop(n)
367  cmi=rmsd_mi & cma=rmsd_ma & dc=cma-cmi
368  col=((10+244*(c-cmi)/dc) > 10) < 254
369  plots, x,y,psym=8,symsize=1.5,color=col
370endfor
371
372usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5]
373
374for n=0,NN-1 do begin
375  x=lon(n)
376  y=lat(n)
377  c=rmsd_trop(n)
378
379  plots, x,y,psym=8,symsize=1.5,color=0
380endfor
381plt,0.8+msk*1.e-5,realcont=2,/nocont,/nofill,xminor=1,yminor=1,lct=64,rmsd_mi, rmsd_ma, int=rmsd_int,/noer, $
382   title='2) RMSD - ERAI', subtitle='', small=[1,4,2],/rempl,/nocolorb, marge=marge
383
384NN=n_elements(lat)
385
386usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5],/fill
387
388for n=0,NN-1 do begin
389  x=lon(n)
390  y=lat(n)
391  c=rmsd_era(n)
392  cmi=rmsd_mi & cma=rmsd_ma & dc=cma-cmi
393  col=((10+244*(c-cmi)/dc) > 10) < 254
394  plots, x,y,psym=8,symsize=1.5,color=col
395endfor
396
397usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5]
398
399for n=0,NN-1 do begin
400  x=lon(n)
401  y=lat(n)
402  c=rmsd_era(n)
403
404  plots, x,y,psym=8,symsize=1.5,color=0
405endfor
406plt,0.8+msk*1.e-5,realcont=2,/nocont,/nofill,xminor=1,yminor=1,lct=64,rmsd_mi, rmsd_ma, int=rmsd_int,/noer, $
407   title='3) RMSD - OAFlux', subtitle='', small=[1,4,3],/rempl,/nocolorb, marge=marge
408
409NN=n_elements(lat)
410
411usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5],/fill
412
413for n=0,NN-1 do begin
414  x=lon(n)
415  y=lat(n)
416  c=rmsd_oaflx(n)
417  cmi=rmsd_mi & cma=rmsd_ma & dc=cma-cmi
418  col=((10+244*(c-cmi)/dc) > 10) < 254
419  plots, x,y,psym=8,symsize=1.5,color=col
420endfor
421
422usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5]
423
424for n=0,NN-1 do begin
425  x=lon(n)
426  y=lat(n)
427  c=rmsd_oaflx(n)
428
429  plots, x,y,psym=8,symsize=1.5,color=0
430endfor
431
432plt,0.8+msk*1.e-5,realcont=2,/nocont,/nofill,xminor=1,yminor=1,lct=64,rmsd_mi, rmsd_ma, int=rmsd_int,/noer, $
433   title='4) RMSD - SWR_olr', subtitle='', small=[1,4,4],/rempl, marge=marge1
434
435NN=n_elements(lat)
436
437usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5],/fill
438
439for n=0,NN-1 do begin
440  x=lon(n)
441  y=lat(n)
442  c=rmsd_olr(n)
443  cmi=rmsd_mi & cma=rmsd_ma & dc=cma-cmi
444  col=((10+244*(c-cmi)/dc) > 10) < 254
445  plots, x,y,psym=8,symsize=1.5,color=col
446endfor
447
448usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5]
449
450for n=0,NN-1 do begin
451  x=lon(n)
452  y=lat(n)
453  c=rmsd_olr(n)
454
455  plots, x,y,psym=8,symsize=1.5,color=0
456endfor
457erase
458plt,0.8+msk*1.e-5,realcont=2,/nocont,/nofill,xminor=1,yminor=1,lct=64,std_mi, std_ma, int=std_int,/noer, $
459   title='1) STD ratio - TropFlux', subtitle='', small=[1,4,1],/rempl,/nocolorb, marge=marge
460
461NN=n_elements(lat)
462
463usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5],/fill
464
465for n=0,NN-1 do begin
466  x=lon(n)
467  y=lat(n)
468  c=std_trop(n)
469  cmi=std_mi & cma=std_ma & dc=cma-cmi
470  col=((10+244*(c-cmi)/dc) > 10) < 254
471  plots, x,y,psym=8,symsize=1.5,color=col
472endfor
473
474usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5]
475
476for n=0,NN-1 do begin
477  x=lon(n)
478  y=lat(n)
479  c=std_trop(n)
480
481  plots, x,y,psym=8,symsize=1.5,color=0
482endfor
483plt,0.8+msk*1.e-5,realcont=2,/nocont,/nofill,xminor=1,yminor=1,lct=64,std_mi, std_ma, int=std_int,/noer, $
484   title='2) STD ratop - ERAI', subtitle='', small=[1,4,2],/rempl,/nocolorb, marge=marge
485
486NN=n_elements(lat)
487
488usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5],/fill
489
490for n=0,NN-1 do begin
491  x=lon(n)
492  y=lat(n)
493  c=std_era(n)
494  cmi=std_mi & cma=std_ma & dc=cma-cmi
495  col=((10+244*(c-cmi)/dc) > 10) < 254
496  plots, x,y,psym=8,symsize=1.5,color=col
497endfor
498
499usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5]
500
501for n=0,NN-1 do begin
502  x=lon(n)
503  y=lat(n)
504  c=std_era(n)
505
506  plots, x,y,psym=8,symsize=1.5,color=0
507endfor
508
509plt,0.8+msk*1.e-5,realcont=2,/nocont,/nofill,xminor=1,yminor=1,lct=64,std_mi, std_ma, int=std_int,/noer, $
510   title='3) STD rato - OAFlux', subtitle='', small=[1,4,3],/rempl,/nocolorb, marge=marge
511
512NN=n_elements(lat)
513
514usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5],/fill
515
516for n=0,NN-1 do begin
517  x=lon(n)
518  y=lat(n)
519  c=std_oaflx(n)
520  cmi=std_mi & cma=std_ma & dc=cma-cmi
521  col=((10+244*(c-cmi)/dc) > 10) < 254
522  plots, x,y,psym=8,symsize=1.5,color=col
523endfor
524
525usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5]
526
527for n=0,NN-1 do begin
528  x=lon(n)
529  y=lat(n)
530  c=std_oaflx(n)
531
532  plots, x,y,psym=8,symsize=1.5,color=0
533endfor
534
535plt,0.8+msk*1.e-5,realcont=2,/nocont,/nofill,xminor=1,yminor=1,lct=64,std_mi, std_ma, int=std_int,/noer, $
536   title='4) STD rato - SWR_olr', subtitle='', small=[1,4,4],/rempl, marge=marge1
537
538NN=n_elements(lat)
539
540usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5],/fill
541
542for n=0,NN-1 do begin
543  x=lon(n)
544  y=lat(n)
545  c=std_olr(n)
546  cmi=std_mi & cma=std_ma & dc=cma-cmi
547  col=((10+244*(c-cmi)/dc) > 10) < 254
548  plots, x,y,psym=8,symsize=1.5,color=col
549endfor
550
551usersym, [-.5,.5,.5,-.5,-.5],[-.5,-.5,.5,.5,-.5]
552
553for n=0,NN-1 do begin
554  x=lon(n)
555  y=lat(n)
556  c=std_olr(n)
557
558  plots, x,y,psym=8,symsize=1.5,color=0
559endfor
560closeps
561fig=project_od_env+'swr_statistics_map_2000_2009_v50.ps'
562spawn, 'mv '+psdir+'idl.ps '+fig
563spawn, 'gv '+fig
564end
Note: See TracBrowser for help on using the repository browser.