source: trunk/MESOSCALE_DEV/SRC/ARWpost/scripts/bwave.gs @ 207

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

MESOSCALE: A GENERAL CLEAN-UP FOLLOWING UPDATING THE USER MANUAL. EVERYTHING ESSENTIAL IS IN MESOSCALE (much lighter than before). EVERYTHING FOR DEVELOPPERS OR EXPERTS IS IN MESOSCALE_DEV.

  • Property svn:executable set to *
File size: 2.4 KB
Line 
1'reinit'
2'open bwave.ctl'
3**
4** script needs height level input data
5** will look for .25 and 2 km data to plot
6
7'set display color white'
8'run rgbset.gs'
9
10say 'Create gif images as well (1=yes ; 0=no)'
11pull ans
12frame = 1
13
14'q file'
15rec=sublin(result,5)
16_endtime=subwrd(rec,12)
17_endlev=subwrd(rec,9)
18
19runscript = 1
20dis_t = 11
21
22'set xlab off'
23'set ylab off'
24
25while(runscript)
26dis_z = 1
27'set t ' dis_t
28'q dims'
29rec=sublin(result,5)
30_analysis=subwrd(rec,6)
31say 'Time is ' _analysis
32
33runlevel = 1
34while(runlevel)
35'set z ' dis_z
36'q dims'
37rec=sublin(result,4)
38newz=subwrd(rec,6)
39say 'Level is ' newz
40
41** Looking for 0.25 km data
42if (newz=0.25)
43say 'Plotting'
44'c'
45'set grads off'
46'set gxout shaded'
47'd theta'
48'set gxout contour'
49'd p'
50'set strsiz .2'
51'set string 1 l 6'
52'draw string 4.0 8.35   Pressure (mb,lines), Theta (color)'
53'set strsiz .15'
54'set string 1 l 3'
55'draw string 7.5 8.0 ' _analysis
56'draw string 4.0 8.0 ' newz '  km '
57'run cbar.gs'
58if(ans)
59'printim bwave'frame'.gif gif '
60frame=frame+1
61endif
62pull dummy
63'c'
64'set grads off'
65'set gxout shaded'
66'set clevs   -6 -5 -4 -3 -2 -1  0  1  2  3  4  5  6  7  8  9 10 '
67'set ccols 0 54 55 56 58 59 4  49 39 37 35 21 22 23 24 67 68 69 '
68'd w*100.'
69'set strsiz .2'
70'set string 1 l 6'
71'draw string 5.0.7 8.35   W (cm/s)'
72'set strsiz .15'
73'set string 1 l 3'
74'draw string 7.5 8.0 ' _analysis
75'draw string 4.0 8.0 ' newz '  km '
76'run cbar.gs'
77if(ans)
78'printim bwave'frame'.gif gif '
79frame=frame+1
80endif
81pull dummy
82endif
83** Looking for 2 km data
84if (newz=2.0)
85say 'Plotting'
86'c'
87'set grads off'
88'set gxout shaded'
89'd theta'
90'set gxout contour'
91'd p'
92'set strsiz .2'
93'set string 1 l 6'
94'draw string 4.0 8.35   Pressure (mb,lines), Theta (color)'
95'set strsiz .15'
96'set string 1 l 3'
97'draw string 7.5 8.0 ' _analysis
98'draw string 4.0 8.0 ' newz '  km '
99'run cbar.gs'
100if(ans)
101'printim bwave'frame'.gif gif '
102frame=frame+1
103endif
104pull dummy
105'c'
106'set grads off'
107'set gxout shaded'
108'set clevs   -6 -5 -4 -3 -2 -1  0  1  2  3  4  5  6  7  8  9 10 '
109'set ccols 0 54 55 56 58 59 4  49 39 37 35 21 22 23 24 67 68 69 '
110'd w*100.'
111'set strsiz .2'
112'set string 1 l 6'
113'draw string 5.0 8.35   W (cm/s)'
114'set strsiz .15'
115'set string 1 l 3'
116'draw string 7.5 8.0 ' _analysis
117'draw string 4.0 8.0 ' newz '  km '
118'run cbar.gs'
119if(ans)
120'printim bwave'frame'.gif gif '
121frame=frame+1
122endif
123pull dummy
124endif
125
126if ( dis_z=_endlev )
127 runlevel=0
128endif
129dis_z = dis_z + 1
130endwhile
131
132if ( dis_t=_endtime )
133 runscript=0
134endif
135dis_t = dis_t + 1
136endwhile
137
Note: See TracBrowser for help on using the repository browser.