source: trunk/mesoscale/LMD_MM_MARS/SRC/ARWpost/scripts/plevels.gs @ 69

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

spiga@svn-planeto:ajoute le modele meso-echelle martien

  • Property svn:executable set to *
File size: 2.4 KB
Line 
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
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 = 1
21
22while(runscript)
23dis_z = 1
24'set t ' dis_t
25'q dims'
26rec=sublin(result,5)
27_analysis=subwrd(rec,6)
28say 'Time is ' _analysis
29
30runlevel = 1
31while(runlevel)
32'set z ' dis_z
33'q dims'
34rec=sublin(result,4)
35newz=subwrd(rec,6)
36say 'Level is ' newz
37
38** Looking for 850 mb  data
39if (newz=850)
40say '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'
63if(ans)
64'printim realp'frame'.gif gif '
65frame=frame+1
66endif
67pull dummy
68endif
69
70** Looking for 700 mb  data
71if (newz=700)
72say '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
88if(ans)
89'printim realp'frame'.gif gif '
90frame=frame+1
91endif
92pull dummy
93endif
94
95** Looking for 500 mb  data
96if (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
113if(ans)
114'printim realp'frame'.gif gif '
115frame=frame+1
116endif
117pull dummy
118endif
119
120** Looking for 300 mb  data
121if (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
139if(ans)
140'printim realp'frame'.gif gif '
141frame=frame+1
142endif
143pull dummy
144endif
145
146if ( dis_z=_endlev )
147 runlevel=0
148endif
149dis_z = dis_z + 1
150endwhile
151
152if ( dis_t=_endtime )
153 runscript=0
154endif
155dis_t = dis_t + 1
156endwhile
157
Note: See TracBrowser for help on using the repository browser.