1 | 'reinit' |
---|
2 | 'open real_p.ctl' |
---|
3 | |
---|
4 | ** Need input data on p levels |
---|
5 | |
---|
6 | 'set mpdset hires' |
---|
7 | 'set display color white' |
---|
8 | 'run rgbset.gs' |
---|
9 | |
---|
10 | say 'Create gif images as well (1=yes ; 0=no)' |
---|
11 | pull ans |
---|
12 | frame = 1 |
---|
13 | |
---|
14 | 'q file' |
---|
15 | rec=sublin(result,5) |
---|
16 | _endtime=subwrd(rec,12) |
---|
17 | _endlev=subwrd(rec,9) |
---|
18 | |
---|
19 | runscript = 1 |
---|
20 | dis_t = 1 |
---|
21 | |
---|
22 | while(runscript) |
---|
23 | dis_z = 1 |
---|
24 | 'set t ' dis_t |
---|
25 | 'q dims' |
---|
26 | rec=sublin(result,5) |
---|
27 | _analysis=subwrd(rec,6) |
---|
28 | say 'Time is ' _analysis |
---|
29 | |
---|
30 | runlevel = 1 |
---|
31 | while(runlevel) |
---|
32 | 'set z ' dis_z |
---|
33 | 'q dims' |
---|
34 | rec=sublin(result,4) |
---|
35 | newz=subwrd(rec,6) |
---|
36 | say 'Level is ' newz |
---|
37 | |
---|
38 | ** Looking for 850 mb data |
---|
39 | if (newz=850) |
---|
40 | say 'Plotting' |
---|
41 | 'c' |
---|
42 | 'set grads off' |
---|
43 | 'set gxout shaded' |
---|
44 | 'set clevs 10 20 30 40 50 60 70 80 90 100' |
---|
45 | 'set ccols 0 0 0 0 33 34 35 36 37 38 39' |
---|
46 | 'd rh' |
---|
47 | 'set gxout contour' |
---|
48 | 'set ccolor 4' |
---|
49 | 'set cthick 6' |
---|
50 | 'set cint 20' |
---|
51 | 'd z' |
---|
52 | 'set ccolor 2' |
---|
53 | 'set cthick 6' |
---|
54 | 'set cint 5' |
---|
55 | 'd tc' |
---|
56 | 'set strsiz .2' |
---|
57 | 'set string 1 l 6' |
---|
58 | 'draw string 1.7 8.35 ' newz ' mb Height (m,blue), T(C,red), RH(color)' |
---|
59 | 'set strsiz .15' |
---|
60 | 'set string 1 l 3' |
---|
61 | 'draw string 7.5 8.0 ' _analysis |
---|
62 | 'run cbar.gs' |
---|
63 | if(ans) |
---|
64 | 'printim realp'frame'.gif gif ' |
---|
65 | frame=frame+1 |
---|
66 | endif |
---|
67 | pull dummy |
---|
68 | endif |
---|
69 | |
---|
70 | ** Looking for 700 mb data |
---|
71 | if (newz=700) |
---|
72 | say 'Plotting' |
---|
73 | 'c' |
---|
74 | 'set ccolor 4' |
---|
75 | 'set cthick 6' |
---|
76 | 'set cint 20' |
---|
77 | 'd z' |
---|
78 | 'set ccolor 2' |
---|
79 | 'set cthick 6' |
---|
80 | 'set cint 5' |
---|
81 | 'd tc' |
---|
82 | 'set strsiz .2' |
---|
83 | 'set string 1 l 6' |
---|
84 | 'draw string 2.7 8.35 ' newz ' mb Height (m,blue), T(C,red)' |
---|
85 | 'set strsiz .15' |
---|
86 | 'set string 1 l 3' |
---|
87 | 'draw string 7.5 8.0 ' _analysis |
---|
88 | if(ans) |
---|
89 | 'printim realp'frame'.gif gif ' |
---|
90 | frame=frame+1 |
---|
91 | endif |
---|
92 | pull dummy |
---|
93 | endif |
---|
94 | |
---|
95 | ** Looking for 500 mb data |
---|
96 | if (newz=500) |
---|
97 | 'c' |
---|
98 | 'set z 11' |
---|
99 | 'set ccolor 4' |
---|
100 | 'set cthick 6' |
---|
101 | 'set cint 40' |
---|
102 | 'd z' |
---|
103 | 'set ccolor 2' |
---|
104 | 'set cthick 6' |
---|
105 | 'set cint 5' |
---|
106 | 'd tc' |
---|
107 | 'set strsiz .2' |
---|
108 | 'set string 1 l 6' |
---|
109 | 'draw string 2.7 8.35 ' newz ' mb Height (m,blue), T(C,red)' |
---|
110 | 'set strsiz .15' |
---|
111 | 'set string 1 l 3' |
---|
112 | 'draw string 7.5 8.0 ' _analysis |
---|
113 | if(ans) |
---|
114 | 'printim realp'frame'.gif gif ' |
---|
115 | frame=frame+1 |
---|
116 | endif |
---|
117 | pull dummy |
---|
118 | endif |
---|
119 | |
---|
120 | ** Looking for 300 mb data |
---|
121 | if (newz=300) |
---|
122 | 'c' |
---|
123 | 'set z 15' |
---|
124 | 'define wspd=(sqrt(u*u + v*v))' |
---|
125 | 'set ccolor 4' |
---|
126 | 'set cthick 6' |
---|
127 | 'set cint 40' |
---|
128 | 'd z' |
---|
129 | 'set ccolor 3' |
---|
130 | 'set cthick 6' |
---|
131 | 'set cint 10' |
---|
132 | 'd wspd' |
---|
133 | 'set strsiz .2' |
---|
134 | 'set string 1 l 6' |
---|
135 | 'draw string 1.7 8.35 ' newz ' mb Height (m,blue), Wind Speed(m/sec,green)' |
---|
136 | 'set strsiz .15' |
---|
137 | 'set string 1 l 3' |
---|
138 | 'draw string 7.5 8.0 ' _analysis |
---|
139 | if(ans) |
---|
140 | 'printim realp'frame'.gif gif ' |
---|
141 | frame=frame+1 |
---|
142 | endif |
---|
143 | pull dummy |
---|
144 | endif |
---|
145 | |
---|
146 | if ( dis_z=_endlev ) |
---|
147 | runlevel=0 |
---|
148 | endif |
---|
149 | dis_z = dis_z + 1 |
---|
150 | endwhile |
---|
151 | |
---|
152 | if ( dis_t=_endtime ) |
---|
153 | runscript=0 |
---|
154 | endif |
---|
155 | dis_t = dis_t + 1 |
---|
156 | endwhile |
---|
157 | |
---|