1 | pro test |
---|
2 | |
---|
3 | |
---|
4 | getcdf, $ |
---|
5 | ; file='./wrfout_d01_9999-01-01_05:08:21', $ |
---|
6 | file='./wrfout_d01_9999-01-01_06:10:00', $ |
---|
7 | ; file='./wrfout_d01_9999-01-01_07:11:40', $ |
---|
8 | charvar='W', $ |
---|
9 | invar=w |
---|
10 | w1 = max ( w, DIMENSION=3 ) |
---|
11 | wm1 = min ( TEMPORARY(w), DIMENSION=3 ) |
---|
12 | |
---|
13 | ;getcdf, $ |
---|
14 | ; file='./wrfout_d01_9999-01-01_06:10:00', $ |
---|
15 | ; charvar='W', $ |
---|
16 | ; invar=w |
---|
17 | ;w2 = max ( w, DIMENSION=3 ) |
---|
18 | ;wm2 = min ( TEMPORARY(w), DIMENSION=3 ) |
---|
19 | ; |
---|
20 | ;getcdf, $ |
---|
21 | ; file='./wrfout_d01_9999-01-01_07:11:40', $ |
---|
22 | ; charvar='W', $ |
---|
23 | ; invar=w |
---|
24 | ;w3 = max ( w, DIMENSION=3 ) |
---|
25 | ;wm3 = min ( TEMPORARY(w), DIMENSION=3 ) |
---|
26 | ; |
---|
27 | ;getcdf, $ |
---|
28 | ; file='./wrfout_d01_9999-01-01_04:06:40', $ |
---|
29 | ; charvar='W', $ |
---|
30 | ; invar=w |
---|
31 | ;w4 = max ( w, DIMENSION=3 ) |
---|
32 | ;wm4 = min ( TEMPORARY(w), DIMENSION=3 ) |
---|
33 | |
---|
34 | getcdf, $ |
---|
35 | file='./wrfout_d01_9999-01-01_06:10:00', $ |
---|
36 | charvar='PSFC', $ |
---|
37 | invar=psfc |
---|
38 | |
---|
39 | gros=50 ;20;5;10 |
---|
40 | ;gros=5 ;; pour le cas hill |
---|
41 | var1 = psfc[ where( w1 gt 10.) ] |
---|
42 | var2 = psfc |
---|
43 | var3 = psfc[ where( wm1 lt -5.) ] |
---|
44 | ;var4 = psfc[ where( w1 gt 13.) ] ;; bien mais deja montre avec courbes max |
---|
45 | r1 = ( float(histogram(floor(var1*gros))) ) ;/ n_elements(var1) * 100. |
---|
46 | r2 = ( float(histogram(floor(var2*gros))) ) ;/ n_elements(var2) * 100. |
---|
47 | r3 = ( float(histogram(floor(var3*gros))) ) ;/ n_elements(var3) * 100. |
---|
48 | r1 = 100. * r1 / max(r1) |
---|
49 | r2 = 100. * r2 / max(r2) |
---|
50 | r3 = 100. * r3 / max(r3) |
---|
51 | t1 = min(var1) + findgen(n_elements(r1))/gros |
---|
52 | t2 = min(var2) + findgen(n_elements(r2))/gros |
---|
53 | t3 = min(var3) + findgen(n_elements(r3))/gros |
---|
54 | PS_START, file='stats_w.ps' |
---|
55 | !P.Charsize = 1.2 |
---|
56 | !p.charthick = 2.0 |
---|
57 | !p.thick = 2.0 |
---|
58 | !x.thick = 2.0 |
---|
59 | !y.thick = 2.0 |
---|
60 | !p.psym = 10 |
---|
61 | plot, t2, r2, xrange=[min(t2)+(max(t2)-min(t2))/2., max(t2)], xtickinterval=1, xtitle='Surface pressure (Pa)', ytitle='Relative quantity (ratio to max value in %)';, yrange=[0,4] |
---|
62 | oplot, t3, r3, psym=2 |
---|
63 | oplot, t1, r1, psym=5 |
---|
64 | PS_END, /PNG |
---|
65 | |
---|
66 | getcdf, $ |
---|
67 | file='./wrfout_d01_9999-01-01_00:00:00', $ |
---|
68 | charvar='PSFC', $ |
---|
69 | invar=psfc |
---|
70 | |
---|
71 | xx=findgen(n_elements(psfc(*,0,0)))*50. |
---|
72 | yy=findgen(n_elements(psfc(0,*,0)))*50. |
---|
73 | |
---|
74 | PS_START, file='psfc.ps' |
---|
75 | !P.Charsize = 1.2 |
---|
76 | !p.charthick = 2.0 |
---|
77 | !p.thick = 2.0 |
---|
78 | !x.thick = 2.0 |
---|
79 | !y.thick = 2.0 |
---|
80 | levu=[685.,687.,689.,691.,693.,695.,697.,699.,701.,703.,705.,707.,709.,711.,713.,715.,717.,719.] |
---|
81 | |
---|
82 | psfc(0,0,1)=684. |
---|
83 | psfc(0,1,1)=718. |
---|
84 | |
---|
85 | loadct, 4 |
---|
86 | contour, reform(psfc(*,*,1)), xx, yy, /cell_fill, nlevels=60, xtitle='x dimension (m)', ytitle='y dimension (m)', /isotropic, max_value=718., min_value=684. |
---|
87 | contour, reform(psfc(*,*,1)), xx, yy, lev=levu, c_labels=findgen(n_elements(levu))*0+1, /overplot |
---|
88 | PS_END, /PNG |
---|
89 | |
---|
90 | stop |
---|
91 | |
---|
92 | |
---|
93 | ;m = max(psfc) |
---|
94 | ;psfc = -11000. * alog ( psfc / m ) |
---|
95 | |
---|
96 | PS_START, file='stats_w.ps' |
---|
97 | !P.Charsize = 1.2 |
---|
98 | !p.charthick = 2.0 |
---|
99 | !p.thick = 2.0 |
---|
100 | !x.thick = 2.0 |
---|
101 | !y.thick = 2.0 |
---|
102 | plot, psfc, w1, psym=3, title='Maximum of vertical wind amplitude along the vertical (between LT 11 and 15)', xtitle='Surface pressure (Pa)', ytitle='Maximum vertical wind (m s!U-1!N)', yrange=[5.,20.], xrange=[685.,720.] |
---|
103 | oplot, psfc, w2, psym=3 |
---|
104 | oplot, psfc, w3, psym=3 |
---|
105 | oplot, psfc, w4, psym=3 |
---|
106 | PS_END, /PNG |
---|
107 | |
---|
108 | PS_START, file='stats_w2.ps' |
---|
109 | !P.Charsize = 1.2 |
---|
110 | !p.charthick = 2.0 |
---|
111 | !p.thick = 2.0 |
---|
112 | !x.thick = 2.0 |
---|
113 | !y.thick = 2.0 |
---|
114 | plot, psfc, wm1, psym=3, title='Maximum of vertical wind amplitude along the vertical (between LT 11 and 15)', xtitle='Surface pressure (Pa)', ytitle='Maximum vertical wind (m s!U-1!N)', yrange=[-12.,-4.], xrange=[685.,720.] |
---|
115 | oplot, psfc, wm2, psym=3 |
---|
116 | oplot, psfc, wm3, psym=3 |
---|
117 | oplot, psfc, wm4, psym=3 |
---|
118 | |
---|
119 | PS_END, /PNG |
---|
120 | |
---|
121 | |
---|
122 | |
---|
123 | end |
---|