source: trunk/mesoscale/PLOT/SPEC/LES/test.pro @ 113

Last change on this file since 113 was 113, checked in by aslmd, 14 years ago

LMD_LES_MARS: qq modifications pour les routines graphiques

File size: 3.5 KB
Line 
1pro test
2
3
4getcdf, $
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
10w1 = max ( w, DIMENSION=3 )
11wm1 = 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
34getcdf, $
35        file='./wrfout_d01_9999-01-01_06:10:00', $
36        charvar='PSFC', $
37        invar=psfc
38
39gros=50 ;20;5;10
40;gros=5 ;; pour le cas hill
41var1 = psfc[ where( w1  gt 10.) ]
42var2 = psfc
43var3 = psfc[ where( wm1  lt -5.)  ]
44;var4 = psfc[ where( w1  gt 13.) ] ;; bien mais deja montre avec courbes max
45r1 = ( float(histogram(floor(var1*gros))) ) ;/ n_elements(var1) * 100.
46r2 = ( float(histogram(floor(var2*gros))) ) ;/ n_elements(var2) * 100.
47r3 = ( float(histogram(floor(var3*gros))) ) ;/ n_elements(var3) * 100.
48r1 = 100. * r1 / max(r1)
49r2 = 100. * r2 / max(r2)
50r3 = 100. * r3 / max(r3)
51t1 = min(var1) + findgen(n_elements(r1))/gros
52t2 = min(var2) + findgen(n_elements(r2))/gros
53t3 = min(var3) + findgen(n_elements(r3))/gros
54PS_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
61plot, 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]
62oplot, t3, r3, psym=2
63oplot, t1, r1, psym=5
64PS_END, /PNG
65
66getcdf, $
67        file='./wrfout_d01_9999-01-01_00:00:00', $
68        charvar='PSFC', $
69        invar=psfc
70
71xx=findgen(n_elements(psfc(*,0,0)))*50.
72yy=findgen(n_elements(psfc(0,*,0)))*50.
73
74PS_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
80levu=[685.,687.,689.,691.,693.,695.,697.,699.,701.,703.,705.,707.,709.,711.,713.,715.,717.,719.]
81
82psfc(0,0,1)=684.
83psfc(0,1,1)=718.
84
85loadct, 4
86contour, reform(psfc(*,*,1)), xx, yy, /cell_fill, nlevels=60, xtitle='x dimension (m)', ytitle='y dimension (m)', /isotropic, max_value=718., min_value=684.
87contour, reform(psfc(*,*,1)), xx, yy, lev=levu, c_labels=findgen(n_elements(levu))*0+1, /overplot
88PS_END, /PNG
89
90stop
91
92
93;m = max(psfc)
94;psfc = -11000. * alog ( psfc / m )
95
96PS_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
102plot, 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.]
103oplot, psfc, w2, psym=3
104oplot, psfc, w3, psym=3
105oplot, psfc, w4, psym=3
106PS_END, /PNG
107
108PS_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
114plot, 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.]
115oplot, psfc, wm2, psym=3
116oplot, psfc, wm3, psym=3
117oplot, psfc, wm4, psym=3
118
119PS_END, /PNG
120
121
122
123end
Note: See TracBrowser for help on using the repository browser.